Posts

Post not yet marked as solved
1 Replies
0 Views
Works for me I have a simplified example tried on macOS Ventura which seems to working ok. Please check Check your TableRow code, try to replace with TableRow with Text and see if it works My Code struct Message: Identifiable { var text: String var id: String { text } } struct ContentView: View { let messages = [Message(text: "aaa"), Message(text: "bbb"), Message(text: "ccc")] var body: some View { VStack { List { Section { ForEach(messages) { message in Text(message.text) .swipeActions { Button(role: .destructive) { // data.delete(datum) } label: { Label("Delete", systemImage: "trash") } } } } } } } }
Post not yet marked as solved
2 Replies
0 Views
Can you please watch https://developer.apple.com/wwdc22/10054, it goes into great detail step by step about the new navigation APIs
Post not yet marked as solved
1 Replies
0 Views
Replied In Dynamic height
Aim To find the size (height) of a view Approach Use the GeometryReader on the .background of the view you want to calculate the size, that way GeometryReader wouldn't tamper the view's dimensions Send the size (height) determined to the parent view using @Binding or Preferences Binding A reference to a value type Preferences You could read a bit about Preferences, it is used to send value to the parent views (opposite of what environment value does) Create a PreferenceKey Set the preference using .preference modifier Detect the value change using onPreferenceChange
Post not yet marked as solved
1 Replies
0 Views
Your code works fine on the following configuration: macOS 12.4 (21F79) Xcode Version 13.4 (13F17a) Checkbox selection is restored on re-run Give it like a few seconds for it to be persisted or tap on a different app for it to save the state.
Post not yet marked as solved
10 Replies
0 Views
@eskimo Do we have to file a bug for playgrounds? I am still on macOS BigSur, so can't run it on a command line project as it would require macOS 12 (Beta). I was preparing some tutorials to demonstrate async let so thought playgrounds was ideal as opposed to an iOS project