I am using NavigationView and NavigationLink in SwiftUI.
And as destinations of NavigationView list, I am setting Views they have UIViewControllerRepresentables .
When I back from UIViewController to top NavigationView lists, UIViewController still stay in memory heap.
And be in trouble, properties in ViewCotroller also is not discard though I set them nil in viewWillDisapper.
How can I discard UIViewControllerRepresentable from memory heap?
Thank you for read this.
struct ContentView: View {
var body: some View {
NavigationView {
VStack {
List {
NavigationLink(
destination: AViewThatHasUIViewControllerRepresentable(),
label: {
Text("AView")
})
NavigationLink(
destination: BViewThatHasUIViewControllerRepresentable(),
label: {
Text("BView")
})
}
}
}
}
}
Post
Replies
Boosts
Views
Activity
RealityKit Model Entity will be darker when I use ARWorldTrackingConfiguration. When I place a Model Entity without ARWorldTrackingConfiguration, it is displayed brightly. Why? And does someone know how can I fix it?
May the force be with you and me.
"Provisioning profile failed qualification. \ Profile doesn't include the com.apple.application-identifier entitlement."
When I upload my apps, error message above appear.
Please Help me.