Post

Replies

Boosts

Views

Activity

Reply to [ERROR] Could not create a bookmark: NSError: Cocoa 4097 "connection to service named com.apple.FileProvider" when using PhotosPicker
I'm getting a crash using PhotosPicker, and it can be reproduced using a sample project provided by Apple: https://developer.apple.com/documentation/photokit/bringing_photos_picker_to_your_swiftui_app If you load that project and then change "Swift Language Version" to "Swift 6" in the Build Settings, when you come back from the photo picker the app crashes.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to [ERROR] Could not create a bookmark: NSError: Cocoa 4097 "connection to service named com.apple.FileProvider" when using PhotosPicker
I'm getting a crash using PhotosPicker, and it can be reproduced using a sample project provided by Apple: https://developer.apple.com/documentation/photokit/bringing_photos_picker_to_your_swiftui_app If you load that project and then change "Swift Language Version" to "Swift 6" in the Build Settings, when you come back from the photo picker the app crashes.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to LazyVStack with ScrollView's new features doesn't show content
FWIW, this code seems to work for me as a work around for the defaultScrollAnchor struct MyView : View { @State private var scrollPosition = ScrollPosition() var body: some View { ScrollView { LazyVStack { // lots of data } } .scrollPosition($scrollPosition, anchor: .bottom) .onAppear { scrollPosition.scrollTo(edge: .bottom) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24