Skip to content

Releases: sionyx/ChLayout

Swift Package Manager Support

20 Jun 22:19
Compare
Choose a tag to compare

Swift Package Manager Support

UICollectionView: fixed constructor

16 Nov 08:33
Compare
Choose a tag to compare

UICollectionView: fixed constructor

Inline property setter, inline block calls, new properties

06 May 13:29
Compare
Choose a tag to compare

New inline methods:

  • Inline property setters: .ch.set
  • Inline method calls: .ch.exec, .ch.perform
  • Inline view helpers: .addSubview .insertSubview

New properties:

  • UIView
    • hidden
    • alpha
    • contentHuggingPriority
    • horizontalContentHuggingPriority
    • verticalContentHuggingPriority
  • UILabel
    • minimumScaleFactor
  • UIButton
    • titleFont
    • contentEdgeInsets
    • titleEdgeInsets
    • imageEdgeInsets
  • UIScrollView
    • contentInsetAdjustmentBehavior
  • UITableView
    • allowsSelection
    • separatorStyle
    • separatorColor
  • UIActivityIndicatorView
    • color
    • style
  • UIRefreshControl
    • tintColor
    • attributedTitle

New layouts, new properties

18 Nov 09:59
Compare
Choose a tag to compare

Static layout creation

Allows you to use shorten syntax for layouts:

    view.fillLayout {
        .verticalSplitLayout {
        }
    }

New layouts:

  • UIView.positionLayout
  • UIView.floodLayout
  • UIView.fillLayout with maximum width

New properties

  • UITextField
  • UIScrollView
  • UICollectionView
  • UIActivityIndicatorView

New defaults

23 Sep 17:09
Compare
Choose a tag to compare

New defaults:

  • zero margin is set to default;
  • translatesAutoresizingMaskIntoConstraints is false by default.

New property setters:

  • add imageNamed to UIButton.

v1.1

29 Jul 19:28
Compare
Choose a tag to compare
  • Better syntax
  • 6 layouts:
    • FillLayout
    • SafeAreaLayout
    • VerticalSplitLayout
    • HorizontalSplitLayout
    • VerticalStackLayout
    • ScrollableVerticalStackLayout (UIScrollView)
  • 3 most common views supported:
    • UILabel
    • UIImageView
    • UIButton

First Release

22 Jul 22:48
Compare
Choose a tag to compare
  • Basic features
  • 5 layouts:
    • FillLayout
    • SafeAreaLayout
    • VerticalSplitLayout
    • VerticalStackLayout
    • ScrollableVerticalStackLayout (UIScrollView)