Skip to content

Commit ce909fe

Browse files
committed
Temp fix for Xcode 14 beta 6 build
1 parent 1bfc172 commit ce909fe

File tree

7 files changed

+29
-18
lines changed

7 files changed

+29
-18
lines changed

Forumate.xcodeproj/project.pbxproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@
12371237
"$(inherited)",
12381238
"@executable_path/Frameworks",
12391239
);
1240-
MARKETING_VERSION = 0.5.0;
1240+
MARKETING_VERSION = 0.5.1;
12411241
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.Forumate.watchkitapp;
12421242
PRODUCT_NAME = Forumate;
12431243
SDKROOT = watchos;
@@ -1267,7 +1267,7 @@
12671267
"$(inherited)",
12681268
"@executable_path/Frameworks",
12691269
);
1270-
MARKETING_VERSION = 0.5.0;
1270+
MARKETING_VERSION = 0.5.1;
12711271
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.Forumate.watchkitapp;
12721272
PRODUCT_NAME = Forumate;
12731273
SDKROOT = watchos;
@@ -1297,7 +1297,7 @@
12971297
"$(inherited)",
12981298
"@executable_path/Frameworks",
12991299
);
1300-
MARKETING_VERSION = 0.5.0;
1300+
MARKETING_VERSION = 0.5.1;
13011301
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.Forumate;
13021302
PRODUCT_NAME = "$(TARGET_NAME)";
13031303
SDKROOT = appletvos;
@@ -1325,7 +1325,7 @@
13251325
"$(inherited)",
13261326
"@executable_path/Frameworks",
13271327
);
1328-
MARKETING_VERSION = 0.5.0;
1328+
MARKETING_VERSION = 0.5.1;
13291329
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.Forumate;
13301330
PRODUCT_NAME = "$(TARGET_NAME)";
13311331
SDKROOT = appletvos;
@@ -1495,7 +1495,7 @@
14951495
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
14961496
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
14971497
MACOSX_DEPLOYMENT_TARGET = 13.0;
1498-
MARKETING_VERSION = 0.5.0;
1498+
MARKETING_VERSION = 0.5.1;
14991499
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.Forumate;
15001500
PRODUCT_NAME = "$(TARGET_NAME)";
15011501
SDKROOT = auto;
@@ -1542,7 +1542,7 @@
15421542
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
15431543
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
15441544
MACOSX_DEPLOYMENT_TARGET = 13.0;
1545-
MARKETING_VERSION = 0.5.0;
1545+
MARKETING_VERSION = 0.5.1;
15461546
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.Forumate;
15471547
PRODUCT_NAME = "$(TARGET_NAME)";
15481548
SDKROOT = auto;

Forumate/ForumateApp.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct ForumateApp: App {
3030
#if os(iOS) || os(macOS)
3131
WindowGroup("Topic Detail", id: "topic", for: TopicDetailWindowModel.self) { $detailModel in
3232
if let detailModel,
33-
let community = container.mainContext.object(with: detailModel.communityID) as? Community {
33+
let community = container.mainContext.model(for: detailModel.communityID) as? Community {
3434
TopicDetail(topic: detailModel.topic)
3535
.environmentObject(appState)
3636
.environmentObject(CommunityDetailState(community: community))

Forumate/View/Tab/Topics/Community/CommunityDetail/Topic/TopicDetail.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct TopicDetail: View {
4646
}
4747
}
4848
#if os(iOS) || os(macOS)
49-
.toolbar {
49+
.toolbar(content: {
5050
if supportsMultipleWindows {
5151
#if os(iOS)
5252
let placement: ToolbarItemPlacement = .navigationBarLeading
@@ -55,13 +55,13 @@ struct TopicDetail: View {
5555
#endif
5656
ToolbarItem(placement: placement) {
5757
Button {
58-
openWindow(value: TopicDetailWindowModel(topic: topic, communityID: state.community.objectID))
58+
openWindow(value: TopicDetailWindowModel(topic: topic, communityID: state.community.persistentModelID))
5959
} label: {
6060
Label("Open In New Window", systemImage: "macwindow.badge.plus")
6161
}
6262
}
6363
}
64-
}
64+
})
6565
#endif
6666
}
6767

Forumate/View/Tab/Topics/Community/CommunityDetail/Topic/TopicLabel.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct TopicLabel: View {
4040
if supportsMultipleWindows {
4141
Button {
4242
let model = state.community as (any PersistentModel) // FIXME: Workaround for Xcode 15 beta 5
43-
openWindow(value: TopicDetailWindowModel(topic: topic, communityID: model.objectID))
43+
openWindow(value: TopicDetailWindowModel(topic: topic, communityID: model.persistentModelID))
4444
} label: {
4545
Label("Open In New Window", systemImage: "macwindow.badge.plus")
4646
}

Forumate/View/Tab/Topics/Community/Model/Community.swift

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ import SwiftData
1111

1212
@Model
1313
final class Community {
14-
private(set) var id = UUID()
14+
private(set) var id: UUID!
1515
private(set) var host: URL!
16-
private(set) var title = ""
16+
private(set) var title: String!
1717
private(set) var icon: URL?
1818

19+
init() {
20+
self.id = UUID()
21+
self.title = ""
22+
}
23+
1924
init(host: URL, title: String = "", icon: URL? = nil) {
25+
self.id = UUID()
2026
self.host = host
2127
self.title = title
2228
self.icon = icon

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ A native client to access Discourse server for Apple Platforms.
1010

1111
![Forumate](Forumate/Other/Assets.xcassets/AppIcon.appiconset/AppIcon-macOS-512.png)
1212

13+
### Platform Compatibility
14+
1315
- [x] iOS 17+
1416
- [x] iPadOS 17+
1517
- [x] watchOS 10+
@@ -24,12 +26,15 @@ A native client to access Discourse server for Apple Platforms.
2426
>
2527
> visionOS is buidable, but is not optimized for. Hope I can get a real device to test for it.
2628
27-
## Download
29+
### Version Compatibility
2830

2931
- v0.1~v0.3 supports iOS 16+, watchOS 9+ and macOS 13+
30-
- v0.4.0 supports iOS 17 beta 1, watchOS 10 beta 1 and macOS 14 beta 1
31-
- v0.4.1 supports iOS 17 beta 2-3, watchOS 10 beta 2-3 and macOS 14 beta 2-3
32-
- v0.5.0 supports iOS 17 beta 4, watchOS 10 beta 4 and macOS 14 beta 4
32+
- v0.4.0-beta only supports iOS & iPadOS 17 beta 1, watchOS 10 beta 1 and macOS 14 beta 1
33+
- v0.4.1-beta only supports iOS & iPadOS 17 beta 2-3, watchOS 10 beta 2-3 and macOS 14 beta 2-3
34+
- v0.5.0-beta only supports iOS & iPadOS 17 17 beta 4, watchOS 10 beta 4 and macOS 14 beta 4
35+
- v0.5.1-beta only supports iOS & iPadOS 17 17 beta 5, watchOS 10 beta 5 and macOS 14 beta 5
36+
37+
## Download
3338

3439
### Mac App Store Release
3540

TestFlight/WhatToTest.en-US.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
What's new in v0.5.0-beta
1+
What's new in v0.5.1-beta
22
1. Migrate Community model to SwiftData(iCloud based database) and support iCloud sync now.
33
You can now setup your favorite your communities and then they will automatically sync to your other Apple device.
44
2. Update AppIcon and you can change the old icon back in the Setting sections.

0 commit comments

Comments
 (0)