Add counterclockwise rotation button

This commit is contained in:
Shadowfacts 2019-10-16 14:23:12 -04:00
parent 5581eca81b
commit ea339380e9
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 6 additions and 2 deletions

View File

@ -42,14 +42,18 @@ struct ContentView: View {
// .gesture(horizDragGesture.simultaneously(with: verticalDragGesture))
HStack {
Button(action: { self.controller.rotate(direction: .counterClockwise) }) {
Image(systemName: "gobackward").resizable().frame(width: 50, height: 50)
}
.padding(.leading, 25)
Button(action: self.onTap) {
Image(systemName: "goforward").resizable().frame(width: 50, height: 50)
}
.padding(.leading, 50)
.padding(.leading, 25)
Spacer()
DPadView(up: self.controller.hold, down: self.controller.drop, left: self.controller.left, right: self.controller.right)
.frame(width: 150, height: 150)
.padding(.trailing, 50)
.padding(.trailing, 25)
}
}
}