-
-
Save sturdysturge/df56dbd56ebe62ce208a622c9fe6c7c8 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 FontWeightPicker: View { | |
@Binding var fontWeight: WeightType | |
var body: some View { | |
Group { | |
Text("Font weight") | |
.frame(maxWidth: .infinity, alignment: .leading) | |
Picker(selection: $fontWeight, label: EmptyView()) { | |
ForEach(WeightType.allCases, id: \.self) { fontWeight in | |
Text(fontWeight.rawValue) | |
} | |
} | |
.frame(height: 150) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment