yonat / MultiSelectSegmentedControl

UISegmentedControl remake that supports selecting multiple segments, vertical stacking, combining text and images.
MIT License
300 stars 59 forks source link

Autolayout Issues with SwiftUI Usage #43

Open Mozahler opened 3 years ago

Mozahler commented 3 years ago

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.

yonat commented 3 years ago

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

Mozahler commented 3 years ago

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.