| | |
| | | @IBOutlet weak var view_container: UIView! |
| | | @IBOutlet weak var label_content: UILabel! |
| | | @IBOutlet weak var btn_complete: UIButton! |
| | | @IBOutlet weak var cons_hei: NSLayoutConstraint! |
| | | // @IBOutlet weak var cons_hei: NSLayoutConstraint! |
| | | @IBOutlet weak var cons_textTop: NSLayoutConstraint! |
| | | private var settingModel = UserDefaultSettingViewModel.getSetting() |
| | | |
| | |
| | | ruleView.label_title.text = title |
| | | ruleView.label_content.attributedText = AttributedStringbuilder.build().add(string:content, withFont: .systemFont(ofSize: 14), withColor: .black.withAlphaComponent(0.59), lineSpace: 7).mutableAttributedString |
| | | ruleView.label_content.textAlignment = textAlignment |
| | | ruleView.cons_hei.constant = height |
| | | // ruleView.cons_hei.constant = height |
| | | ruleView.cons_textTop.constant = textTopOffset |
| | | |
| | | sceneDelegate?.window?.addSubview(ruleView) |
| | |
| | | |
| | | override func layoutSubviews() { |
| | | super.layoutSubviews() |
| | | btn_complete.localGradientColor(cornerRadius: 20) |
| | | btn_complete.localGradientColor(cornerRadius: 20,bounds: CGRect(x: 0, y: 0, width: JQ_ScreenW - 85 * 2, height: 40)) |
| | | } |
| | | } |