Files
safe-ios/Multisig/UI/ClaimToken/Views/InstructionStepListView.swift
Dirk JäckelandGitHub fb4fdeccfb Gh 2546/adjust get started screen (#2607)
* gh-2546 Text changed
* gh-2546 Misplaced paragraph bullet points
* gh-2546 Bulleted list
* gh-2546 indent items
* gh-2546 Fix indentation
2022-09-01 13:41:02 +02:00

41 lines
856 B
Swift

//
// InstructionStepListView.swift
// Multisig
//
// Created by Vitaly on 21.07.22.
// Copyright © 2022 Gnosis Ltd. All rights reserved.
//
import UIKit
class InstructionStepListView: UIStackView {
struct Step {
let description: String
}
override init(frame: CGRect) {
super.init(frame: frame)
axis = .vertical
}
required init(coder: NSCoder) {
super.init(coder: coder)
axis = .vertical
alignment = .top
distribution = .fill
}
func setContent(steps: [Step]) {
arrangedSubviews.forEach { $0.removeFromSuperview() }
for (_, step) in steps.enumerated() {
let instructionView = InstructionStepView()
instructionView.setData(description: step.description)
addArrangedSubview(instructionView)
}
}
}