EasyPeasy v1.2 Release Notes
-
- Implemented
ContextualConditions
, a variant of theCondition
closures where aContext
struct is passed as parameter to the closure providing some extra information (size class and device) based on theUITraitCollection
of theUIView
theAttributes
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 }
- Implemented