@@ -74,10 +74,8 @@ public extension MainTabView {
7474 }
7575
7676 if self . store. linkPopup != nil {
77- PokitLinkPopup (
78- type: $store. linkPopup,
79- action: { send ( . λ§ν¬νμ
_λ²νΌ_λλ μλ, animation: . pokitSpring) }
80- )
77+ PokitLinkPopup ( type: $store. linkPopup)
78+ . onAction { send ( . λ§ν¬νμ
_λ²νΌ_λλ μλ, animation: . pokitSpring) }
8179 }
8280 }
8381 }
@@ -93,11 +91,9 @@ private extension MainTabView {
9391 . overlay ( alignment: . bottom) {
9492 VStack ( spacing: 0 ) {
9593 if store. linkPopup != nil {
96- PokitLinkPopup (
97- type: $store. linkPopup,
98- action: { send ( . λ§ν¬νμ
_λ²νΌ_λλ μλ, animation: . pokitSpring) }
99- )
100- . padding ( . bottom, 20 )
94+ PokitLinkPopup ( type: $store. linkPopup)
95+ . onAction { send ( . λ§ν¬νμ
_λ²νΌ_λλ μλ, animation: . pokitSpring) }
96+ . padding ( . bottom, 20 )
10197 }
10298
10399 bottomTabBar
@@ -273,7 +269,14 @@ private extension MainTabView {
273269
274270 var body : some View {
275271 GeometryReader { proxy in
276- let bottomSafeArea = proxy. safeAreaInsets. bottom
272+ let bottomPadding : CGFloat = {
273+ if #available( iOS 26 . 0 , * ) {
274+ return 32
275+ } else {
276+ return 48
277+ }
278+ } ( )
279+
277280 HStack ( spacing: 20 ) {
278281 Spacer ( )
279282
@@ -306,7 +309,7 @@ private extension MainTabView {
306309
307310 Spacer ( )
308311 }
309- . padding ( . bottom, 48 - bottomSafeArea )
312+ . padding ( . bottom, bottomPadding )
310313 . padding ( . top, 36 )
311314 . pokitPresentationCornerRadius ( )
312315 . pokitPresentationBackground ( )
@@ -319,6 +322,7 @@ private extension MainTabView {
319322 }
320323 . presentationDetents ( [ . height( self . height) ] )
321324 }
325+ . ignoresSafeArea ( edges: . bottom)
322326 }
323327 }
324328}
0 commit comments