diff --git a/Projects/Features/PickleFeature/Sources/PickleScene/VC/PicklePreparingViewController.swift b/Projects/Features/PickleFeature/Sources/PickleScene/VC/PicklePreparingViewController.swift index da3ec49f..9084ce74 100644 --- a/Projects/Features/PickleFeature/Sources/PickleScene/VC/PicklePreparingViewController.swift +++ b/Projects/Features/PickleFeature/Sources/PickleScene/VC/PicklePreparingViewController.swift @@ -7,56 +7,16 @@ import MGLogger import DSKit import Core -public class PicklePreparingViewController: BaseViewController { - - private let backgroundView = UIView() - - private let preparingImageView = UIImageView().then { - $0.image = DSKitAsset.Assets.preparingImage.image - $0.backgroundColor = .clear +public class PicklePreparingViewController: PreparingViewController { + public init() { + super.init(preparingType: .pickle) } - private let preparingTitle = MGLabel(text: "피클은 아직 개발중이에요", font: UIFont.Pretendard.titleMedium, isCenter: true) - private let preparingInfo = MGLabel(text: "현재 탭은 개발중입니다.\n빠른 시일 내에 더욱 나은 모습으로 찾아뵙겠습니다.", font: UIFont.Pretendard.bodyMedium, isCenter: true, numberOfLineCount: 2) - - public override func viewDidLoad() { - super.viewDidLoad() - - view.backgroundColor = .white - print("asdfasdfasfdasdf") + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") } - - public override func layout() { - super.layout() - view.addSubviews([backgroundView]) - backgroundView.addSubviews([preparingImageView, preparingTitle, preparingInfo]) - - backgroundView.snp.makeConstraints { - $0.centerY.equalToSuperview().inset(40.0) - $0.centerX.equalToSuperview() - $0.width.equalToSuperview() - $0.height.equalTo(228) - } - - preparingImageView.snp.makeConstraints { - $0.width.height.equalTo(120.0) - $0.top.equalToSuperview() - $0.centerX.equalToSuperview() - } - - preparingTitle.snp.makeConstraints { - $0.top.equalTo(preparingImageView.snp.bottom).offset(24.0) - $0.width.equalToSuperview() - $0.height.equalTo(32.0) - $0.centerX.equalToSuperview() - } - - preparingInfo.snp.makeConstraints { - $0.top.equalTo(preparingTitle.snp.bottom).offset(12.0) - $0.width.equalToSuperview() - $0.height.equalTo(40.0) - $0.centerX.equalToSuperview() - } - + public override func viewDidLoad() { + super.viewDidLoad() } } diff --git a/Projects/Features/ShopFeature/Sources/ShopScene/View/ShopViewController.swift b/Projects/Features/ShopFeature/Sources/ShopScene/View/ShopViewController.swift index 449ce20b..649c1c9f 100644 --- a/Projects/Features/ShopFeature/Sources/ShopScene/View/ShopViewController.swift +++ b/Projects/Features/ShopFeature/Sources/ShopScene/View/ShopViewController.swift @@ -7,56 +7,16 @@ import MGLogger import DSKit import Core -public class ShopViewController: BaseViewController { - - private let backgroundView = UIView() - - private let preparingImageView = UIImageView().then { - $0.image = DSKitAsset.Assets.preparingImage.image - $0.backgroundColor = .clear +public class ShopViewController: PreparingViewController { + public init() { + super.init(preparingType: .shop) } - private let preparingTitle = MGLabel(text: "샵은 아직 개발중이에요", font: UIFont.Pretendard.titleMedium, isCenter: true) - private let preparingInfo = MGLabel(text: "현재 탭은 개발중입니다.\n빠른 시일 내에 더욱 나은 모습으로 찾아뵙겠습니다.", font: UIFont.Pretendard.bodyMedium, isCenter: true, numberOfLineCount: 2) - - public override func viewDidLoad() { - super.viewDidLoad() - - view.backgroundColor = .white - print("asdfasdfasfdasdf") + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") } - - public override func layout() { - super.layout() - view.addSubviews([backgroundView]) - backgroundView.addSubviews([preparingImageView, preparingTitle, preparingInfo]) - - backgroundView.snp.makeConstraints { - $0.centerY.equalToSuperview().inset(40.0) - $0.centerX.equalToSuperview() - $0.width.equalToSuperview().inset(55.0) - $0.height.equalTo(228) - } - - preparingImageView.snp.makeConstraints { - $0.width.height.equalTo(120.0) - $0.top.equalToSuperview() - $0.centerX.equalToSuperview() - } - - preparingTitle.snp.makeConstraints { - $0.top.equalTo(preparingImageView.snp.bottom).offset(24.0) - $0.width.equalToSuperview() - $0.height.equalTo(32.0) - $0.centerX.equalToSuperview() - } - - preparingInfo.snp.makeConstraints { - $0.top.equalTo(preparingTitle.snp.bottom).offset(12.0) - $0.width.equalToSuperview() - $0.height.equalTo(40.0) - $0.centerX.equalToSuperview() - } - + public override func viewDidLoad() { + super.viewDidLoad() } }