Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolONEOfficial authored Jan 23, 2024
1 parent 3ff7e58 commit 8fb12c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct ContentView: View {
.onTapGesture {
isPresented = true
}
.sheet(isPresented: $isPresented) {
.nativePartialSheet(isPresented: $isPresented) {
Text("Sheet content")
}
.presentationDetents([ .large, .medium ])
Expand All @@ -47,7 +47,7 @@ struct ContentView: View {
.onTapGesture {
detent = .medium
}
.sheet(selectedDetent: $detent) { detent in
.nativePartialSheet(selectedDetent: $detent) { detent in
switch detent {
case .medium:
Text("Medium")
Expand Down Expand Up @@ -79,7 +79,7 @@ struct ContentView: View {
.onTapGesture {
isPresented = true
}
.sheet(isPresented: $isPresented) {
.nativePartialSheet(isPresented: $isPresented) {
Text("Sheet content")
}
.presentationDetents([ .medium, .large ], selection: $detent)
Expand Down Expand Up @@ -121,7 +121,7 @@ struct ContentView: View {
.onTapGesture {
item = .init(content: "Test content")
}
.sheet(item: $item) { item in
.nativePartialSheet(item: $item) { item in
VStack {
Button("recreate") {
self.item = .init(content: "Recreated content")
Expand Down Expand Up @@ -155,7 +155,7 @@ struct ContentView: View {
.onTapGesture {
detent = .customSmall
}
.sheet(selectedDetent: $detent) { detent in
.nativePartialSheet(selectedDetent: $detent) { detent in
switch detent {
case .medium:
Text("Medium")
Expand Down Expand Up @@ -189,7 +189,7 @@ struct ContentView: View {
detents.insert(dynamic)
detent = dynamic
}
.sheet(selectedDetent: $detent) { detent in
.nativePartialSheet(selectedDetent: $detent) { detent in
switch detent {
case .height(_):
Text("Dynamic")
Expand Down

0 comments on commit 8fb12c6

Please sign in to comment.