You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using multiple SwitchRow elements, subtitles can be hidden at random.
In the following example the "Setting14" row is missing the subtitle:
This has been tested in the following environments:
Xcode 11.3.1 (11C504) on macOS 10.14.6 (18G3020)
Xcode 11.5 (11E608c) on macOS 11.0 Beta (20A4299v)
This looks like it may be an Apple bug as the behaviour is somewhat erratic.
The text was updated successfully, but these errors were encountered:
dnicolson
changed the title
Missing subtitles when multiple SwitchRow elements are used
Missing subtitles with multiple SwitchRow elements
Jun 25, 2020
I think it's caused by the same cell reuse identifier that's set to different cell types.
In the sample code you provide, the first row's cell style is .default while the other rows are .subtitle. But their cell reuse identifiers are all the same T.cellIdentifier. When the first cell is reused for another row after scrolling, its detail text label is not properly displayed.
I added a fix at 2976336. Please let me know if this solves the problem. Thanks!
When using multiple SwitchRow elements, subtitles can be hidden at random.
In the following example the "Setting14" row is missing the subtitle:
This has been tested in the following environments:
Xcode 11.3.1 (11C504) on macOS 10.14.6 (18G3020)
Xcode 11.5 (11E608c) on macOS 11.0 Beta (20A4299v)
This looks like it may be an Apple bug as the behaviour is somewhat erratic.
The text was updated successfully, but these errors were encountered: