小编q8y*_*yas的帖子

Overlay SwiftUI view over all other views including sheets

I have seen discussion about this that involve UIKit but nothing recent that includes SwiftUI.

I have a Master-Detail style app that calls for two floating buttons that should be visible at all times in the app.

Settings Button: When tapped will un-hide another overlay with some toggles Add Record Button: When tapped will present a sheet via a @State variable, when tapped again will dismiss the sheet.

If I set the buttons as overlays on the NavigationView they get …

ios swift swiftui

10
推荐指数
1
解决办法
3819
查看次数

标签 统计

ios ×1

swift ×1

swiftui ×1