Skip to content

Autolayout Issues with SwiftUI Usage #43

Open

Description

@Mozahler

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.

Activity

  1. yonat commented on Jan 17, 2021

    @yonat
    Owner

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

  2. Mozahler commented on Jan 19, 2021

    @Mozahler
    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

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions