Skip to content

Releases: faberNovel/CompositionalLayoutDSL

v0.2.0

29 Sep 18:16
Compare
Choose a tag to compare

Updated

  • Documentation will now use DocC

Removed

  • Drop support for Swift 5.3, we now use @resultBuilder instead of @_functionBuilder
  • Drop support for Carthage

v0.1.0

28 Apr 09:43
ae2b5ea
Compare
Choose a tag to compare

Created

Structures

  • CompositionalLayout
  • Configuration
  • Section
  • ListSection
  • RawSection
  • HGroup
  • VGroup
  • CustomGroup
  • Item
  • DecorationItem
  • SupplementaryItem
  • BoundarySupplementaryItem

Enumerations

  • SupplementaryItem.AnchorOffset
  • ListResultBuilder

Protocols

  • LayoutConfiguration
  • LayoutSection
  • LayoutGroup
  • LayoutItem
  • LayoutDecorationItem
  • LayoutSupplementaryItem
  • LayoutBoundarySupplementaryItem
  • ResizableItem

Type aliases

  • LayoutItemBuilder
  • LayoutBoundarySupplementaryItemBuilder
  • LayoutSupplementaryItemBuilder
  • LayoutDecorationItemBuilder

Functions

  • LayoutSectionBuilder(layoutSection:) -> NSCollectionLayoutSection
  • LayoutBuilder(configuration:layoutSection:) -> NSCollectionViewCompositionalLayout
  • LayoutBuilder(configuration:layoutSection:) -> UICollectionViewCompositionalLayout
  • LayoutBuilder(compositionalLayout:) -> NSCollectionViewCompositionalLayout
  • LayoutBuilder(compositionalLayout:) -> UICollectionViewCompositionalLayout

External extensions

  • NSCollectionView.setCollectionViewLayout(_ layout: CompositionalLayout)
  • UICollectionView.setCollectionViewLayout(_ layout: CompositionalLayout)