Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created March 14, 2021 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/d9f822d5bb92b87b2dc4fa44944e6921 to your computer and use it in GitHub Desktop.
Save laevandus/d9f822d5bb92b87b2dc4fa44944e6921 to your computer and use it in GitHub Desktop.
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