We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17f0688 commit 0de0e81Copy full SHA for 0de0e81
Sources/OpenTDS/Component/TabView/TabView.swift
@@ -27,7 +27,7 @@ public struct TossTabView: View {
27
28
public var body: some View {
29
GeometryReader { geometry in
30
- VStack(spacing: 0) {
+ ZStack(alignment: .bottom) {
31
ZStack {
32
ForEach(content.indices, id: \.self) { idx in
33
content[idx].content
Sources/OpenTDS/Foundation/Extensions/ViewExt.swift
@@ -0,0 +1,14 @@
1
+import SwiftUI
2
+
3
+public extension View {
4
5
+ @ViewBuilder func tossTabViewBottomPadding() -> some View {
6
+ GeometryReader { proxy in
7
+ self.padding(.bottom, proxy.safeAreaInsets.bottom <= 20 ? 43 : 56)
8
+ }
9
10
11
+ @ViewBuilder func tossTabViewBackground(_ content: some View) -> some View {
12
+ self.tossTabViewBottomPadding().background(content)
13
14
+}
0 commit comments