I’ve the next code for a Lock Display screen widget. I see a spot on the left and proper aspect of the widget, as such my content material doesn’t match properly. How would I modify it to make sure the complete area of the oblong widget is used on any iPhone?
struct RectangularWidgetView: View {
var entry: WorldClockProvider.Entry
var physique: some View {
VStack(alignment: .main) {
ForEach(entry.cities.prefix(3), id: .title) { metropolis in
HStack {
Textual content(getCityAbbreviation(for: metropolis.title))
.font(.system(dimension:11))
.fontWeight(.daring)
Spacer()
Textual content(getTime(for: metropolis.timeZone, date: entry.date))
.font(.system(dimension: 09))
.fontWeight(.daring)
.body(maxWidth: .infinity, alignment: .trailing) // Set fastened width and right-align the textual content
}
}
Spacer()
}
.padding()
.widgetAccentable()
}
Tried altering the spacer however that didn’t work