Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
struct AquaFinderLeftListView: View {
let leftListItems = ["🌐 Network", "🏠 Home",
"📄 Documents", "🎼 Music",
"🎬 Movies", "🖼 Pictures", "🎮 Games"]
var body: some View {
ScrollView(.vertical) {
ForEach(0..<leftListItems.count, id: \.self) {
index in
Text(leftListItems[index])
.padding()
.frame(maxWidth: .infinity, alignment: .leading)
if index == 1 {
Rectangle()
.padding(.horizontal, 10)
.frame(height: 3)
.foregroundColor(.aquaGray)
}
}
Spacer()
}
.font(.callout)
.foregroundColor(.black)
.frame(width: 150)
.background(Color.white)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment