diff --git a/apple/Sources/FerrostarSwiftUI/Views/InstructionsView.swift b/apple/Sources/FerrostarSwiftUI/Views/InstructionsView.swift index 97868080..140c49bb 100644 --- a/apple/Sources/FerrostarSwiftUI/Views/InstructionsView.swift +++ b/apple/Sources/FerrostarSwiftUI/Views/InstructionsView.swift @@ -17,7 +17,7 @@ public struct InstructionsView: View { visualInstruction.secondaryContent != nil } - private let handlePadding: CGFloat = 12 + private let verticalPadding: CGFloat = 16 @State private var isExpanded: Bool @@ -106,8 +106,8 @@ public struct InstructionsView: View { ) .font(.title2.bold()) .padding(.horizontal, 16) - .padding(.top, 16) - .padding(.bottom, hasSecondary || expandedContent == nil ? 16 : handlePadding) + .padding(.top, verticalPadding) + .padding(.bottom, hasSecondary ? 8 : verticalPadding) if let secondaryContent = visualInstruction.secondaryContent { DefaultIconographyManeuverInstructionView( @@ -118,8 +118,8 @@ public struct InstructionsView: View { theme: secondaryRowTheme ) .padding(.horizontal, 16) - .padding(.vertical, 8) - .padding(.bottom, handlePadding) + .padding(.top, 8) + .padding(.bottom, verticalPadding) .background(secondaryRowTheme.backgroundColor) } }.overlay( diff --git a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testExpandedInstructionsView.1.png b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testExpandedInstructionsView.1.png index a9a758d7..6ade82fa 100644 Binary files a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testExpandedInstructionsView.1.png and b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testExpandedInstructionsView.1.png differ diff --git a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testExpandedInstructionsView_darkMode.1.png b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testExpandedInstructionsView_darkMode.1.png index f11b76f2..e0203d63 100644 Binary files a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testExpandedInstructionsView_darkMode.1.png and b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testExpandedInstructionsView_darkMode.1.png differ diff --git a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testInstructionsView.1.png b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testInstructionsView.1.png index c02a5b79..a85668d0 100644 Binary files a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testInstructionsView.1.png and b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testInstructionsView.1.png differ diff --git a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testInstructionsView_darkMode.1.png b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testInstructionsView_darkMode.1.png index 7fde0699..3bb92c52 100644 Binary files a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testInstructionsView_darkMode.1.png and b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testInstructionsView_darkMode.1.png differ diff --git a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testSingularInstructionsViewWithPill.1.png b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testSingularInstructionsViewWithPill.1.png index 721fe4ca..9c05bb0b 100644 Binary files a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testSingularInstructionsViewWithPill.1.png and b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testSingularInstructionsViewWithPill.1.png differ diff --git a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testSingularInstructionsViewWithPill_darkMode.1.png b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testSingularInstructionsViewWithPill_darkMode.1.png index af4cd282..22218977 100644 Binary files a/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testSingularInstructionsViewWithPill_darkMode.1.png and b/apple/Tests/FerrostarSwiftUITests/Views/__Snapshots__/InstructionsViewTests/testSingularInstructionsViewWithPill_darkMode.1.png differ