File tree Expand file tree Collapse file tree 6 files changed +7
-13
lines changed
Sources/OpenTDS/Component Expand file tree Collapse file tree 6 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public struct TossToolbarButton: View {
11
11
- image: Image of the Button.
12
12
- action: Action when the Button pressed.
13
13
*/
14
- public init ( _ image: Image , action: @escaping ( ) -> ( ) ) {
14
+ public init ( _ image: Image , action: @escaping ( ) -> Void ) {
15
15
self . image = image
16
16
self . action = action
17
17
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ extension TossScrollView {
7
7
self . backButton ( )
8
8
}
9
9
10
- public func backButton( action: ( ( ) -> ( ) ) ? = nil ) -> TossScrollView {
10
+ public func backButton( action: ( ( ) -> Void ) ? = nil ) -> TossScrollView {
11
11
TossScrollView ( self . title,
12
12
showsIndicators: self . showsIndicators,
13
13
backButtonExists: true ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public struct TossScrollView<C: View>: View {
16
16
let title : String
17
17
let showsIndicators : Bool
18
18
let backButtonExists : Bool
19
- let backButtonAction : ( ( ) -> ( ) ) ?
19
+ let backButtonAction : ( ( ) -> Void ) ?
20
20
let toolbarButton : [ TossToolbarButton ] ?
21
21
let content : ( ) -> C
22
22
@@ -28,7 +28,7 @@ public struct TossScrollView<C: View>: View {
28
28
public init ( _ title: String ,
29
29
showsIndicators: Bool = true ,
30
30
backButtonExists: Bool = false ,
31
- backButtonAction: ( ( ) -> ( ) ) ? = nil ,
31
+ backButtonAction: ( ( ) -> Void ) ? = nil ,
32
32
toolbarButton: [ TossToolbarButton ] ? = nil ,
33
33
@ViewBuilder content: @escaping ( ) -> C ) {
34
34
self . title = title
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public struct TossTabViewButton: View {
18
18
19
19
let label : String
20
20
let image : Image
21
- let action : ( ) -> ( )
21
+ let action : ( ) -> Void
22
22
var selected : Bool
23
23
let haptic : UIImpactFeedbackGenerator . FeedbackStyle ?
24
24
@@ -33,7 +33,7 @@ public struct TossTabViewButton: View {
33
33
_ image: Image ,
34
34
_ selected: Bool ,
35
35
haptic: UIImpactFeedbackGenerator . FeedbackStyle ? = . light,
36
- action: @escaping ( ) -> ( ) )
36
+ action: @escaping ( ) -> Void )
37
37
{
38
38
self . label = label
39
39
self . image = image
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public struct TossTabView: View {
27
27
28
28
public var body : some View {
29
29
GeometryReader { geometry in
30
- ZStack ( alignment : . bottom ) {
30
+ VStack ( spacing : 0 ) {
31
31
ZStack {
32
32
ForEach ( content. indices, id: \. self) { idx in
33
33
content [ idx] . content
You can’t perform that action at this time.
0 commit comments