Skip to content

Commit

Permalink
🚧 (WIP): Fix new issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Sep 19, 2023
1 parent 09431f8 commit 81c25ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public enum Rotation: Equatable {
public class JoystickViewModel: ObservableObject {

// MARK: - Published/public variables
public var joystickMonitor = JoystickMonitor()
public var joystickMonitor = JoystickMonitor(width: 200)

@Published public var position: CGPoint = CGPoint(x: 0.0, y: 0.0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ struct DanceFreezePlayer: View {
}
}

struct DanceFreezePlayer_Previews:
PreviewProvider
{
struct DanceFreezePlayer_Previews: PreviewProvider {
static var previews: some View {
DanceFreezePlayer(isAuto: true)
DanceFreezePlayer(isAuto: false)
.environmentObject(DanceFreezeViewModel(gameplay: DanceFreezeGameplay()))
.previewInterfaceOrientation(.landscapeLeft)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public enum Rotation: Equatable {
public class JoystickViewModel: ObservableObject {

// MARK: - Published/public variables
public var joystickMonitor = JoystickMonitor()
public var joystickMonitor = JoystickMonitor(width: 200)

@Published public var position: CGPoint = CGPoint(x: 0.0, y: 0.0)

Expand Down

0 comments on commit 81c25ea

Please sign in to comment.