iap work
This commit is contained in:
@@ -77,7 +77,6 @@ struct SettingsView: View {
|
||||
}
|
||||
.onAppear(perform: {
|
||||
EventLogger.log(event: "show_settings_view")
|
||||
iapManager.setUpdateTimer()
|
||||
})
|
||||
.background(
|
||||
theme.currentTheme.bg
|
||||
@@ -162,7 +161,6 @@ struct SettingsView: View {
|
||||
Spacer()
|
||||
Button(action: {
|
||||
EventLogger.log(event: "tap_settings_close")
|
||||
iapManager.decideShowIAP()
|
||||
dismiss()
|
||||
}, label: {
|
||||
Text(String(localized: "settings_view_exit"))
|
||||
@@ -545,7 +543,7 @@ struct SettingsView: View {
|
||||
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene{
|
||||
do {
|
||||
try await StoreKit.AppStore.showManageSubscriptions(in: windowScene)
|
||||
iapManager.refresh()
|
||||
iapManager.updateEverything()
|
||||
} catch {
|
||||
print("Sheet can not be opened")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user