Skip to content

Commit

Permalink
isNext 変更
Browse files Browse the repository at this point in the history
アラートまだエラーあるから、直すよー
  • Loading branch information
cranoo3 committed Oct 5, 2023
1 parent e8e7825 commit 5845575
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

PumpkinSmash.xcodeproj/xcuserdata/cranoo3.xcuserdatad/xcschemes/xcschememanagement.plist
PumpkinSmash.xcodeproj/project.xcworkspace/xcuserdata/cranoo3.xcuserdatad/UserInterfaceState.xcuserstate
.DS_Store
12 changes: 8 additions & 4 deletions PumpkinSmash/LevelSelectView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ struct LevelSelectView: View {


Button(action: {
.alert(isPresented: $isNext) {
Alert(title: Text("CONTINUE"), message: Text("Lanjut?"), primaryButton: Button("YES"), secondaryButton: Button("NO", role: .destructive))
}
isNext = true
}) {
RoundedRectangle(cornerRadius: 20)
.fill(.black.gradient)
Expand All @@ -32,7 +30,13 @@ struct LevelSelectView: View {
.fontWeight(.black)
.foregroundColor(.white)
)
}.padding()
}
// .alert(isPresented: $isNext) {
// Alert(title: Text("CONTINUE"), message: Text("Lanjut?"), primaryButton: Button("YES"), secondaryButton: Button("NO", role: .destructive))
// }
.padding()


Button(action: {}) {
RoundedRectangle(cornerRadius: 20)
.fill(.black.gradient)
Expand Down

0 comments on commit 5845575

Please sign in to comment.