diff --git a/Example/TTSegmentedControlExample/TTSegmentedControlExample/ContentView.swift b/Example/TTSegmentedControlExample/TTSegmentedControlExample/ContentView.swift index 5d661da..282e06d 100644 --- a/Example/TTSegmentedControlExample/TTSegmentedControlExample/ContentView.swift +++ b/Example/TTSegmentedControlExample/TTSegmentedControlExample/ContentView.swift @@ -17,7 +17,8 @@ struct ContentView: View { example4Section switchViewSection } - .padding(.horizontal, 24) + .padding(.all, 24) + .frame(maxHeight: .infinity, alignment: .top) } } @@ -54,7 +55,6 @@ extension ContentView { VStack(spacing: 10) { header(title: "Switch") SwitchView() - .frame(height: 60) .frame(maxWidth: .infinity, alignment: .leading) } } diff --git a/Resources/TTSegmentedControl.gif b/Resources/TTSegmentedControl.gif index 012d174..cebf9ed 100644 Binary files a/Resources/TTSegmentedControl.gif and b/Resources/TTSegmentedControl.gif differ