Created
January 28, 2025 10:50
-
-
Save VAndrJ/d5eb30f48a0039a7ce13daadea952b8b to your computer and use it in GitHub Desktop.
Sheet presentation detents iOS 18.0+ issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
@State private var isSheetPresented = false | |
var body: some View { | |
Button("Open Sheet") { | |
isSheetPresented = true | |
} | |
.sheet(isPresented: $isSheetPresented) { | |
Text("Sheet Content") | |
.presentationDetents([.height(480)]) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment