Skip to main content

How to fix “Missing argument for parameter 'content' in call”

About 2 minSwiftSwiftUIArticle(s)bloghackingwithswift.comcrashcourseswiftswiftuixcodeappstore

How to fix “Missing argument for parameter 'content' in call” 관련

SwiftUI by Example

Back to Home

How to fix “Missing argument for parameter 'content' in call” | SwiftUI by Example

How to fix “Missing argument for parameter 'content' in call”

Updated for Xcode 15

This error usually comes up because you created the wrong kind of view by accident, and rather than using a simple view instead created a container that expected some content inside it.

Try looking for code like this:

VStack()

VStack expects to have something inside it, so at the very least that ought to read as follows:

VStack {
    EmptyView()
}
Similar solutions…
How to fix “Cannot convert value of type 'String' to expected argument type 'Text'” | SwiftUI by Example

How to fix “Cannot convert value of type 'String' to expected argument type 'Text'”
How to fix “Cannot convert value of type 'String' to expected argument type 'Binding'” | SwiftUI by Example

How to fix “Cannot convert value of type 'String' to expected argument type 'Binding'”
How to fix “Cannot convert value of type 'String' to expected argument type 'Text'” | SwiftUI by Example

How to fix “Cannot convert value of type 'String' to expected argument type 'Text'”
How to indent the content or scroll indicators in a ScrollView | SwiftUI by Example

How to indent the content or scroll indicators in a ScrollView
How to inset the safe area with custom content | SwiftUI by Example

How to inset the safe area with custom content

이찬희 (MarkiiimarK)
Never Stop Learning.