mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
(cherry picked from commit 5477de8265e44745e6efe9aa76b7778af6fd500d)
54 lines
2.2 KiB
Swift
54 lines
2.2 KiB
Swift
//
|
|
// Created by Dirk Jäckel on 22.12.21.
|
|
// Copyright (c) 2021 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
import WhatsNewKit
|
|
import SwiftUI
|
|
|
|
class WhatsNewHandler {
|
|
var whatsNewViewController: WhatsNewViewController?
|
|
|
|
init() {
|
|
whatsNewViewController = nil
|
|
// TODO: Uncomment and change on new releases
|
|
// let whatsNew = WhatsNew(
|
|
// version: "3.21.0",
|
|
// title: "What's new",
|
|
// features: [
|
|
// WhatsNew.Feature(
|
|
// image: WhatsNew.Feature.Image(name: "ico-whats-new-social-login", bundle: .main, renderingMode: .original, foregroundColor: nil),
|
|
// title: "Gmail and Apple ID login and easy Safe Account creation on Gnosis Chain",
|
|
// subtitle: "Use your Gmail account or Apple ID to create an owner key for your new 1/1 Safe Account without the need for seed phrases."
|
|
// ),
|
|
// WhatsNew.Feature(
|
|
// image: WhatsNew.Feature.Image(name: "ico-whats-new-onramp", bundle: .main, renderingMode: .original, foregroundColor: nil),
|
|
// title: "Buy crypto and top up your Safe Account",
|
|
// subtitle: "Use Apple Pay, bank transfers or your debit and credit card to top up your Safe Account."
|
|
// )
|
|
// ],
|
|
// primaryAction: WhatsNew.PrimaryAction(
|
|
// title: "Let's go",
|
|
// backgroundColor: .primary,
|
|
// foregroundColor: .backgroundPrimary,
|
|
// hapticFeedback: .notification(.success),
|
|
// onDismiss: nil
|
|
// ),
|
|
// secondaryAction: nil
|
|
// )
|
|
|
|
// for debugging, use the In-memory store version
|
|
// let versionStore: WhatsNewVersionStore = InMemoryWhatsNewVersionStore()
|
|
// let versionStore: WhatsNewVersionStore = UserDefaultsWhatsNewVersionStore()
|
|
//
|
|
// let layout = WhatsNew.Layout(featureImageWidth: 60, featureHorizontalAlignment: .top)
|
|
//
|
|
// whatsNewViewController = WhatsNewViewController(
|
|
// whatsNew: whatsNew,
|
|
// versionStore: versionStore,
|
|
// layout: layout
|
|
// )
|
|
}
|
|
}
|