Skip to content

Commit

Permalink
update debugview
Browse files Browse the repository at this point in the history
  • Loading branch information
crane-hiromu committed Dec 25, 2022
1 parent e1542ce commit 64b5c54
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 70 deletions.
69 changes: 0 additions & 69 deletions Sources/DroidKit/View/Debug/DroidJoystickDebugView.swift

This file was deleted.

14 changes: 14 additions & 0 deletions Sources/DroidKit/View/Debug/DroidKitDebugView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public struct DroidKitDebugView: View {
rotationSection
colorSection
soundSection
joystickSection
}
.padding([.top, .bottom], 32)
}
Expand Down Expand Up @@ -156,6 +157,19 @@ private extension DroidKitDebugView {
}
}
}

var joystickSection: some View {
Group {
if #available(iOS 15.0, *) {
VStack(spacing: 16) {
DroidKitSectionTitle(title: "Joystick")
DroidJoystickView()
}
} else {
EmptyView()
}
}
}
}

#endif
3 changes: 2 additions & 1 deletion Sources/DroidKit/View/Joystick/DroidJoystickView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public struct DroidJoystickView: View {
shape: .circle,
background: { backgroundCircle },
foreground: { foregroundCircle },
locksInPlace: false)
locksInPlace: false
)
}
}

Expand Down

0 comments on commit 64b5c54

Please sign in to comment.