Files
safe-ios/Multisig/UI/Safe Management/Create Safe/CreateSafeInstructionsViewController.swift
2023-06-23 11:37:51 +02:00

38 lines
1.3 KiB
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// CreateSafeInstructionsViewController.swift
// Multisig
//
// Created by Dmitry Bespalov on 22.02.22.
// Copyright © 2022 Gnosis Ltd. All rights reserved.
//
import UIKit
class CreateSafeInstructionsViewController: InstructionsViewController {
convenience init() {
self.init(namedClass: InstructionsViewController.self)
}
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.largeTitleDisplayMode = .never
title = "How does it work?"
steps = [
.header,
.step(number: "1", title: "Choose a name", description: "How do you want to identify your Safe Account?"),
.step(number: "2", title: "Add owners", description: "Owners are owner keys that control Safe Account. Add owners and specify the number of required signatures."),
.step(number: "3", title: "Pay network fee", description: "A network fee is required for creation, as Safe Account is a smart contract. We don’t profit from the fees."),
.finalStep(title: "Start using your Safe Account!")
]
button.setText("OK, Let’s start", .filled)
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
Tracker.trackEvent(.createSafeIntro)
}
}