diff --git a/Tetris/ContentView.swift b/Tetris/ContentView.swift index 9928aed..6e0a77c 100644 --- a/Tetris/ContentView.swift +++ b/Tetris/ContentView.swift @@ -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) } } }