FluidGroup / MondrianLayout

🏗 A way to build AutoLayout rapidly than using InterfaceBuilder(XIB, Storyboard) in iOS.
https://medium.com/geekculture/describing-autolayout-with-imaginable-how-it-lays-out-programmatically-mondrianlayout-71efe82f3149
MIT License
168 stars 11 forks source link

Creates a layout-guide for RelativeBlock in ZStackBlock #56

Closed muukii closed 3 years ago

muukii commented 3 years ago

previously, the following doesn't work correctly.

ZStackBlock {
    UIView.mock(
      backgroundColor: .layeringColor,
      preferredSize: .smallSquare
    )
    .viewBlock
    .padding(.horizontal, 20)
    .alignSelf(.attach([.horizontal, .bottom]))
  }