Post

Replies

Boosts

Views

Activity

Widget background Image not loading IOS 17 Xcode
My widget will not load on my simulator or devices with IO7 17.2 I am getting preview error "Widget needs to adopt containerBackground". The background image is called "bg" and code is below, how do I fix this issue? var body: some View { ZStack{ Image("bg") .resizable() .aspectRatio(contentMode: .fill) VStack{ Text(entry.namazName) .foregroundColor(Color.white) .font(.custom("HelveticaNeue-Medium", size: 24)) Spacer() .frame(height: 8) Text("B: " + entry.startTime) .foregroundColor(Color.white) .font(.custom("HelveticaNeue-Medium", size: 22)) Text("J: " + entry.jamatTime) .foregroundColor(Color.white) .font(.custom("HelveticaNeue-Medium", size: 22)) } } }
3
0
905
Jan ’24