Hello, i am fairly new to Swift Playground App. So I wanted to do navigation like in the iOS or Navigation in UIKit.
My expectation when using NavigationView is well navigate to another view. Turns out, when implementing navigation view in Playground (or perhaps this is the default iPad navigation view) it look like this : Initial launch :
After i click back it display the root navigationview but it shows it on the side :
and it initial launch is not the main/root view like in UINavigationView but it navigates to a blank view Are there a way to disable it? i dont think i have enough time to emulate all of this in uikit
The code :
@AppStorage(megaMendungKey) var isMegaAvail: Bool = false
@AppStorage(kawungKey) var isKawungAvail: Bool = false
@AppStorage(simbutKey) var isSimbutAvail: Bool = false
var body: some View {
ZStack {
NavigationView{
Rectangle()
}
}
}
}