How to make a side popup view in swiftui - swiftui

What is the name of the SwiftUI View shown in the image (the side popup view on the top right of the screen)? If it's custom made, then what default SwiftUI view do I use to achieve this look in my own app?

Related

Navigation View in Tab View Child Views SwiftUi

I have started learning swiftUI so I have question about Navigation View. My app starts with splash screen which is embedded in Navigation View and after that I have navigation link to the second screen which is Tab View. Do I need navigation views in child views of Tab View if I have some button etc and I also need to go to other screens from them or I use primary navigation view which tab view is embedded in?
When using both TabView and NavigationView, TabView should always be the parent view and should contain NavigationView inside it.
Hope this clarifies what you’re looking for?

SwiftUI: TabView shows in Preview but now showing on simulated devices

I am using TabView in my SwiftUI app. I used the side Preview as I was building it. The bottom tab shows on all device types in the Preview section but when I build it to either a real device or simulate device, the TabView doesn't show at all.
Previews are for each individual view. They don't represent the whole app.
You'll need to set it as the root view inside YourAppName_App.swift.
#main
struct YourAppNameApp: App {
var body: some Scene {
WindowGroup {
YourTabBarView() /// replace with the name of your tab bar view
}
}
}

How to use NavigationLink to slide new view up from bottom instead of left to right

In SwiftUI does anyone know if there's a way to use NavigationLink to slide destination view up from the bottom?

UI viewcontroller Navigation bar is black

I can't change the colour of my navigation bar to transparent. All the other view controllers in my project are fine, only this one. This particular view controller has a scroll view and it is presented by Segue.view
I use the following code in viewDidLoad()
self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for: UIBarMetrics.default)
self.navigationController?.navigationBar.shadowImage = UIImage()
self.navigationController?.navigationBar.isTranslucent = true
This is the identity inspector for the view controller
I found the solution. My background image was inside my View. I put it in the wrong place. see below for correct way

AVPlayer Rotate View makes cannot tap to the screen

I used AVPlayer for movie player in my app. I explained the problem with diagrams.
When I click Play button in movie view controller(Portrait mode),then goes to movie details view. When I tap on the screen , the navigation bar and movie player bar appear. If you tap again the screen, it will disappear. This goes well when the device is in Portrait mode.
But, I changed my code to Landscape mode when I click on play button, it will automatically change to Landscape mode in movie details view.
So, the problem in here is that when I do like that, tapped area is only in top and cannot tap any other places. This happens when previous view controller(Movie View Controller) is in Portrait mode and Movie Details View is in Landscape mode.
The problem won't happen if first view controller(Movie View Controller) is in Landscape mode and second view controller (Movie Details view controller) is in Landscape mode.
I have no idea of how do I solve this problem. Does first view controller rotation mode effects to second view controller?
Please anyone help me this? Thanks for reading my long paragraph.