|< How to fix “Missing argument for parameter 'content' in call”||How to fix a Form Picker or a NavigationLink that isn’t tappable >|
Updated for Xcode 13.0
If you created a SwiftUI
Image and it isn’t being resized, look for code like this:
Image("cornwall") .frame(width: 300, height: 300)
That explicitly sets the image’s frame, but doesn’t mark the image as being resizable. The correct thing to do is add the
resizable() modifier before the frame, like this:
Image("cornwall") .resizable() .frame(width: 300, height: 300)
SPONSORED Join a FREE crash course for iOS devs who want to become complete senior developers — from October 18th to 24th. Learn how to apply iOS app architecture patterns through a series of lectures and practical coding sessions.
Link copied to your pasteboard.