{"repo":"ciaranrobrien/SwiftUIMasonry","free":true,"listed":false,"github":"https://github.com/ciaranrobrien/SwiftUIMasonry","clone":"git clone https://github.com/ciaranrobrien/SwiftUIMasonry.git","description":"SwiftUI layouts that arrange their subviews in a Pinterest-like grid.","language":"Swift","stars":200,"topics":["swift","swiftui"],"license":"MIT","category":"mobile-apps","readme_excerpt":"SwiftUI Masonry SwiftUI layouts that arrange their subviews in a Pinterest-like grid. VMasonry A layout that arranges its subviews in a vertical masonry. Usage Parameters columns : The number of columns in the masonry. spacing : The distance between adjacent subviews, or nil if you want the masonry to choose a default distance for each pair of subviews. placementMode : The placement mode for subviews in this masonry. HMasonry A layout that arranges its subviews in a horizontal masonry. Usage Parameters rows : The number of rows in the masonry. spacing : The distance between adjacent subviews, or nil if you want the masonry to choose a default distance for each pair of subviews. placementMode : The placement mode for subviews in this masonry. Advanced Usage Layout VMasonry and HMasonry both conform to SwiftUI's Layout protocol. Use AnyLayout to switch between VMasonry , HMasonry or any other layout at runtime. Spacing & Placement The placement of subviews can be controlled by using the placementMode parameter. Provide a MasonryPlacementMode case: fill : Place each subview in the column/row with the most available space. This is the default behaviour. order : Place each subview in view tree order. The distance between adjacent subviews can be controlled by using the spacing or horizontalSpacing / verticalSpacing parameters. Columns & Rows The masonryColumnSpan / masonryRowSpan view modifiers can be used to control the number of columns/rows a subview will span in a parent mason","default_branch":null,"files":null,"tree":[],"storefront":"/r/ciaranrobrien","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ciaranrobrien/SwiftUIMasonry/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}