update aboutView

This commit is contained in:
True Zhuanjia
2026-07-07 16:35:58 +08:00
parent c968a1df2a
commit 6460036661
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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 {
+5
View File
@@ -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