Closed Fahrenberg closed 3 years ago
Using a button in the displayed modal sheet dismisses the modal after running the action.
`struct ModalView: View { var counter : Int var body: some View {
VStack { Text(String(repeating: "👍🏻", count:counter )) Button(action: { center.post(name: notificationName , object: nil) }) { Text("More") }.padding() } }
}`
Seems to be my problem with posting a notification
Using a button in the displayed modal sheet dismisses the modal after running the action.
`struct ModalView: View { var counter : Int var body: some View {
}`