Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created January 26, 2021 20:12
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 sturdysturge/4075e53eea398b1101d9b82de57fb3c1 to your computer and use it in GitHub Desktop.
Save sturdysturge/4075e53eea398b1101d9b82de57fb3c1 to your computer and use it in GitHub Desktop.
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