All Questions
16 questions
2
votes
5
answers
1k
views
Bug in SwiftUI? iOS 15. List refresh action is executed on an old instance of View -- how to work around?
I'm using the refreshable modifier on List
https://developer.apple.com/documentation/SwiftUI/View/refreshable(action:)
The List is contained in a view (TestChildView) that has a parameter. When the ...
9
votes
0
answers
2k
views
Programmatically show the pull to refresh activity indicator of a refreshable List
I wonder if there's a simple way to make visible the activity indicator used by the refresh control of a SwiftUI List? This would provide a consistent appearance of a refreshing UI, regardless of how ...
0
votes
2
answers
215
views
Strange behaviour with List View when using custom UITextField(by using UIViewRepresentable) as child views
I noticed that the Binding is not working as expected when we use UITextfield as subViews of a SwiftUI List with the help of UIViewRepresentable protocol.
i have implemented like a dynamic form using ...
0
votes
0
answers
643
views
SwiftUI list rown and buttons in same section in edit mode do not allow actions
SwiftUI list rown and buttons in same section in edit mode do not allow actions
Goal Would like to have clickable buttons in list and section, movable and deletable rows in list
code:
Section(header: ...
0
votes
1
answer
345
views
How to use function from other struct/view in SwiftUI?
Newbie SwiftUI Dev here.
I want to create a scheduling app in SwiftUI and I would like to create a button in navigation bar which change calendar's scope.
From .week to month and return.
struct ...
0
votes
1
answer
484
views
Passing data across views for unique objects in a forEach loop in swift
I have two views, ViewAssignment and TaskDetailView. My ViewAssignment page fetches data from an environment object, and creates a list using the data.
Upon each item of the list being clicked on, the ...
2
votes
3
answers
784
views
AutoComplete search in swiftui not working
I have a TextField as search box.I want to make it autosearch i.e whenever i will enter a letter in the TextField, i should get the result without press a enter.Here is my code:
TextField("Search&...
0
votes
2
answers
4k
views
Swiftui , Buttons grid view
I have checked several questions here about the grid view but my question is a bit different , i want to create a grid view for buttons so each button when pressed navigate to different view,
So it ...
1
vote
1
answer
584
views
SwiftUI List content gets reset with selection
Here is my issue: MainView displays ChildView and gives it an EnvironmentObject containing a set of selected items.
ChildView displays a list of selectable items(2 items in the example), and load the ...
1
vote
1
answer
526
views
Get View Size inside Grouped List in SwiftUI
I'm currently using a List with a GroupedListStyle(), and with a .regular horizontalSizeClass (e.g an iPad in landscape mode), this style of List automatically creates some padding to each section, ...
0
votes
1
answer
485
views
Padding List to avoid keyboard overlapping
Before you mark this like duplicate please read the following
I'm trying to make an iPhone and iPad app, and i have this common issue with the keyboard overlapping the text input. i tried all most ...
1
vote
0
answers
113
views
Want to convert this code into Pure SwiftUI code. no autolayout, no UIViewRepresentable, no UIHostingController
Code is working want to convert into Pure SwiftUI code. without UIViewRepresentable, UIHostingController please let me know how can I achieve. Thanks *
struct PathAnimatingView: UIViewRepresentable ...
0
votes
2
answers
193
views
Long RTL Text gets cut-off/overflown on right in SwiftUI
I have a bit long RTL (Hebrew) texts that I want to display in full (on multiple lines, without wrapping), and it keep gets overflown/cut-off on right, no matter how I tried to fix it.
This is ...
0
votes
2
answers
1k
views
Update a row in a list (SwiftUI)
I'm an early bird in programming so I know this question can be ridiculous from the point of view of an expert but I'm stuck in this situation from several days.
I would like to update a row by using ...
1
vote
1
answer
829
views
How we get the data and show like viewdidload using swiftUI
i'm trying to work with swiftUI but i'm having an issue. i want to fetch the data from firebase and show that data to the list. i used mutating function to modify the variable. now when i called that ...