minor fixes
This commit is contained in:
@@ -464,8 +464,8 @@ import CoreMotion
|
||||
var sampleCount = 0
|
||||
|
||||
if useBuiltinGyro {
|
||||
motionManager.startGyroUpdates(to: .main) { [weak self] gyroData, _ in
|
||||
guard let self = self, self.isCalibrating, let data = gyroData else { return }
|
||||
motionManager.startDeviceMotionUpdates(to: .main) { [weak self] motionData, _ in
|
||||
guard let self = self, self.isCalibrating, let data = motionData else { return }
|
||||
sumX += data.rotationRate.x
|
||||
sumY += data.rotationRate.y
|
||||
sumZ += data.rotationRate.z
|
||||
|
||||
@@ -212,7 +212,7 @@ import UIKit
|
||||
message: "In-app-purchase not available on this device.".localized,
|
||||
withCancel: false,
|
||||
buttonTitle: "OK".localized,
|
||||
countdown: 6
|
||||
countdown: 0
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1489,7 +1489,10 @@ struct WidgetPickerView: View {
|
||||
selectedCmds.append(Self.selectionIdentifier(for: cmd))
|
||||
poolItems.append(item)
|
||||
} else if let trailingPadIndex = trailingCombinablePadIndex {
|
||||
selectedCmds.insert(Self.selectionIdentifier(for: cmd), at: trailingPadIndex)
|
||||
let selectedInsertIndex = poolItems[..<trailingPadIndex]
|
||||
.filter { !isTriggerIntervalItem($0) }
|
||||
.count
|
||||
selectedCmds.insert(Self.selectionIdentifier(for: cmd), at: selectedInsertIndex)
|
||||
poolItems.insert(item, at: trailingPadIndex)
|
||||
} else {
|
||||
selectedCmds.append(Self.selectionIdentifier(for: cmd))
|
||||
|
||||
Reference in New Issue
Block a user