Post

Replies

Boosts

Views

Activity

Reply to How to make a pop up view?
thanks for helping me. I tried what u said but got an error on "var body: some View" that says "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions" this is the code I wrote..  Button { presentPopup = true } label: { Text("Rules") } .popup(isPresented: $presentPopup) { Text("test").frame(width: 100, height: 100, alignment: .center)                     } I also wrote the State variable.
Jul ’21