Files
suixinkan_uikit/suixinkan/UI/Orders/OrderStatusBadgeView.swift
汉秋 87696a4774 Introduce unified design tokens and migrate Home, Orders, and Statistics UI.
Establish AppColor/AppFont/AppSpacing/AppRadius theming, shared components, and design-system docs so pilot screens align with Android while keeping iOS-native spacing and touch targets.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 17:58:18 +08:00

31 lines
660 B
Swift
Raw 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.

//
// OrderStatusBadgeView.swift
// suixinkan
//
import SnapKit
import UIKit
/// `AppStatusBadge`
final class OrderStatusBadgeView: 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.applyOrderStatus(status, text: text)
}
}