// // CreateBubbleTipsView.swift // QuickLocation // // Created by 八条 on 2026/6/26. // import UIKit import RxSwift import RxCocoa class CreateBubbleTipsView: UIView { var disposeBag = DisposeBag() var messageText: String = "" private func setupRx() { } private func setupUI() { addSubview(titleLab) addSubview(tipsLab) addSubview(messageView) addSubview(iconView) addSubview(doneBtn) titleLab.layoutChain .top(15) .edgesHorzontal(58) messageView.layoutChain .topToBottomOfView(titleLab, offset: 47) .left(79) .right(30) iconView.layoutChain .rightToLeftOfView(messageView, offset: -9) .bottomToView(messageView) .height(40) .width(40) doneBtn.layoutChain .centerX() .width(240) .height(50) .bottom(kSafeBottomMargin + 10) tipsLab.layoutChain .edgesHorzontal(38) .bottomToTopOfView(doneBtn, offset: -20) } lazy var titleLab: UILabel = { let label = UILabel() label.text = "我们让您的圈子知道您创建了一个带有以下消息的气泡" label.font = .systemFont(ofSize: 20, weight: .bold) label.textColor = ThemeManager.shared.color.titleAuxColor label.numberOfLines = 0 return label }() lazy var iconView: UIImageView = { let view = UIImageView(image: UIImage(named: "UserIcon/7")) view.cornerRadius = 20 return view }() lazy var messageView: UIView = { let view = UIView() view.backgroundColor = UIColor(hexStr: "#EBF6F9") view.cornerRadius = 10 view.addSubview(messageLab) messageLab.layoutChain .edgesHorzontal(18) .edgesVertical(15) return view }() lazy var messageLab: UILabel = { let label = UILabel() label.font = .systemFont(ofSize: 16, weight: .medium) label.textColor = ThemeManager.shared.color.titleAuxColor label.numberOfLines = 0 return label }() lazy var tipsLab: UILabel = { let label = UILabel() label.text = "您的圈子成员只会看到您在气泡中。当您在气泡中,将不会共享您的确切位置。" label.font = .systemFont(ofSize: 14, weight: .medium) label.textColor = ThemeManager.shared.color.titleAuxColor label.numberOfLines = 0 return label }() lazy var doneBtn: UIButton = { let btn = UIButton(type: .custom) btn.setTitle("完成", for: .normal) btn.setTitleColor(.white, for: .normal) btn.titleLabel?.font = .systemFont(ofSize: 16, weight: .medium) btn.setBackgroundImage(UIImage(named: "Common/button_bg_2"), for: .normal) btn.cornerRadius = 25 return btn }() override init(frame: CGRect) { super.init(frame: .zero) self.isHidden = true backgroundColor = .white setupUI() setupRx() } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } }