Skip to content

Instantly share code, notes, and snippets.

@yccheok
Created December 7, 2022 07:10
Show Gist options
  • Save yccheok/f5940f8c4175ec49e76433121ffdaa31 to your computer and use it in GitHub Desktop.
Save yccheok/f5940f8c4175ec49e76433121ffdaa31 to your computer and use it in GitHub Desktop.
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