CellStyle

public struct CellStyle

Defines the presentation information of an item inside a TableSection.

Some properties are only supported by UITableView.

  • The default selection color to use for styles that don’t specify their own.

    Declaration

    Swift

    public static var defaultSelectionColor: UIColor?
  • The default background color to use for styles that don’t specify their own.

    Declaration

    Swift

    public static var defaultBackgroundColor: UIColor?
  • The style to apply to the bottom separator in the cell.

    Supported by UITableView only.

    Declaration

    Swift

    public var bottomSeparator: Separator.Style?
  • The style to apply to the top separator in the cell.

    Supported by UITableView only.

    Declaration

    Swift

    public var topSeparator: Separator.Style?
  • The color of separator lines in the cell.

    Supported by UITableView only.

    Declaration

    Swift

    public var separatorColor: UIColor?
  • Whether the cell is highlighted or not.

    Supported by UITableView only.

    Declaration

    Swift

    public var highlight: Bool?
  • The type of standard accessory control used by a cell. You use these constants when setting the value of the accessoryType property.

    Supported by UITableView only.

    Declaration

    Swift

    public var accessoryType: UITableViewCell.AccessoryType
  • The view’s selection color.

    Declaration

    Swift

    public var selectionColor: UIColor?
  • The view’s background color.

    Declaration

    Swift

    public var backgroundColor: UIColor?
  • The view that is displayed behind the cell’s other content.

    Declaration

    Swift

    @available(*, deprecated, message: "Replaced with backgroundViewProvider.")
    public var backgroundView: UIView?
  • Provides the view that is displayed behind the cell’s other content.

    Declaration

    Swift

    public var backgroundViewProvider: BackgroundViewProvider?
  • The tint color to apply to the cell.

    Declaration

    Swift

    public var tintColor: UIColor?
  • The default spacing to use when laying out content in the view.

    Declaration

    Swift

    public var layoutMargins: UIEdgeInsets?
  • The radius to use when drawing rounded corners in the view.

    Declaration

    Swift

    public var cornerRadius: CGFloat