iOS

  • Options for specifying files that contain different types of JSON block definitions.

    Declaration

    Swift

    struct BlockJSONFile : OptionSet

    Objective-C

    enum BKYBlockJSONFile {}
  • Defines inset distances for views/layouts, that allows for both LTR and RTL layouts.

    Declaration

    Swift

    struct EdgeInsets

    Objective-C

    struct BKYEdgeInsets {}
  • The inset distance for the left edge. In LTR layouts, this value is equal to self.leading. In RTL layouts, this value is equal to self.trailing.

    Declaration

    Swift

    func BKYEdgeInsetsGetLeft(_ edgeInsets: EdgeInsets) -> CGFloat

    Objective-C

    CGFloat BKYEdgeInsetsGetLeft(BKYEdgeInsets edgeInsets)
  • The inset distance for the right edge. In LTR layouts, this value is equal to self.trailing. In RTL layouts, this value is equal to self.leading.

    Declaration

    Swift

    func BKYEdgeInsetsGetRight(_ edgeInsets: EdgeInsets) -> CGFloat

    Objective-C

    CGFloat BKYEdgeInsetsGetRight(BKYEdgeInsets edgeInsets)
  • Creates edge insets, with given values for each edge.

    Declaration

    Swift

    /*not inherited*/ init(top: CGFloat, leading: CGFloat, bottom: CGFloat, trailing: CGFloat)

    Objective-C

    BKYEdgeInsets BKYEdgeInsetsMake(CGFloat top, CGFloat leading, CGFloat bottom,
                                    CGFloat trailing)

    Parameters

    top

    Top edge inset

    leading

    Leading edge inset

    bottom

    Bottom edge inset

    trailing

    Trailing edge inset @returns: A BKYEdgeInsets.

  • Creates edge insets, with each inset value set to zero.

    Declaration

    Swift

    static let zero: EdgeInsets

    Objective-C

    extern const BKYEdgeInsets BKYEdgeInsetsZero
  • Struct for representing an EdgeInsets value (i.e. width/height) in both the Workspace coordinate system and UIView coordinate system.

    Declaration

    Swift

    struct LayoutConfigEdgeInsets

    Objective-C

    struct BKYLayoutConfigEdgeInsets {}
  • Creates a BKYLayoutConfigEdgeInsets, where workspaceEdgeInsets is initialized with given edge insets.

    Note

    viewEdgeInsets is automatically initialized to the correct value based on the generated workspaceEdgeInsets.

    Declaration

    Swift

    /*not inherited*/ init(top: CGFloat, leading: CGFloat, bottom: CGFloat, trailing: CGFloat)

    Objective-C

    BKYLayoutConfigEdgeInsets BKYLayoutConfigEdgeInsetsMake(CGFloat top,
                                                            CGFloat leading,
                                                            CGFloat bottom,
                                                            CGFloat trailing)

    Parameters

    top

    The top value to use for workspaceEdgeInsets.

    leading

    The leading value to use for workspaceEdgeInsets.

    bottom

    The bottom value to use for workspaceEdgeInsets.

    trailing

    The trailing value to use for workspaceEdgeInsets.

  • Creates a BKYLayoutConfigEdgeInsets, where both workspace and view edge inset values are set to zero.

    Declaration

    Swift

    static let zero: LayoutConfigEdgeInsets

    Objective-C

    extern const BKYLayoutConfigEdgeInsets BKYLayoutConfigEdgeInsetsZero
  • Struct for representing a Size value (i.e. width/height) in both the Workspace coordinate system and UIView coordinate system.

    Declaration

    Swift

    struct LayoutConfigSize

    Objective-C

    struct BKYLayoutConfigSize {}
  • Creates a BKYLayoutConfigSize, initialized with a given workspace width/height to generate workspaceSize.

    Note

    viewSize is automatically initialized to the correct value based on the generated workspaceSize.

    Declaration

    Swift

    /*not inherited*/ init(width workspaceWidth: CGFloat, height workspaceHeight: CGFloat)

    Objective-C

    BKYLayoutConfigSize BKYLayoutConfigSizeMake(CGFloat workspaceWidth,
                                                CGFloat workspaceHeight)

    Parameters

    workspaceWidth

    The width value to use for workspaceSize

    workspaceHeight

    The height value to use for workspaceSize

  • Struct for representing a unit value in both the Workspace coordinate system and UIView coordinate system.

    Declaration

    Swift

    struct LayoutConfigUnit

    Objective-C

    struct BKYLayoutConfigUnit {}
  • Creates a BKYLayoutConfigUnit, initialized with a given workspaceUnit.

    Note

    viewUnit is automatically initialized to the correct value based on the given workspaceUnit.

    Declaration

    Swift

    /*not inherited*/ init(_ workspaceUnit: CGFloat)

    Objective-C

    BKYLayoutConfigUnit BKYLayoutConfigUnitMake(CGFloat workspaceUnit)

    Parameters

    workspaceUnit

    The value to use for workspaceUnit.

  • Point in the Workspace coordinate system (which is separate from the UIView coordinate system).

    Declaration

    Objective-C

    struct BKYWorkspacePoint {}
  • Creates a point in the Workspace coordinate system, given (x, y) coordinates.

    Declaration

    Objective-C

    BKYWorkspacePoint BKYWorkspacePointMake(CGFloat x, CGFloat y)

    Parameters

    x

    X-coordinate in the Workspace coordinate system

    y

    Y-coordinate in the Workspace coordinate system @returns A BKYWorkspacePoint.

  • A point in the Workspace coordinate system, where x and y coordinates are set to zero.

    Declaration

    Swift

    let BKYWorkspacePointZero: BKYWorkspacePoint

    Objective-C

    extern const BKYWorkspacePoint BKYWorkspacePointZero
  • Size in the Workspace coordinate system (which is separate from the UIView coordinate system).

    Declaration

    Objective-C

    struct BKYWorkspaceSize {}
  • Creates a size in the Workspace coordinate system, given width and height values.

    Declaration

    Objective-C

    BKYWorkspaceSize BKYWorkspaceSizeMake(CGFloat width, CGFloat height)

    Parameters

    width

    Width value in the Workspace coordinate system

    height

    Height value in the Workspace coordinate system @returns A BKYWorkspaceSize.

  • A size in the Workspace coordinate system, where width and height values are set to zero.

    Declaration

    Swift

    let BKYWorkspaceSizeZero: BKYWorkspaceSize

    Objective-C

    extern const BKYWorkspaceSize BKYWorkspaceSizeZero