This tag relates to SwiftUI defects found in iOS 14.2
Questions tagged [swiftui-14.2-defect]
5 questions
4
votes
1 answer
NavigationLink tag and selection not working as expected
I am probably missing something but I can't make the NavigationLink work inside a List.
I'm using NavigationLink(destination, tag, selection) And i would like to pop to the root view with a tap on a button as you can see in this sample…

DanielZanchi
- 2,708
- 1
- 25
- 37
4
votes
2 answers
UIViewRepresentable not updating binding to ObservedObject property?
This view is a UIKit slider adapted to my SwiftUI project because in SwiftUI Slider cannot change its track color, which is probably a bug since you should be able to change it with .accentColor.
Anyway, this slider changes its track color according…

TigerGold
- 163
- 1
- 7
3
votes
1 answer
SwiftUI ButtonStyle animation causes UI not to update in App Switcher snapshot when system appearance changes
In my app I have a button that I want to animate to scale down when it's touched. To do this, I created a custom ButtonStyle with an explicit animation. This works as intended but it introduced a problem when switching between dark/light mode system…

Jordan H
- 52,571
- 37
- 201
- 351
2
votes
0 answers
Why the selected rows don't stay selected after scrolling in SwiftUI?
Why the selected rows become unselected if the list is scrolled (See the pictures)? Xcode 12.2. iOS 14.2.
I also get a console message:
[Assert] Attempted to call -cellForRowAtIndexPath: on the table view
while it was in the process of updating its…

Sphingobium
- 31
- 3
1
vote
0 answers
SwifUI 2 : DatePicker display different format of selected Date
I build a iOS 14 DatePicker. When I selected a date from the picker, it some date in format 27 Dec 2020 and some date show in format 26/12/2020. May I know what is the problem and how can I make it consistent?
struct ContentView : View {
@State…

Oxford212
- 89
- 1
- 8