Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
177 views

I want to create a sortable Table where each table cell is a TextField so that the cell contents can be edited. Let's start with this unsortable Table that has only one column. In the real code, this ...
Sweeper's user avatar
  • 292k
1 vote
2 answers
106 views

NB: This question is about macOS, not iOS. I have a multi-column SwiftUI Table. (Let's use Apple's official example, below.) In the ContextMenu modifier, I need to know which column was right-clicked ...
Bryan's user avatar
  • 6,035
0 votes
1 answer
366 views

NB: This question concerns only macOS, not iOS I have a large, 30-column Table that scrolls both vertically and horizontally on macOS. When a user changes the width of a column in SwiftUI's Table by ...
Bryan's user avatar
  • 6,035
0 votes
0 answers
29 views

I'm trying to implement a SwiftUI Table and users would be able to add/define items (rows) and properties (columns). I expect there to be large amounts of items. For persistence, I'm hoping to use ...
kiu's user avatar
  • 21
1 vote
1 answer
98 views

I have a table to display player stats on iPads (I have a makeshift grid view for iPhones). I really like the table, being sortable by different columns, and generally looking more elegant. I can also ...
Alejandro Andreotti's user avatar
2 votes
1 answer
674 views

I was hoping to make a paginated grid view in SwiftUI with continues dividers both horizontal and vertical but have been having trouble doing so. This is what I want: This is the best that I came up ...
Noah Wilder's user avatar
  • 1,594
0 votes
0 answers
38 views

I have implemented a tree view representing different types of objects. Details for these objects should be displayed in a tabbed table view. If I do select an object in the tree, the details of this ...
hjbflyer's user avatar
0 votes
0 answers
44 views

In my app, the sidebar contains data "filters" for the table. DetailView contains the table itself. When selecting items in the sidebar, there is a noticeable delay before the table is ...
Nikolai Nagornyi's user avatar
1 vote
1 answer
330 views

I am new to the Swift and the SwiftUI. Trying to understand how sorting works on SwiftUI Table view. The following code does what I intend to do, but I am not able to understand how does it actually ...
Spaghetti's user avatar
0 votes
0 answers
56 views

I'm trying to use the new Table view in SwiftUI for iOS 16 to display a list of people with columns for their given name, family name, and email address. According to Apple's documentation, Table ...
chairman's user avatar
1 vote
1 answer
274 views

Table(studentRecords, selection: $selectedStudentID) { TableColumn("First Name", value: \.firstName) TableColumn("Last Name", value: \.lastName) } ...
alexc0082's user avatar
0 votes
1 answer
64 views

I'm trying to set up selection in a swiftui table so that I can use the selection to navigate to a form view. If I add selection to the table, I get the 'No exact matches in call to initializer' error....
alexc0082's user avatar
0 votes
1 answer
121 views

I can see all the Items in the list that don’t have a parent, as expected, and I can display all those that have children. However, I encounter an error when attempting to compact anyone with children....
user26880517's user avatar
0 votes
1 answer
130 views

Sorting of items in a hierarchical table does not work! Model struct File: Decodable { /*File name (including relative path)*/ let name: String /*File size (bytes)*/ let size: Int64 ...
Nikolai Nagornyi's user avatar
2 votes
1 answer
796 views

I'm making a macOS app using SwiftUI. I have a Table view. I have selection enabled but I can't find any way to customize the selection color - it's always blue. My table looks something like this: ...
David Dworkin's user avatar
3 votes
2 answers
356 views

I am looking for a way to remove insets (and ideally row separators) in SwiftUI's Table. Lists have: .listRowInsets(.init(top: 0, leading: 0, bottom: 0, trailing: 0)) and .listRowSeparator(.hidden) ...
DudeOnRock's user avatar
  • 3,899
1 vote
0 answers
98 views

I try to build Table with Observation framework but Table doesn't track changes in data. However, the List keeps track. @Observable final class Item: Identifiable { var id: UUID var value: Int ...
Nikolai Nagornyi's user avatar
0 votes
3 answers
296 views

I want to display a table with a text and an image on each row. Clicking on the image should toggle the picture. The table is associated with an array of instances of a class, which has a boolean ...
Michael's user avatar
  • 51
0 votes
0 answers
207 views

I just recently started learning SwiftUI and found that my table had only 1 column and not the remaining columns from my JSON data. Can anyone please suggest how to display all the columns for a data ...
mk117's user avatar
  • 775
4 votes
1 answer
1k views

I have a mini macOS app, presenting some data persisted in SwiftData on a Table. I want to sort the data by clicking on Table's column headers so I have a KeyPathComparator on the table. But since the ...
Arda Oğul Üçpınar's user avatar
0 votes
2 answers
634 views

I'm looking for a way to display a SwiftUI Table or List at its "intrinsic size" without including empty rows or empty space below the rows, as it does in the following example, in which the ...
Anton's user avatar
  • 3,399
2 votes
1 answer
2k views

I am using SwiftUI's Table to generate a table for a macOS app. I would like to be able to hide columns based on AppStorage entries. TableColumnBuilder doesn't appear to support conditional statements:...
DudeOnRock's user avatar
  • 3,899