Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07b5636bac | ||
|
|
88d3aa48e7 |
No files matched your search
@@ -24,6 +24,16 @@ struct RootView: View {
|
|||||||
}
|
}
|
||||||
.fullScreenCover(isPresented: Binding(get: { ui.nowPlayingOpen }, set: { ui.nowPlayingOpen = $0 })) {
|
.fullScreenCover(isPresented: Binding(get: { ui.nowPlayingOpen }, set: { ui.nowPlayingOpen = $0 })) {
|
||||||
NowPlayingScreen()
|
NowPlayingScreen()
|
||||||
|
// The panes underneath stop reporting while this covers them, so watch for the
|
||||||
|
// hinge here too: unfolding hands over to the split (docked) layout.
|
||||||
|
.background(GeometryReader { geo in
|
||||||
|
let c = DuoPane<EmptyView>.cut(geo)
|
||||||
|
Color.clear.onChange(of: c == nil ? 0 : c!.vertical ? 2 : 1, initial: true) { _, k in
|
||||||
|
guard k > 0 else { return }
|
||||||
|
ui.setUnfolded(true)
|
||||||
|
ui.setSplit(k == 2)
|
||||||
|
}
|
||||||
|
})
|
||||||
.overlayHost(ui.overlays, level: 1)
|
.overlayHost(ui.overlays, level: 1)
|
||||||
.environment(ui)
|
.environment(ui)
|
||||||
.environment(\.palette, p)
|
.environment(\.palette, p)
|
||||||
@@ -242,9 +252,9 @@ private struct DuoPane<Content: View>: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Where the hinge cuts the view: sizes of the two sides and the gap between them.
|
/// Where the hinge cuts the view: sizes of the two sides and the gap between them.
|
||||||
private struct Cut { var vertical: Bool; var first: CGFloat; var gap: CGFloat; var second: CGFloat }
|
fileprivate struct Cut { var vertical: Bool; var first: CGFloat; var gap: CGFloat; var second: CGFloat }
|
||||||
|
|
||||||
private static func cut(_ geo: GeometryProxy) -> Cut? {
|
fileprivate static func cut(_ geo: GeometryProxy) -> Cut? {
|
||||||
let size = geo.size
|
let size = geo.size
|
||||||
var c: Cut?
|
var c: Cut?
|
||||||
// The hinge reports inactive while the phone lies flat, so ask for inactive regions too.
|
// The hinge reports inactive while the phone lies flat, so ask for inactive regions too.
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ settings:
|
|||||||
# iOS needs a plain number for the bundle version; the label is what the app and releases show.
|
# iOS needs a plain number for the bundle version; the label is what the app and releases show.
|
||||||
MARKETING_VERSION: "0.10.1"
|
MARKETING_VERSION: "0.10.1"
|
||||||
VERSION_LABEL: "0.10.1"
|
VERSION_LABEL: "0.10.1"
|
||||||
CURRENT_PROJECT_VERSION: "48"
|
CURRENT_PROJECT_VERSION: "49"
|
||||||
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
|
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
|
||||||
APP_ID: org.cdnutter.stemify
|
APP_ID: org.cdnutter.stemify
|
||||||
APP_NAME: Stemify
|
APP_NAME: Stemify
|
||||||
|
|||||||
+4
-4
@@ -18,11 +18,11 @@
|
|||||||
{
|
{
|
||||||
"version": "0.10.1",
|
"version": "0.10.1",
|
||||||
"marketingVersion": "0.10.1",
|
"marketingVersion": "0.10.1",
|
||||||
"buildVersion": "47",
|
"buildVersion": "48",
|
||||||
"date": "2026-11-20T10:17:10-08:00",
|
"date": "2026-11-20T10:23:12-08:00",
|
||||||
"localizedDescription": "iOS: free orientation in background, re-lock after resume settles",
|
"localizedDescription": "iOS: only the on-screen Duo pane reports split/unfolded; build 48",
|
||||||
"downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v0.10.1/stemify-0.10.1.ipa",
|
"downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v0.10.1/stemify-0.10.1.ipa",
|
||||||
"size": 3136176,
|
"size": 3139470,
|
||||||
"minOSVersion": "17.0"
|
"minOSVersion": "17.0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user