-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
154 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
ACON-iOS/ACON-iOS/Presentation/LocalVerification/View/LocalMapView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// LocalMapView.swift | ||
// ACON-iOS | ||
// | ||
// Created by 이수민 on 1/15/25. | ||
// | ||
|
||
import UIKit | ||
|
||
import SnapKit | ||
import Then | ||
|
||
final class LocalMapView: BaseView { | ||
|
||
// MARK: - UI Properties | ||
|
||
let localMapImageView: UIImageView = UIImageView() | ||
|
||
var finishVerificationButton: UIButton = UIButton() | ||
|
||
// MARK: - Lifecycle | ||
|
||
override func setHierarchy() { | ||
super.setHierarchy() | ||
|
||
self.addSubviews(localMapImageView, | ||
finishVerificationButton) | ||
} | ||
|
||
override func setLayout() { | ||
super.setLayout() | ||
|
||
localMapImageView.snp.makeConstraints { | ||
$0.top.horizontalEdges.equalToSuperview() | ||
$0.height.equalTo(ScreenUtils.height*564/780) | ||
} | ||
|
||
finishVerificationButton.snp.makeConstraints { | ||
$0.bottom.equalToSuperview().inset(ScreenUtils.height*36/780) | ||
$0.horizontalEdges.equalToSuperview().inset(ScreenUtils.width*20/360) | ||
$0.height.equalTo(52) | ||
} | ||
|
||
} | ||
|
||
override func setStyle() { | ||
super.setStyle() | ||
|
||
localMapImageView.do { | ||
$0.backgroundColor = .gray | ||
} | ||
|
||
finishVerificationButton.do { | ||
$0.setAttributedTitle(text: StringLiterals.LocalVerification.finishVerification, | ||
style: .h8, | ||
color: .acWhite, | ||
for: .normal) | ||
$0.backgroundColor = .gray5 | ||
$0.roundedButton(cornerRadius: 6, maskedCorners: [.layerMaxXMaxYCorner, .layerMaxXMinYCorner, .layerMinXMaxYCorner, .layerMinXMinYCorner]) | ||
} | ||
} | ||
|
||
} | ||
|
73 changes: 73 additions & 0 deletions
73
ACON-iOS/ACON-iOS/Presentation/LocalVerification/View/LocalMapViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// | ||
// LocalMapViewController.swift | ||
// ACON-iOS | ||
// | ||
// Created by 이수민 on 1/15/25. | ||
// | ||
|
||
import UIKit | ||
|
||
import SnapKit | ||
import Then | ||
|
||
class LocalMapViewController: BaseNavViewController { | ||
|
||
// MARK: - UI Properties | ||
|
||
private let localMapView = LocalMapView() | ||
|
||
// MARK: - LifeCycle | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
self.setXButton() | ||
addTarget() | ||
} | ||
|
||
override func viewWillAppear(_ animated: Bool) { | ||
super.viewWillAppear(false) | ||
|
||
self.tabBarController?.tabBar.isHidden = true | ||
} | ||
|
||
override func setHierarchy() { | ||
super.setHierarchy() | ||
|
||
self.contentView.addSubview(localMapView) | ||
} | ||
|
||
override func setLayout() { | ||
super.setLayout() | ||
|
||
localMapView.snp.makeConstraints { | ||
$0.edges.equalToSuperview() | ||
} | ||
} | ||
|
||
override func setStyle() { | ||
super.setStyle() | ||
|
||
self.setXButton() | ||
self.setSecondTitleLabelStyle(title: "지도에서 위치 확인하기") | ||
} | ||
|
||
func addTarget() { | ||
localMapView.finishVerificationButton.addTarget(self, | ||
action: #selector(finishVerificationButtonTapped), | ||
for: .touchUpInside) | ||
} | ||
|
||
} | ||
|
||
|
||
// MARK: - @objc functions | ||
|
||
private extension LocalMapViewController { | ||
|
||
@objc | ||
func finishVerificationButtonTapped() { | ||
// TODO: - 인증완료모달 | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters