update aboutView
This commit is contained in:
1 parent
c968a1df2a
commit
6460036661
2 files changed
+6
-1
No files matched your search
@@ -92,7 +92,7 @@ public struct AboutView: View {
|
|||||||
|
|
||||||
HStack(spacing: 15) {
|
HStack(spacing: 15) {
|
||||||
if #available(iOS 15.0, *) {
|
if #available(iOS 15.0, *) {
|
||||||
if PublicUtils.isIPad {
|
if PublicUtils.isIPad, PublicUtils.isIAPAddonAvailable {
|
||||||
Button(LocalizationHelper.localizedString(forKey: "I'm an artist")) {
|
Button(LocalizationHelper.localizedString(forKey: "I'm an artist")) {
|
||||||
IAPManager.checkPurchaseInfo(.PencilProPack) { info in
|
IAPManager.checkPurchaseInfo(.PencilProPack) { info in
|
||||||
if !info.valid {
|
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 {
|
@objc public static func isLandscape() -> Bool {
|
||||||
if #available(iOS 13.0, *) {
|
if #available(iOS 13.0, *) {
|
||||||
guard let windowScene = UIApplication.shared.connectedScenes
|
guard let windowScene = UIApplication.shared.connectedScenes
|
||||||
|
|||||||
Reference in new issue
Block a user