uias / Tabman

™️ A powerful paging view controller with interactive indicator bars
https://uias.github.io/Tabman
MIT License
2.86k stars 237 forks source link

Compiler complains about constraints when bar is not visible #249

Closed otymartin closed 5 years ago

otymartin commented 6 years ago
2018-02-08 23:37:39.171851-0500 Tabman Style[303:26335] [LayoutConstraints] View has an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.

*UIVisualEffectView:0x125e848a0- AMBIGUOUS LAYOUT for UIVisualEffectView:0x125e848a0.Height{id: 35}

Legend:
    * - is laid out with auto layout
    + - is laid out manually, but is represented in the layout engine because translatesAutoresizingMaskIntoConstraints = YES
    • - layout engine host
2018-02-08 23:37:39.182367-0500 Tabman Style[303:26335] [LayoutConstraints] View has an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.

*UIView:0x125e60cb0- AMBIGUOUS LAYOUT for UIView:0x125e60cb0.Height{id: 36}

Legend:
    * - is laid out with auto layout
    + - is laid out manually, but is represented in the layout engine because translatesAutoresizingMaskIntoConstraints = YES
    • - layout engine host
2018-02-08 23:37:39.194094-0500 Tabman Style[303:26335] [LayoutConstraints] View has an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.

*_TtCC6Tabman9TabmanBar14BackgroundView:0x125e7cd30- AMBIGUOUS LAYOUT for _TtCC6Tabman9TabmanBar14BackgroundView:0x125e7cd30.Height{id: 45}

Legend:
    * - is laid out with auto layout
    + - is laid out manually, but is represented in the layout engine because translatesAutoresizingMaskIntoConstraints = YES
    • - layout engine host
2018-02-08 23:37:39.204282-0500 Tabman Style[303:26335] [LayoutConstraints] View has an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.

*Tabman.SeparatorView:0x125e8c9a0- AMBIGUOUS LAYOUT for Tabman.SeparatorView:0x125e8c9a0.minY{id: 57}

Legend:
    * - is laid out with auto layout
    + - is laid out manually, but is represented in the layout engine because translatesAutoresizingMaskIntoConstraints = YES
    • - layout engine host
2018-02-08 23:37:39.210861-0500 Tabman Style[303:26335] [LayoutConstraints] View has an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.

*UIView:0x125e8c730- AMBIGUOUS LAYOUT for UIView:0x125e8c730.Height{id: 76}

Legend:
    * - is laid out with auto layout
    + - is laid out manually, but is represented in the layout engine because translatesAutoresizingMaskIntoConstraints = YES
    • - layout engine host
2018-02-08 23:37:39.233502-0500 Tabman Style[303:26335] [LayoutConstraints] View has an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.

*Tabman.TabmanScrollingButtonBar:0x125db1590- AMBIGUOUS LAYOUT for Tabman.TabmanScrollingButtonBar:0x125db1590.Height{id: 53}

Legend:
    * - is laid out with auto layout
    + - is laid out manually, but is represented in the layout engine because translatesAutoresizingMaskIntoConstraints = YES
    • - layout engine host
2018-02-08 23:37:39.432404-0500 Tabman Style[303:26335] [LayoutConstraints] View has an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.

*Tabman_Style.TabmanButton:0x125ea2180'Four'- AMBIGUOUS LAYOUT for Tabman_Style.TabmanButton:0x125ea2180'Four'.minY{id: 143}

Legend:
    * - is laid out with auto layout
    + - is laid out manually, but is represented in the layout engine because translatesAutoresizingMaskIntoConstraints = YES
    • - layout engine host
2018-02-08 23:37:39.509827-0500 Tabman Style[303:26335] [LayoutConstraints] Window has a view with an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.

*Tabman.TabmanScrollingButtonBar:0x125db1590- AMBIGUOUS LAYOUT for Tabman.TabmanScrollingButtonBar:0x125db1590.Height{id: 53}

Legend:
    * - is laid out with auto layout
    + - is laid out manually, but is represented in the layout engine because translatesAutoresizingMaskIntoConstraints = YES
    • - layout engine host
(lldb) 
msaps commented 6 years ago

@otymartin oh no, that doesn't look good! Will check this out!

msaps commented 6 years ago

@otymartin can't seem to reproduce this. Do you have an example project or a bar config that causes this?

otymartin commented 6 years ago

@msaps It comes when you debug the UI Hierachy So if you run my project then debug the UI heirachy in xcode you should see it.

msaps commented 6 years ago

@otymartin figured it out - the errors occur when no bar items have been set and the bar is therefore not visible. Will get it fixed 👍

msaps commented 5 years ago

@otymartin should be fixed in Tabman 2 - sorry it took so long!

otymartin commented 5 years ago

Thanks @msaps