This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4001741-swiftui/lessons/8
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4001741-swiftui/lessons/8
I used the .frame(maxWidth: 7000, maxHeight: 7000) modifier on the Zstack , would that give me problems? or is it the same as the Spacer() modifier you used? i tried it on different devices and they all seemed to look fine , also I used
.resizable()
.scaledToFit()
.blendMode(.hardLight)
on the cat image and it looks the same
Yeah it will scale it, but you are hardcoding the value in so its not ideal. Spacer will adapt to fit the environment鈥檚 screen size I believe