How to lock screen orientation in SwiftUI
// Example swift code :)
struct MainSendable: View {
@State private var num = 0
var body: some View {
Button("\(num)") {
num = CoolClass().doThing2(f: {
return 5
})
}
.id(0)
}
}