91 lines
2.5 KiB
Swift
91 lines
2.5 KiB
Swift
//
|
|
// SPDeleteAccountDetailTextView.swift
|
|
// MoviaBox
|
|
//
|
|
// Created by 佳尔 on 2025/5/12.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class SPDeleteAccountDetailTextView: SPDeleteAccountTextView {
|
|
|
|
//MARK: UI属性
|
|
private lazy var titleLabel: UILabel = {
|
|
let label = UILabel()
|
|
label.font = .fontMedium(ofSize: 14)
|
|
label.textColor = .colorFFFFFF()
|
|
label.numberOfLines = 0
|
|
label.text = "DeleteAccount_tips_5".localized
|
|
return label
|
|
}()
|
|
|
|
private lazy var stackView: UIStackView = {
|
|
let view = UIStackView(arrangedSubviews: [tipView1, tipView2, tipView3, tipView4])
|
|
view.axis = .vertical
|
|
view.spacing = 12
|
|
|
|
return view
|
|
}()
|
|
|
|
private lazy var tipView1: SPDeleteAccountTipView = {
|
|
let view = SPDeleteAccountTipView()
|
|
view.title = "DeleteAccount_tips_title_1".localized
|
|
view.text = "DeleteAccount_tips_text_1".localized
|
|
return view
|
|
}()
|
|
|
|
private lazy var tipView2: SPDeleteAccountTipView = {
|
|
let view = SPDeleteAccountTipView()
|
|
view.title = "DeleteAccount_tips_title_2".localized
|
|
view.text = "DeleteAccount_tips_text_2".localized
|
|
return view
|
|
}()
|
|
|
|
private lazy var tipView3: SPDeleteAccountTipView = {
|
|
let view = SPDeleteAccountTipView()
|
|
view.title = "DeleteAccount_tips_title_3".localized
|
|
view.text = "DeleteAccount_tips_text_3".localized
|
|
return view
|
|
}()
|
|
|
|
private lazy var tipView4: SPDeleteAccountTipView = {
|
|
let view = SPDeleteAccountTipView()
|
|
view.title = "DeleteAccount_tips_title_4".localized
|
|
// view.text = "DeleteAccount_tips_text_1".localized
|
|
return view
|
|
}()
|
|
|
|
|
|
override init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
|
|
_setupUI()
|
|
}
|
|
|
|
@MainActor required init?(coder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
}
|
|
|
|
extension SPDeleteAccountDetailTextView {
|
|
|
|
private func _setupUI() {
|
|
addSubview(titleLabel)
|
|
addSubview(stackView)
|
|
|
|
titleLabel.snp.makeConstraints { make in
|
|
make.left.equalToSuperview().offset(13)
|
|
make.top.equalToSuperview().offset(12)
|
|
make.right.lessThanOrEqualToSuperview().offset(-13)
|
|
}
|
|
|
|
stackView.snp.makeConstraints { make in
|
|
make.left.right.equalToSuperview()
|
|
make.top.equalTo(titleLabel.snp.bottom).offset(12)
|
|
make.bottom.equalToSuperview().offset(-10)
|
|
}
|
|
|
|
}
|
|
|
|
}
|