-
-
Save laevandus/d9f822d5bb92b87b2dc4fa44944e6921 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct LaneRowView: View { | |
let lane: Lane | |
var body: some View { | |
VStack(spacing: 8) { | |
Text(lane.name) | |
.font(.headline) | |
if !lane.documentation.isEmpty { | |
Text(lane.documentation) | |
.font(.subheadline) | |
.multilineTextAlignment(.center) | |
} | |
} | |
.frame(maxWidth: .greatestFiniteMagnitude) | |
.foregroundColor(.white) | |
.padding(12) | |
.background(Color.accentColor) | |
.cornerRadius(12) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment