Incorrect leadingAnchor of (multiline) UILabel relative to UISwitch trailingAnchor
Originator: | awoerner | ||
Number: | rdar://50930708 | Date Originated: | May 19 2019, 11:56 PM |
Status: | Open | Resolved: | |
Product: | iOS + SDK | Product Version: | Xcode 10.2.1 |
Classification: | UIKit | Reproducible: | Always |
Area: UIKit Summary: Placing a (multiline) UILabel topAnchor behind a UISwitch trailingAnchor is not displayed correctly. Steps to Reproduce: * add UIView as container with a defined width to a VC * add UISwitch as subview of UIView * attach UISwitch leadingAnchor to UIView leadingAnchor * add UILabel as subview of UIView * attach UILabel leadingAnchor to UISwitch trailingAnchor * attach UILabel trailingAnchor to UIView trailingAnchor * set long text to UILabel (multiline) Expected Results: * leading of UILabel is attached to trailing of UISwitch Actual Results: * UILabel is partly overlapping UISwitch Version/Build: Xcode 10.2.1, iOS 12.2 Configuration: example Xcode project is provided at https://github.com/Aw79/apple-radar/tree/master/SwitchLabelIssue
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!