Skip to content

Commit eff8763

Browse files
committed
fix: iOS 26 Liquid Glass 탭바 투명 배경 적용
- UITabBarAppearance configureWithDefaultBackground 설정 - 코스 발견/보관함 콘텐츠 bottom을 superview로 확장 (iOS 26) - Liquid Glass가 뒤 콘텐츠를 비추도록 레이아웃 수정
1 parent 7650e4e commit eff8763

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseDiscoveryVC.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,12 @@ extension CourseDiscoveryVC {
301301

302302
mapCollectionView.snp.makeConstraints {
303303
$0.top.equalTo(self.naviBar.snp.bottom)
304-
$0.leading.bottom.trailing.equalTo(view.safeAreaLayoutGuide)
304+
$0.leading.trailing.equalTo(view.safeAreaLayoutGuide)
305+
if #available(iOS 26, *) {
306+
$0.bottom.equalToSuperview()
307+
} else {
308+
$0.bottom.equalTo(view.safeAreaLayoutGuide)
309+
}
305310
}
306311

307312
uploadButton.snp.makeConstraints {

Runnect-iOS/Runnect-iOS/Presentation/CourseStorage/VC/CourseStorageVC.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,12 @@ extension CourseStorageVC {
225225

226226
viewPager.snp.makeConstraints {
227227
$0.top.equalTo(naviBar.snp.bottom)
228-
$0.leading.bottom.trailing.equalTo(view.safeAreaLayoutGuide)
228+
$0.leading.trailing.equalTo(view.safeAreaLayoutGuide)
229+
if #available(iOS 26, *) {
230+
$0.bottom.equalToSuperview()
231+
} else {
232+
$0.bottom.equalTo(view.safeAreaLayoutGuide)
233+
}
229234
}
230235

231236
deleteCourseButton.snp.makeConstraints {

Runnect-iOS/Runnect-iOS/Presentation/TabBar/TabBarController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ extension TabBarController {
3131
// iOS 26+: Liquid Glass 활용
3232
tabBar.tintColor = .m1
3333
tabBar.unselectedItemTintColor = .g3
34-
// 시스템 Liquid Glass 스타일 사용 — 커스텀 배경/코너 제거
34+
// Liquid Glass 활성화: 시스템 기본 반투명 외관 설정
35+
let appearance = UITabBarAppearance()
36+
appearance.configureWithDefaultBackground()
37+
tabBar.standardAppearance = appearance
38+
tabBar.scrollEdgeAppearance = appearance
3539
} else {
3640
// iOS 25 이하: 기존 커스텀 스타일 유지
3741
tabBar.backgroundColor = .white

0 commit comments

Comments
 (0)