I am trying to recreate a Maps-style UI with a persistent bottom sheet and controls fixed above.
Apple Maps UI with controls above
☝️ Example here, the "Look Around" binoculars button and AQI from Apple Maps follow the movement of the sheet.
I ve got my sheet set up but I m curious what the approach for this would be?
import SwiftUI
struct ContentView: View {
var body: some View {
ZStack {
HomeView()
.sheet(isPresented: .constant(true)) {
ActivityView()
.presentationDetents([.medium, .large, .height(80)])
.presentationCornerRadius(Constants.cornerRadius)
.presentationBackgroundInteraction(.enabled)
.interactiveDismissDisabled(true)
}
}
}
}