| 1234567891011121314151617181920212223242526 |
- import Foundation
- /// Features available without a Premium subscription.
- enum AppFeature: Sendable {
- case printText
- case scannerScan
- case scanImport
- case printContacts
- case drawPrint
- case ocrFile
- case photoPreview
- case filePreview
- case documentImport
- }
- @MainActor
- enum FreeTierManager {
- static func canAccess(_ feature: AppFeature, isPremium: Bool) -> Bool {
- if isPremium { return true }
- switch feature {
- case .printText, .scannerScan, .scanImport, .printContacts, .drawPrint, .ocrFile, .photoPreview, .filePreview, .documentImport:
- return false
- }
- }
- }
|