mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
* gh-2932 Add relay clock icon * gh-2932 Disable owner cleanup for security v2 * gh-2932 Add payment method selection cell * gh-2932 Add label cell * gh-2932 Adjust review execution cell structure * gh-2932 Add tx payment method enum * gh-2932 Get remaining relays and show payment method * gh-2936 Adjust background * gh-2932 Adjust validation * gh-2932 Fix background * gh-2932 Refactor * gh-2932 Add payment method selection vc * gh-2932 Relay transaction * gh-2932 Adjust relay info banner * gh-2932 Adjust banner and payment method cell * gh-2932 Rearrange payment info cells * gh-2932 WIP: payment method selection dialog * gh-2932 Fetch remaining relays on tx details screen * gh-2932 Add one signature and log response * gh-2932 Add all signatures. Log taskId * gh-2932 Switch payment method to EOA when remaining relays exhausted * gh-2932 Fixes: - Autoselection of EOA if no remaininf relayer txs left - Sign EOA executed txs - Execute via EOA if no relayer executions left * gh-2932 Remove labelcell * gh-2932 Remove cruft and move stuff around * gh-2932 Added remaining tracking events. But not emitting them, yet * gh-2932 separator -> background & cruft removed * gh-2932 Remove more cruft * gh-2932 formatting * gh-2932 Everything leads to insufficient balancex --------- Co-authored-by: Dirk Jäckel <[email protected]>
50 lines
1.4 KiB
Swift
50 lines
1.4 KiB
Swift
//
|
|
// DisclosureWithContentCell.swift
|
|
// Multisig
|
|
//
|
|
// Created by Dmitry Bespalov on 11.01.22.
|
|
// Copyright © 2022 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class DisclosureWithContentCell: UITableViewCell {
|
|
|
|
// body label left-aligned, vertically centered
|
|
@IBOutlet weak var cellLabel: UILabel!
|
|
// content spans remaining horizontal space
|
|
@IBOutlet weak var detailContentView: UIView!
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
cellLabel.setStyle(.headline)
|
|
}
|
|
|
|
func setText(_ value: String?) {
|
|
cellLabel.text = value
|
|
}
|
|
|
|
func setContent(_ view: UIView?) {
|
|
// clear subviews
|
|
for v in detailContentView.subviews {
|
|
v.removeFromSuperview()
|
|
}
|
|
guard let view = view else { return }
|
|
|
|
view.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
detailContentView.addSubview(view)
|
|
|
|
detailContentView.addConstraints([
|
|
view.leadingAnchor.constraint(equalTo: detailContentView.leadingAnchor),
|
|
view.trailingAnchor.constraint(equalTo: detailContentView.trailingAnchor),
|
|
view.topAnchor.constraint(equalTo: detailContentView.topAnchor),
|
|
view.bottomAnchor.constraint(equalTo: detailContentView.bottomAnchor)
|
|
])
|
|
}
|
|
|
|
func setBackgroundColor(_ color: UIColor?) {
|
|
self.backgroundColor = color
|
|
}
|
|
}
|