-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prep Mac app for release, fix bugs in iOS app (#258)
* Update Sparkle to latest version * Bump minimum macOS target For launch, I propose we support the current version of macOS (14.x) and one version earlier (13.x). * Add WFNavigation wrapper to use NavigationSplitView in macOS * Replace NavigationView with WFNavigation in ContentView * Fix deprecation warnings on locale * Update docs for updating the Mac app * Fix for being sent back to post list on app reactivate * Bump build version * Remove debugging statements * Bump Sparkle version to address security fix
- Loading branch information
1 parent
664eb44
commit 53ab32b
Showing
7 changed files
with
161 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import SwiftUI | ||
|
||
struct WFNavigation<CollectionList, PostList, PostDetail>: View | ||
where CollectionList: View, PostList: View, PostDetail: View { | ||
|
||
private var collectionList: CollectionList | ||
private var postList: PostList | ||
private var postDetail: PostDetail | ||
|
||
init( | ||
@ViewBuilder collectionList: () -> CollectionList, | ||
@ViewBuilder postList: () -> PostList, | ||
@ViewBuilder postDetail: () -> PostDetail | ||
) { | ||
self.collectionList = collectionList() | ||
self.postList = postList() | ||
self.postDetail = postDetail() | ||
} | ||
|
||
var body: some View { | ||
#if os(macOS) | ||
NavigationSplitView { | ||
collectionList | ||
} content: { | ||
postList | ||
} detail: { | ||
postDetail | ||
} | ||
#else | ||
NavigationView { | ||
collectionList | ||
postList | ||
postDetail | ||
} | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.