Skip to main content

All Questions

0 votes
4 answers
1k views

multiline textview inside list / ForEach SWIFTUI with dynamic cell height

Need to display html formatted text inside the tableview in SwiftUI but Text("Hi") is not allowing us to use Attributed text inside it. So trying following code to display multiline HTML formatted ...
Tenant66's user avatar
  • 131
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 ...
Mohammad Mugish's user avatar
1 vote
1 answer
189 views

Double Tap is required to navigate from details view to list View

From the List view, the message details view is shown. NavigationView() { List(msgData) { msg in NavigationLink(destination: MessageDetailsView(msgDetails :msg )) { ...
cto platform's user avatar
3 votes
2 answers
5k views

SwiftUI Make a list that shows only a certain amount of rows

I have recently started messing around with SwiftUI and so far it is great. I have however ecnountered a problem that I can't seem to find an answer to. I am trying to create this design: As you can ...
Paweł Zgoda-Ferchmin's user avatar
0 votes
1 answer
2k views

Nested ScrollView SwiftUI

I am trying to put grid(developed with scrollview) inside scrollview but I can't set grid height with content height. I can't handle this problem with .fixedsize() GeometryReader{ reader in ...
Altern's user avatar
  • 31
1 vote
1 answer
417 views

How do I click on the items inside the list section with scrollview to navigate to detail page SwiftUI

There is a list in which there are sections and each section contains items, put inside a horizontal scrollview, when trying to navigate to detail page using NavigationLink all the items get selected, ...
Piyush's user avatar
  • 11
16 votes
1 answer
17k views

SwiftUI List Background color [duplicate]

I am trying on setting a view background color to black with the following code struct RuleList: View {[![enter image description here][1]][1] private var presenter: ConfigurationPresenter? @...
trusk's user avatar
  • 1,701
8 votes
5 answers
6k views

How can I change the colour of separator in list of SwiftUI?

I created a list in SwiftUI. I want to change the color or remove the separator as, In UIKit, we can easily change the color of separator in TableView. Below is the code and UI(image) of the list in ...
Mohammad Mugish's user avatar
8 votes
4 answers
2k views

Swiftui List Row Cells set padding after View appears

I have a standard List only with one Text and on the right side the arrow for navigation. But after the list is loading and appeared at Screen, the list addapt the cells I think they add padding at ...
bob's user avatar
  • 111
1 vote
0 answers
435 views

Encountering unexpected behavior when List rotates with SwiftUI

I have setup a relatively basic List embedded in a NavigationView, but when I perform a rotation, things do not work as expected. The following screenshots show the sequence of events. When the ...
CodeBender's user avatar
  • 36.7k
26 votes
4 answers
22k views

Rounded corners in swiftui list sections

Here is a screen shot of iOS 13 Health app - User profile. I recently started with swiftui and wondering how to develop a screen like below. I tried list styles plain and grouped. But I couldn't get ...
uiroshan's user avatar
  • 5,181
0 votes
2 answers
224 views

ScrollView acting weired (Xcode 11 GM seed - SwiftUI)

I was trying to make a custom list. And its acting weired if we add Encapsulated VStack in scrollView and try to add new row from that VStack. But we have to encapsulate because in Xcode will give "...
Lalli's user avatar
  • 466
20 votes
3 answers
14k views

SwiftUI List disable cell press

I am using xCode 11 beta 7 with SwiftUI. I have a simple list which each list element has several buttons. Currently when the user presses the cell(not the buttons) it is highlighting the back of the ...
Reedy's user avatar
  • 2,106
5 votes
0 answers
411 views

What is the equivalent of isScrollEnabled for a List in SwiftUI?

With anything in UIKit that inherits from UIScrollView, there is a property isScrollEnabled that allows you to disable scrolling for the view. Looking through the documentation for ScrollView in ...
CodeBender's user avatar
  • 36.7k