|< 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 12.0
If you created a SwiftUI
Image view and it isn’t being resized, look for code like this:
Image("example-image") .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("example-image") .resizable() .frame(width: 300, height: 300)
SPONSORED Announcing NSSpain 2020: Remote Edition! An online, continuous conference for iOS developers. We’ll start on Thursday and finish on Friday, with talks, activities, and lots of fun for 36 hours, non-stop. Sound good? Join us!
Link copied to your pasteboard.