We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import UIKit class BaseView: UIView { override init(frame: CGRect) { super.init(frame: frame) setupView() setupConstraints() } @available(*, unavailable) required init?(coder: NSCoder) { super.init(coder: coder) } func setupView() {} func setupConstraints() {} }
// // AddPillSecondView.swift // SobokSobok // // Created by 김승찬 on 2022/04/29. // import UIKit import SnapKit import Then final class FirstView: BaseView { lazy var nameLabel = UILabel().then { $0.text = "HI" } override func setupView() { addSubview(nameLabel) } override func setupConstraints() { nameLabel.snp.makeConstraints { $0.centerX.equalToSuperview() $0.centerY.equalToSuperview() } } }
The text was updated successfully, but these errors were encountered:
seungchan2
No branches or pull requests
BaseView 설계 이유
예시 코드
The text was updated successfully, but these errors were encountered: