CariocaDataSource

public protocol CariocaDataSource

DataSource protocol for filling up the menu

  • The menu items

    Declaration

    Swift

    var menuItems: [CariocaMenuItem]
  • Specifies the height of each row. ℹ️ All rows will have the same height

    Declaration

    Swift

    func heightForRow() -> CGFloat
  • The cell for a specific edge

    Declaration

    Swift

    func tableView(_ tableView: UITableView,
  • The blur style, optional

    Declaration

    Swift

    var blurStyle: UIBlurEffectStyle?
  • Can the menu go offscreen with user’s gesture ? (true) Or should it always stay fully visible ? (false)

    Declaration

    Swift

    var isOffscreenAllowed: Bool
  • The indicator’s initial position, in %. Top : 0%, Center: 50%, Bottom: 100%.

    Declaration

    Swift

    var indicatorPosition: CGFloat
  • The indicator’s Boomerang type.

    Declaration

    Swift

    var boomerang: BoomerangType