EasyPeasy v1.2 Release Notes

    • Implemented ContextualConditions, a variant of the Condition closures where a Context struct is passed as parameter to the closure providing some extra information (size class and device) based on the UITraitCollection of the UIView the Attributes are going to be applied to. Examples:
    view <- [
        Size(250),
        Center(0)
    ].when { $0.isHorizontalRegular }
    
    view <- [
      Top(0),
      Left(0),
      Right(0),
      Height(250)
    ].when { $0.isPad }