Files
suixinkan_uikit/suixinkan/UI/Orders/Views/DepositOrderStatusBadgeView.swift

31 lines
707 B
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.

//
// DepositOrderStatusBadgeView.swift
// suixinkan
//
import SnapKit
import UIKit
/// Android `DepositOrderCard` badge12sp
final class DepositOrderStatusBadgeView: UIView {
private let badge = AppStatusBadge()
override init(frame: CGRect) {
super.init(frame: frame)
addSubview(badge)
badge.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
}
@available(*, unavailable)
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func apply(status: Int, text: String) {
badge.applyDepositOrderStatus(status, text: text)
}
}