Skip to content

It would be nice to also parse po view.constraints #24

@romdevios

Description

@romdevios

It has a similar output but a different style. I think it's not that hard to add this parsing option.

 - 0 : <NSLayoutConstraint:0x6000035b77a0 UILayoutGuide:0x600002fe0e00''.centerY == UIFoundation.TitleSubtitleView:0x7f909a93c110.centerY   (active)>
  - 1 : <NSLayoutConstraint:0x6000035b7750 H:|-(0)-[UILayoutGuide:0x600002fe0e00'']   (active, names: '|':UIFoundation.TitleSubtitleView:0x7f909a93c110 )>
  - 2 : <NSLayoutConstraint:0x6000035b77f0 UILayoutGuide:0x600002fe0e00''.trailing == UIFoundation.TitleSubtitleView:0x7f909a93c110.trailing   (active)>
  - 3 : <NSLayoutConstraint:0x6000035b7840 V:|-(>=0)-[UILayoutGuide:0x600002fe0e00'']   (active, names: '|':UIFoundation.TitleSubtitleView:0x7f909a93c110 )>
  - 4 : <NSLayoutConstraint:0x6000035b7890 V:|-(0@250)-[UILayoutGuide:0x600002fe0e00''] priority:250   (active, names: '|':UIFoundation.TitleSubtitleView:0x7f909a93c110 )>
  - 5 : <NSLayoutConstraint:0x6000035b78e0 UILayoutGuide:0x600002fe0ee0''.top == UILayoutGuide:0x600002fe0e00''.top + 12   (active)>

I created a regex that helps but not convenient - https://regex101.com/r/NkATVe/1

Also it is a problem with 4-th expression where used priorities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions