4 questions
3
votes
1
answer
88
views
Overlay text not centered while moving along with the slider thumb | alignment issue in SwiftUI
I'm using overlayPreferenceValue and anchorPreference to move my TextView along with the slider's thumb without affecting the layout. However, the overlaid TextView isn’t horizontally centered with ...
0
votes
1
answer
89
views
PreferenceKey forcing updates with GeometryView, Canvas
I have a card View which needs to be responsive in size to changes in contents (e.g. text, DynamicType).
At a lower level, the card view contains a Canvas view. The Canvas view occupies the full area ...
0
votes
0
answers
65
views
Scrollable Table With Fixed 1st Row and 1st Column (SwiftUI Project)
I am trying to display a table that can be scrolled horizontally and vertically. The first row contains a columnsHeader, which is fixed, so it should not be scrolled vertically, but only horizontally. ...
2
votes
1
answer
246
views
Why does onPreferenceChange return the wrong size in certain cases?
I am using a GeometryReader to find the size of a view and want to report this to a preference key. The geometry reader always reads the correct value, but onPreferenceChanged often gets 0.0 reported ...