Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autolayout Issues with SwiftUI Usage #43

Open
Mozahler opened this issue Jan 6, 2021 · 2 comments
Open

Autolayout Issues with SwiftUI Usage #43

Mozahler opened this issue Jan 6, 2021 · 2 comments
Assignees
Labels

Comments

@Mozahler
Copy link

Mozahler commented Jan 6, 2021

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
Copy link
Owner

yonat commented Jan 17, 2021

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

@Mozahler
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants