Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ios/Bookings/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
33 changes: 33 additions & 0 deletions ios/Bookings/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version: 6.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Bookings",
platforms: [
.iOS(.v17),
],
products: [
.library(name: "BookingViews", targets: ["BookingViews"]),
],
targets: [
.target(
name: "BookingViews",
swiftSettings: .defaultSettings),
// .testTarget(
// name: "BookingsTests",
// dependencies: [""]
// ),
],
swiftLanguageModes: [.v6])

extension [SwiftSetting] {
static var defaultSettings: [SwiftSetting] {
[
.defaultIsolation(MainActor.self),
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("InferIsolatedConformances"),
]
}
}
20 changes: 20 additions & 0 deletions ios/Bookings/Sources/Bookings/BookingsTabView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// BookingsTabView.swift
// Bookings
//
// Created by Gabriella Lianti on 3/7/2026.
//

import SwiftUI

public struct BookingsTabView: View {
public init() { }

public var body: some View {
Text("Bookings tab :>")
.tabItem {
Label("Bookings", systemImage: "book.pages")
}
.tag("Bookings")
}
}
9 changes: 9 additions & 0 deletions ios/Bookings/Tests/BookingsTests/BookingsTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Testing
@testable import Bookings

@Test
func example() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
// Swift Testing Documentation
// https://developer.apple.com/documentation/testing
}
12 changes: 12 additions & 0 deletions ios/Freerooms/Freerooms.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
2D7043062FF7AD02006BF888 /* BookingViews in Frameworks */ = {isa = PBXBuildFile; productRef = 2D7043052FF7AD02006BF888 /* BookingViews */; };
541DCFCB2FD2A5150040EB0F /* Apollo in Frameworks */ = {isa = PBXBuildFile; productRef = 541DCFCA2FD2A5150040EB0F /* Apollo */; };
541DCFCE2FD2A5420040EB0F /* DevSocAPI in Frameworks */ = {isa = PBXBuildFile; productRef = 541DCFCD2FD2A5420040EB0F /* DevSocAPI */; };
546D1A952F7AACA2000667BC /* VISOR in Frameworks */ = {isa = PBXBuildFile; productRef = 546D1A942F7AACA2000667BC /* VISOR */; };
Expand Down Expand Up @@ -71,6 +72,7 @@
buildActionMask = 2147483647;
files = (
541DCFCB2FD2A5150040EB0F /* Apollo in Frameworks */,
2D7043062FF7AD02006BF888 /* BookingViews in Frameworks */,
546D1AA82F7AAD87000667BC /* RoomViews in Frameworks */,
546D1AA62F7AAD87000667BC /* RoomViewModels in Frameworks */,
546D1A952F7AACA2000667BC /* VISOR in Frameworks */,
Expand Down Expand Up @@ -163,6 +165,7 @@
546D1AA72F7AAD87000667BC /* RoomViews */,
541DCFCA2FD2A5150040EB0F /* Apollo */,
541DCFCD2FD2A5420040EB0F /* DevSocAPI */,
2D7043052FF7AD02006BF888 /* BookingViews */,
);
productName = Freerooms;
productReference = 96F9AFCA2D9BCC1200671174 /* Freerooms.app */;
Expand Down Expand Up @@ -203,6 +206,7 @@
546D1AA42F7AAD87000667BC /* XCLocalSwiftPackageReference "../Rooms" */,
541DCFC92FD2A5150040EB0F /* XCRemoteSwiftPackageReference "apollo-ios" */,
541DCFCC2FD2A5420040EB0F /* XCLocalSwiftPackageReference "../DevSocAPI" */,
2D7043072FF7AD0C006BF888 /* XCLocalSwiftPackageReference "../Bookings" */,
);
preferredProjectObjectVersion = 77;
productRefGroup = 96F9AFCB2D9BCC1200671174 /* Products */;
Expand Down Expand Up @@ -571,6 +575,10 @@
/* End XCConfigurationList section */

/* Begin XCLocalSwiftPackageReference section */
2D7043072FF7AD0C006BF888 /* XCLocalSwiftPackageReference "../Bookings" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../Bookings;
};
541DCFCC2FD2A5420040EB0F /* XCLocalSwiftPackageReference "../DevSocAPI" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../DevSocAPI;
Expand Down Expand Up @@ -609,6 +617,10 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
2D7043052FF7AD02006BF888 /* BookingViews */ = {
isa = XCSwiftPackageProductDependency;
productName = BookingViews;
};
541DCFCA2FD2A5150040EB0F /* Apollo */ = {
isa = XCSwiftPackageProductDependency;
package = 541DCFC92FD2A5150040EB0F /* XCRemoteSwiftPackageReference "apollo-ios" */;
Expand Down
2 changes: 2 additions & 0 deletions ios/Freerooms/Freerooms/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Anh Nguyen on 1/4/2025.
//

import BookingViews
import BuildingModels
import BuildingViewModels
import BuildingViews
Expand Down Expand Up @@ -63,6 +64,7 @@ struct ContentView: View {
{ room in
getRoomDetailsView(room: room)
}
BookingsTabView()
}
.tint(theme.accent.primary)
}
Expand Down
3 changes: 3 additions & 0 deletions ios/FreeroomsApple.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading