Related issue: Unable to set initial/default window size
WindowGroup {
ContentView()
.frame(width: 300, height: 400) // imperfect, the ornaments still layout as the original size
}
.windowStyle(.plain)
.defaultSize(width: 1.5, height: 2, depth: 0, in: .meters) // no effect on plain window
@Developer Tools Engineer 😄 Thank you for the response! I didn't expect you to pay attention to this minor interface error. I have already submitted the feedback (FB12404233). Thank you once again!
@simonfromhelix Thank you very much! I did indeed migrate to a Single Target Watch App in the update to watchOS 9 last year. The changes to the bundle Identifier and the issue with system caches seem to explain this issue well.
Thanks again for providing this helpful information. This community is really great!
@ViewBuilder
func complicationLayer(_ layer: Compatibility.ComplicationLayer) -> some View {
if #available(watchOS 9.2, *) {
switch layer {
case .foreground:
self
case .background:
self.complicationForeground()
}
} else {
switch layer {
case .foreground:
self.complicationForeground()
case .background:
self
}
}
}
It's ugly but it works. I don't want Apple to reverse its semantics again, even if it's wrong. So be it.
This issue can only be reproduced on the physical watch with watchOS 9.2 at this time. There is currently no simulator available for watchOS 9.2 in Xcode 14.2. Also, It is worth mentioning that the SwiftUI Preview also does not correctly render the replicationForeground() effect. But this should be another bug.
Same here. You can only rely on push notification. (which is not reliable neither...)
And I don't know why Apple refuse to reuse the Timeline API in the new ActivityKit...
It seems to be just one of the many small problems with NavigationView. 😅 Maybe you can try .navigationViewStyle(.stack) or the new NavigationStack.
The transition animation in the SwiftUI Preview window sometimes also has bugs. You can try it in the simulator.
Same here. I found that you have to switch to the static preview mode to get a sizeThatFits layout. In the default dynamic preview mode, the container is always a whole iPhone.
Related issue: Unable to set initial/default window size
WindowGroup {
ContentView()
.frame(width: 300, height: 400) // imperfect, the ornaments still layout as the original size
}
.windowStyle(.plain)
.defaultSize(width: 1.5, height: 2, depth: 0, in: .meters) // no effect on plain window
@Developer Tools Engineer 😄 Thank you for the response! I didn't expect you to pay attention to this minor interface error. I have already submitted the feedback (FB12404233). Thank you once again!
@simonfromhelix Thank you very much! I did indeed migrate to a Single Target Watch App in the update to watchOS 9 last year. The changes to the bundle Identifier and the issue with system caches seem to explain this issue well.
Thanks again for providing this helpful information. This community is really great!
@ViewBuilder
func complicationLayer(_ layer: Compatibility.ComplicationLayer) -> some View {
if #available(watchOS 9.2, *) {
switch layer {
case .foreground:
self
case .background:
self.complicationForeground()
}
} else {
switch layer {
case .foreground:
self.complicationForeground()
case .background:
self
}
}
}
It's ugly but it works. I don't want Apple to reverse its semantics again, even if it's wrong. So be it.
This issue can only be reproduced on the physical watch with watchOS 9.2 at this time. There is currently no simulator available for watchOS 9.2 in Xcode 14.2. Also, It is worth mentioning that the SwiftUI Preview also does not correctly render the replicationForeground() effect. But this should be another bug.
Same here. You can only rely on push notification. (which is not reliable neither...)
And I don't know why Apple refuse to reuse the Timeline API in the new ActivityKit...
It seems to be just one of the many small problems with NavigationView. 😅 Maybe you can try .navigationViewStyle(.stack) or the new NavigationStack.
The transition animation in the SwiftUI Preview window sometimes also has bugs. You can try it in the simulator.
Same here. I found that you have to switch to the static preview mode to get a sizeThatFits layout. In the default dynamic preview mode, the container is always a whole iPhone.