Add counterclockwise rotation button
This commit is contained in:
parent
5581eca81b
commit
ea339380e9
|
@ -42,14 +42,18 @@ struct ContentView: View {
|
||||||
// .gesture(horizDragGesture.simultaneously(with: verticalDragGesture))
|
// .gesture(horizDragGesture.simultaneously(with: verticalDragGesture))
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
|
Button(action: { self.controller.rotate(direction: .counterClockwise) }) {
|
||||||
|
Image(systemName: "gobackward").resizable().frame(width: 50, height: 50)
|
||||||
|
}
|
||||||
|
.padding(.leading, 25)
|
||||||
Button(action: self.onTap) {
|
Button(action: self.onTap) {
|
||||||
Image(systemName: "goforward").resizable().frame(width: 50, height: 50)
|
Image(systemName: "goforward").resizable().frame(width: 50, height: 50)
|
||||||
}
|
}
|
||||||
.padding(.leading, 50)
|
.padding(.leading, 25)
|
||||||
Spacer()
|
Spacer()
|
||||||
DPadView(up: self.controller.hold, down: self.controller.drop, left: self.controller.left, right: self.controller.right)
|
DPadView(up: self.controller.hold, down: self.controller.drop, left: self.controller.left, right: self.controller.right)
|
||||||
.frame(width: 150, height: 150)
|
.frame(width: 150, height: 150)
|
||||||
.padding(.trailing, 50)
|
.padding(.trailing, 25)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue