-
-
Save sturdysturge/4075e53eea398b1101d9b82de57fb3c1 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 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