Post

Replies

Boosts

Views

Activity

Reply to Missing argument for parameter #1 in call, Insert '<#LocalizedStringKey#,>'
The NavigationLink needs also a title or label as an argument. Also, you don't need to put a navigation link in a button because it's already a button. This code would be correct:                 NavigationLink("Back") {                     ContentView()                 } Or this:                 NavigationLink {                     ContentView()                 } label: {                     Text("Back")                 } I hope it helps
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to Xcode help
Hey. Do you use SwiftUI or UIkit?
Replies
Boosts
Views
Activity
Sep ’22
Reply to Missing argument for parameter #1 in call, Insert '<#LocalizedStringKey#,>'
The NavigationLink needs also a title or label as an argument. Also, you don't need to put a navigation link in a button because it's already a button. This code would be correct:                 NavigationLink("Back") {                     ContentView()                 } Or this:                 NavigationLink {                     ContentView()                 } label: {                     Text("Back")                 } I hope it helps
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Swift: UIAlertController in SwiftUI sheet bug
@Clause31 Ok thanks I'll try it 👍
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22