Skip to content

Commit

Permalink
fixup! [iOS] Pull down cue sheet shows remaining steps
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Sep 28, 2024
1 parent cd60f9c commit a93d9e3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apple/Sources/FerrostarSwiftUI/Views/InstructionsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand All @@ -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(
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a93d9e3

Please sign in to comment.