This is a companion discussion topic for the original entry at https://www.raywenderlich.com/15234721-your-second-ios-and-swiftui-app/lessons/14
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/15234721-your-second-ios-and-swiftui-app/lessons/14
Is there any side effects of achieving this behavior using this approach below?
HStack(spacing: 50) {
if let _ = image {
Button("Delete image") {
isShowingAlert.toggle()
}
}
Button("Update Image") {
showingImagePicker.toggle()
}
}