update aboutView
This commit is contained in:
@@ -92,7 +92,7 @@ public struct AboutView: View {
|
||||
|
||||
HStack(spacing: 15) {
|
||||
if #available(iOS 15.0, *) {
|
||||
if PublicUtils.isIPad {
|
||||
if PublicUtils.isIPad, PublicUtils.isIAPAddonAvailable {
|
||||
Button(LocalizationHelper.localizedString(forKey: "I'm an artist")) {
|
||||
IAPManager.checkPurchaseInfo(.PencilProPack) { info in
|
||||
if !info.valid {
|
||||
|
||||
@@ -58,6 +58,11 @@ import UIKit
|
||||
}
|
||||
}()
|
||||
|
||||
@objc public static let isIAPAddonAvailable: Bool = {
|
||||
let availableBundleIds = ["com.voidlink.iOS", "com.voidlinkextreme.iOS", "com.voidlink.tf.debug10.iOS"]
|
||||
return availableBundleIds.contains(Bundle.main.bundleIdentifier ?? "")
|
||||
}()
|
||||
|
||||
@objc public static func isLandscape() -> Bool {
|
||||
if #available(iOS 13.0, *) {
|
||||
guard let windowScene = UIApplication.shared.connectedScenes
|
||||
|
||||
Reference in New Issue
Block a user