BeeMeeMan / FullScreenCover

Custom FullScreenCover with transition animation in SwiftUI.
MIT License
25 stars 3 forks source link

Sheet opens under UITabBarController #3

Open hugocarlmartin opened 1 year ago

hugocarlmartin commented 1 year ago

If i mix UIKit and SwifUI the sheet will actually open up under the tabBar. The question is, is it even possible to solve this?

BeeMeeMan commented 1 year ago

No, it is not. Cause this fullScreenCover not create another ViewController and it just cover another views in one VC. So any created ViewController will overlay it.

To solve in SwiftUI: TabView {

} .easyFullScreenCover(...)

hugocarlmartin commented 1 year ago

Well in my case its a UITabbarController

loryhuz commented 9 months ago

You can use .toolbar(.hidden, for: .tabBar) in your presented view

.easyFullScreenCover(isPresented: $showView) {
    NewView().toolbar(.hidden, for: .tabBar)
}