This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import StoreKit | |
enum ProductsId: String { | |
case subsWeekly24 = "WeeklyId" | |
case subsAnnual24 = "AnnualId" | |
} | |
@MainActor | |
class PurchaseManager: NSObject, ObservableObject { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UserNotifications | |
import SwiftUI | |
@MainActor | |
class NotificationManager: ObservableObject{ | |
@Published private(set) var hasPermission = false | |
init() { | |
Task{ |