@martei -- Where did you find the container for Fruta?
Post
Replies
Boosts
Views
Activity
Dip into UIKit in .onAppear, find the UISplitViewController, and set its preferredDisplayMode.
swift
var body: some Scene {
WindowGroup {
NavigationView {
List(0..10, rowContent: { i in
Text(String(describing: i))
})
.navigationTitle("One")
ListTwo()
VStack {
Text("Panel Three")
}
.navigationTitle("Three")
}.onAppear {
let controller = UIApplication.shared.windows.first { $0.isKeyWindow }!.rootViewController
guard let split = controller?.children[0] as? UISplitViewController else {
print("not a split view")
return
}
split.preferredDisplayMode = .twoBesideSecondary
}
}
}
Has ActivityKit been removed? The links direct to WidgetKit or 404s.
@drewster Have you tried using SwiftData locally, i.e., no CloudKit container? When I do that, I lose all data between launches as the underlying -wal gets replaced when the ModelContainer is created.
In my experiments, yes (with no way to have fine-tuned control, e.g., disabling write-ahead-logging).
@Sreedhar_mc TipCenter doesn't exist as the implementation appears to have changed since WWDC.
Have a look here: https://github.com/stuartbreckenridge/TipKitSample
I'm having the same experience as @VetrivelMurugan. The crash report I have from TestFlight/Xcode:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 4 Symbol missing
Symbol not found: _$s6TipKit0A0PAAE10invalidate6reasonyAA4TipsO18InvalidationReasonV_tF
Referenced from: <47B22463-57F7-3B38-A4A5-81E173544A03> /Volumes/VOLUME/*/sgbuses.app/sgbuses
Expected in: <304D53DC-07F6-39B3-81D2-5D68D70C2CBD> /System/Library/Frameworks/TipKit.framework/TipKit
(terminated at launch; ignore backtrace)