MultiSelectSegmentedControl icon indicating copy to clipboard operation
MultiSelectSegmentedControl copied to clipboard

Autolayout Issues with SwiftUI Usage

Open Mozahler opened this issue 4 years ago • 2 comments

When using SPM and a barebones project I get auto layout warnings.
When I set uiView.translatesAutoresizingMaskIntoConstraints to false in MultiSegmentPicker.init() the project runs fine without warnings or errors. But if I debug the ViewHierarchy there is a warning due to ambiguous contraints. I have opened a question on StackOverflow regarding this issue in which I documented the process and provided screen shots.

StackOverflow Issue

If I get any useful response from anyone there, I will post it here.

Mozahler avatar Jan 06 '21 19:01 Mozahler

Thanks for submitting such a clear issue to check. I'm afraid I'm not able to solve the issue either.

yonat avatar Jan 17 '21 07:01 yonat

Sure! The transitions between core UIKit and SwiftUI can be mysterious (under-documented). I wouldn't be surprised if everything worked correctly after some future iOS release/update.

Mozahler avatar Jan 19 '21 16:01 Mozahler