Skip to content

Commit

Permalink
Merge pull request #21 from tichise/feature/viewmodel
Browse files Browse the repository at this point in the history
不要な変数を削除
  • Loading branch information
tichise authored Jan 8, 2024
2 parents 7c9a372 + 41edb52 commit a4fd6f2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Sources/OMJoyStick.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ public struct OMJoystick: View {

let iconPadding: CGFloat = 10

var smallRingDiameter: CGFloat {
return smallRingRadius*2
}

var bigRingDiameter: CGFloat {
return bigRingRadius*2
}

var smallRingRadius: CGFloat
var bigRingRadius: CGFloat

Expand Down Expand Up @@ -170,9 +162,9 @@ public struct OMJoystick: View {
BigRing(
bigRingNormalBackgroundColor: bigRingNormalBackgroundColor, bigRingDarkBackgroundColor: bigRingDarkBackgroundColor,
bigRingStrokeColor: bigRingStrokeColor,
bigRingDiameter: bigRingDiameter).environmentObject(viewModel).gesture(dragGesture)
bigRingDiameter: bigRingRadius*2).environmentObject(viewModel).gesture(dragGesture)

SmallRing(smallRingDiameter: self.smallRingDiameter, subRingColor: subRingColor).offset(x: smallRingLocationX, y: smallRingLocationY).environmentObject(viewModel).allowsHitTesting(false)
SmallRing(smallRingDiameter: smallRingRadius*2, subRingColor: subRingColor).offset(x: smallRingLocationX, y: smallRingLocationY).environmentObject(viewModel).allowsHitTesting(false)
}

rightIcon?.renderingMode(.template)
Expand Down

0 comments on commit a4fd6f2

Please sign in to comment.