It will not be available before iOS 17 for sure, it's part of current beta development cycle.
Post
Replies
Boosts
Views
Activity
Hi !
You will have to override -didSave in your image managed object subclass and do the deletion of the file. See the following discussions:
https://stackoverflow.com/questions/17769595/the-best-practice-for-deleting-core-data-items-where-path-is-stored-as-text-and
https://stackoverflow.com/questions/5073113/how-to-handle-cleanup-of-external-data-when-deleting-core-data-objects
As shown in the documentation, you could use .presentationDetents on .sheet because default is large. The example is:
struct ContentView: View {
@State private var showSettings = false
var body: some View {
Button("View Settings") {
showSettings = true
}
.sheet(isPresented: $showSettings) {
SettingsView()
.presentationDetents([.medium, .large])
}
}
}
This is a screenshot from Apple’s online documentation related to Core Data. It clearly shows the editor’s style buttons. It doesn’t make sense modelling a large object model by simply working a relation from an entity then going to the other entity and creating a relation and going back to the previous entity to make sure the relationship is correct. The WYSIWYG editor is the tool needed.
At 15min16sec of « Evolve your Core Data schema » video of WWDC22, those style buttons are clearly shown in Xcode. Why those style buttons have been removed from Xcode 14? It simply doesn't make sense. I submitted a ticket through Feedback Assistant and I encourage every developer to do the same.