swiftuijoystick

This commit is contained in:
lizzie
2026-04-01 07:36:53 +00:00
parent 38a8c84134
commit 61e4584ce3
5 changed files with 320 additions and 13 deletions
+3 -3
View File
@@ -19,13 +19,13 @@ public struct Joystick: View {
let appui = AppUI.shared
@ObservedObject public var joystickMonitor = JoystickMonitor()
@ObservedObject public var joystickMonitor = SwiftUIJoystick.JoystickMonitor()
private let dragDiameter: CGFloat = 160
private let shape: JoystickShape = .circle
private let shape: SwiftUIJoystick.JoystickShape = .circle
public var body: some View {
VStack{
JoystickBuilder(
SwiftUIJoystick.JoystickBuilder(
monitor: self.joystickMonitor,
width: self.dragDiameter,
shape: .circle,