-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
Feat [#36] 스크린타임 API 연결 #66
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 정말 수고 많으셨습니다.👍
|
||
private let goalTimeView = GoalTimeSelectView() | ||
|
||
override func loadView() { | ||
self.view = goalTimeView | ||
} | ||
|
||
override func viewDidLoad() { | ||
configureViewController() | ||
|
||
super.viewDidLoad() | ||
} | ||
|
||
private func configureViewController() { | ||
mainTitleText = StringLiteral.Challenge.GoalTime.titleText | ||
subTitleText = StringLiteral.Challenge.GoalTime.subTitleText | ||
nextButton.setTitle("완료", for: .normal) | ||
step = 6 | ||
} | ||
|
||
override func onTapButton() { | ||
self.navigationController?.popToRootViewController(animated: false) | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5. 이 부분 전 뷰와의 연결을 위해 추후에 제가 수정해도 될까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네! 당연하죠🐹
class GoalTimeSelectView: UIView { | ||
|
||
var screenTime = ScreenTime.shared | ||
private let picker = SpecificTimePickerView() | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
setUI() | ||
configureView() | ||
|
||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
private func setUI(){ | ||
setHierarchy() | ||
setConstraints() | ||
} | ||
|
||
private func setHierarchy() { | ||
self.addSubviews(picker) | ||
} | ||
|
||
private func setConstraints() { | ||
picker.snp.makeConstraints { | ||
$0.center.equalToSuperview() | ||
$0.width.equalTo(335.adjusted) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5. 이 부분도 totalPickerView와의 통일성을 위해서 수정이 필요할 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아주 나이스 하네요~
HMH_iOS/HMH_iOS/Presentation/Challenge/Cells/HeaderFooterView/TitleCollectionReusableView.swift
Outdated
Show resolved
Hide resolved
HMH_iOS/HMH_iOS/Presentation/Challenge/ViewControllers/ChallengeViewController.swift
Outdated
Show resolved
Hide resolved
HMH_iOS/HMH_iOS/Presentation/Challenge/Views/ChallengeView.swift
Outdated
Show resolved
Hide resolved
HMH_iOS/HMH_iOS/Presentation/Challenge/Views/GoalTimeSelectView.swift
Outdated
Show resolved
Hide resolved
HMH_iOS/HMH_iOS/Presentation/Challenge/Views/GoalTimeSelectView.swift
Outdated
Show resolved
Hide resolved
private let authorizationCenter = AuthorizationCenter.shared | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2. 줄바꿈 놉
👾 작업 내용
스크린타임 API 연결을 위한 세팅을 완료했습니다.
🚀 PR Point
아직 미완성입니다!!!
브랜치가 너무 오래되어 한번 끊고 코드리뷰 받으려 합니다.
Shield
/ShieldConfig
: 이용 시간 완료 후 잠금 뷰에 대한 커스텀을 위해 필요한 Target 입니다. (추가완료)ViewWillAppear(: )
에서 호출됩니다.HMH-iOS/HMH_iOS/HMH_iOS/Presentation/Common/CustomTabbar/TabBarController.swift
Lines 132 to 144 in f170ed1
📸 스크린샷
🚀 기기 대응
✅ Issue
Resolved #36