-
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
Fix [#24] tabbar 기기대응 #30
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.
수고하셨습니다!!!! 😎
let tabBarHeight: CGFloat = 58.0 | ||
tabBar.frame.size.height = tabBarHeight + safeAreaHeight | ||
tabBar.frame.origin.y = view.frame.height - tabBarHeight - safeAreaHeight | ||
let safeAreaHeight = view.safeAreaInsets.bottom.adjustedHeight |
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.
p3. 이부분 삼항연산자로 간결하게 할 수 있을듯합니다
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.
옼에이~
$0.horizontalEdges.equalToSuperview() | ||
$0.height.equalTo(100) | ||
|
||
if UIScreen.main.isLongerThan812pt { | ||
$0.height.equalTo(100.adjusted) | ||
} else { | ||
$0.height.equalTo(64) | ||
} | ||
} | ||
} |
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. 혹시 height만 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.
이상해집니다. ㅋ
let safeAreaHeight = view.safeAreaInsets.bottom | ||
let tabBarHeight: CGFloat = 58.0 |
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.
p4. adjusted height 가능할 것 같기도 합니다!
let tabBarHeight: CGFloat = 52.0.adjusted | ||
tabBar.frame.size.height = tabBarHeight + safeAreaHeight | ||
tabBar.frame.origin.y = view.frame.height - tabBarHeight - safeAreaHeight | ||
} else { | ||
let tabBarHeight: CGFloat = 58.0.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. adjustedHeight하면 좋습니다!
👾 작업 내용
🚀 PR Point
SE 사이즈 예외처리
tabbarController와 tabView의 사이즈를
UIScreen.main.isLongerThan812pt
를 이용해 SE 사이즈는 따로 레이아웃을 잡아줬습니다.tabbarController의 높이 코드입니다.
📸 스크린샷
✅ Issue
Resolved #24