That’s unfortunate, but comprehensible. Thanks a lot for the quick reply!
Post
Replies
Boosts
Views
Activity
Hello everyone, I was going through this same problem. User nickx found another solution. Here's the link on StackOverflow - https://stackoverflow.com/questions/63237929/uisplitviewcontroller-in-ios-14-works-as-intended-in-landscape-mode-but-not-in.
The idea is to implement the new splitViewController(_:topColumnForCollapsingToProposedTopColumn:) delegate method. Here's what's worked for me.
func splitViewController(_ svc: UISplitViewController, topColumnForCollapsingToProposedTopColumn proposedTopColumn: UISplitViewController.Column) -> UISplitViewController.Column {
	 // This guarantees the app launches in chart list when on portrait mode
return .primary
}
Hi there, I can confirm this.
In my case, calling WidgetCenter.shared.reloadAllTimelines() from the intent extension updates the widget fine when running the main app target from Xcode. Once Xcode is stopped, the intent can update the widget once or twice, and then stops working.
It seems to be a problem in the #Preview macro.
In the demo app (SampleTrips), I've managed to get it working using the old style previews:
@MainActor
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.modelContainer(PreviewSampleData.container)
}
}