PropertyInitializing

public protocol PropertyInitializing

PropertyInitializing allows you to initialize and set preperties with a property function

  • Needed for the PropertyInitializing protocol extension

    Declaration

    Swift

    init()
  • init(properties:) Extension method

    let label = UILabel { $0.textColor = .red }

    Declaration

    Swift

    public init(properties: ((Self) -> Void))