Created
December 7, 2022 07:10
-
-
Save yccheok/f5940f8c4175ec49e76433121ffdaa31 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 widgetEntryView : View { | |
var entry: Provider.Entry | |
// https://stackoverflow.com/questions/56487323/make-a-vstack-fill-the-width-of-the-screen-in-swiftui | |
var body: some View { | |
HStack { | |
VStack(alignment: .leading) { | |
Text("H H") | |
Text("Good bye world Good bye world Good byfd 3 4 5 6") | |
Spacer() | |
}.padding(.top, 8).background(.red) | |
Spacer(minLength: 0) | |
}.padding([.leading, .trailing], 4) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment