All Questions
10 questions
2
votes
0
answers
1k
views
How to create a SwiftUI List View with a large (all list) header view?
I would like to create a List view in SwiftUI with has a large, header which has no paddings and extends into the safe area.
For example like in this screenshot:
Solving this in UIKit would not be ...
2
votes
0
answers
810
views
How to correctly make 2-way binding with UITableViewRepresentable and SwiftUI
I'm creating my own custom SwiftUI List because I need to use some underlying methods of tableview. I would like to know how to correctly bind a TextField inside a UITableView Cell to my SwiftUI ...
1
vote
0
answers
105
views
How to mimic SwiftUI List's data-less initializers when wrapping UITableView
Apple offers the following SwiftUI List initializer:
List<SelectionValue: Hashable, Content: View>.init(selection: Binding<SelectionValue?>?, content: () -> Content)
I would like to ...
8
votes
0
answers
3k
views
How can i add custom rounded swipe actions in swiftui?
in my SwiftUI App, i want to design rounded swipe actions in ListView, as you can see in the following example (Weather App iOS 15)
I know that you can add custom actions like this:
List {
Text(&...
5
votes
1
answer
2k
views
SwiftUI List is extremely slow at showing actions (leading/trailing, contextMenu) when the dataset is big
I'm facing performance problems using a SwiftUI List with lots of data. I've created a demo app just to showcase the problem with 500_000 Strings and to show a trailing action for one of them, the CPU ...
2
votes
1
answer
408
views
How to replicate UITableViewCell imageView in SwiftUI
In a normal storyboard/UIKit application, you can set the imageView of a cell in the cellForRowAt function as follows:
cell.imageView?.image = // some UIImage
When an imageView is set, the tableView'...
0
votes
1
answer
357
views
List that scrolls to certain row when button pressed in SwiftUI app
In a SwiftUI app, I'm trying to create a list that automatically scrolls to the next row when a button is pressed.
Apparently, this functionality isn't currently possible with a SwiftUI List, but is ...
2
votes
1
answer
3k
views
How to create SwipeActionsConfigurationForRowAt in List view - SwiftUI (iOS 13)?
I want to create a list view in SwiftUI where I can show two buttons for different actions when user swipe left. I know there is an option for delete (.onDelete(perform: delete)) but I want to add ...
1
vote
1
answer
2k
views
Swift UI Overlay a list to a background color
I just want to set a Color as background color to my list. Can't find anything that work,
It looks like is not possible, I don't want to change every single color of my row.
Any tips how to do it? ...
5
votes
6
answers
5k
views
Access underlying UITableView from SwiftUI List
Using a List view, is there a way to access (and therefore modify) the underlying UITableView object without reimplementing the entire List as a UIViewRepresentable?
I've tried initializing a List ...