Post

Replies

Boosts

Views

Activity

Reply to List changing into a different mode in a different view
Your SheetView NavigationView is using the default style of .columns. You want .stack Add this modifier to the SheetView NavigationView: .navigationViewStyle(.stack) Like this: var body: some View { NavigationView { VStack { SheetListView() Spacer() HStack { Text("App version 0.1 (DEV)") .foregroundColor(.gray) } .toolbar { Button("Done") { dismiss() } .font(.headline) .padding() } } .background(Color(.systemGroupedBackground)) } .navigationViewStyle(.stack) /// **.stack** } Extra Hint: when pasting code to the forum, use "Paste and Match Style", to avoid the extra blank lines.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Type of expression is ambiguous without more context
Your code is not valid, as your brackets { } do not match up correctly. Your struct "CalculatePaceView" is not a valid View, as it contains no "body". (The "body" in your code sample is entirely outside the "CalculatePaceView" struct.) I suggest you try separating out the View that you are using for the NavigationLink, and make it into a separate struct. This should clarify what you are trying to achieve, and may make the error more obvious.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Type of expression is ambiguous without more context
Type of expression is ambiguous without more context Unfortunately, your question is also ambiguous without more context. Please can you post the whole code, not just a (cut-off) snippet? The whole of the View body would be a good start... ...then indicate which expression is causing the error. You should also consider answering (or closing) your other recent posts, where people have tried to help you: https://developer.apple.com/forums/thread/692237 https://developer.apple.com/forums/thread/688935 https://developer.apple.com/forums/thread/691390 If you are struggling to use the forum correctly, then ask for help with that... people will be happy to contribute.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21