Skip to content

Instantly share code, notes, and snippets.

@laevandus

laevandus/LaneRowView.swift Secret

Created Mar 14, 2021
Embed
What would you like to do?
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