fix: Solve typo in constant
This commit is contained in:
@@ -14,7 +14,7 @@ import StoreKit
|
||||
class SubscriptionDetailViewController: UIViewController {
|
||||
|
||||
/// Enable this allows shake to enable the current subscription
|
||||
private static let ShareToEnableSubscription = false
|
||||
private static let ShakeToEnableSubscription = false
|
||||
|
||||
var product: SKProduct? {
|
||||
didSet {
|
||||
@@ -126,7 +126,7 @@ class SubscriptionDetailViewController: UIViewController {
|
||||
|
||||
extension SubscriptionDetailViewController {
|
||||
override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
|
||||
guard let product = product, event?.subtype == .motionShake, Self.ShareToEnableSubscription else {
|
||||
guard let product = product, event?.subtype == .motionShake, Self.ShakeToEnableSubscription else {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user