I’ve the next code which exhibits a blue background and a persistent sheet that at all times exhibits.
Within the high left, I need to add a again button that floats above BOTH the blue background and sheet, and at all times exhibits.
I’ve tried utilizing each ZStacks and overlay however neither appeared to do the trick. The button at all times confirmed behind the sheet.
import SwiftUI
struct PagerView: View {
@State var presentSheet = true
@Atmosphere(.dismiss) personal var dismiss
var physique: some View {
VStack {
Rectangle()
.fill(Coloration.blue)
}
.sheet(isPresented: $presentSheet) {
TabView {
PageOne()
PageTwo()
PageThree()
}
.tabViewStyle(.web page)
.overlay {
VStack {
HStack(spacing: 16) {
Textual content("One")
Textual content("Two")
Textual content("Three")
}
Spacer()
}
.padding(.high, 32)
}
.presentationDetents([.medium, .large])
.presentationBackgroundInteraction(.enabled)
.interactiveDismissDisabled()
}
}
}

