MenuListSectionController

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKMenuListSectionController)
open class MenuListSectionController : NSObject

Handles a section in the menu of a MenuViewController.

ListSectionController

  • The inset of the section.

    Declaration

    Swift

    public var inset: UIEdgeInsets { get set }
  • The line spacing of the section.

    Declaration

    Swift

    public var minimumLineSpacing: CGFloat { get set }
  • The interitem spacing of the section.

    Declaration

    Swift

    public var minimumInteritemSpacing: CGFloat { get set }
  • Whether this is the first section in the list.

    Declaration

    Swift

    public var isFirstSection: Bool { get }
  • Whether this is the last section in the list.

    Declaration

    Swift

    public var isLastSection: Bool { get }
  • The index of the section.

    Declaration

    Swift

    public var section: Int { get }

Selection

  • Returns true if this section controller has any selected items.

    Declaration

    Swift

    open var hasSelectedItems: Bool { get }
  • Returns true if the item at index is selected.

    Declaration

    Swift

    open func hasSelection(at index: Int) -> Bool
  • Marks the item at index as selected. Does not call delegate methods.

    Declaration

    Swift

    open func selectItem(at index: Int)
  • Marks the item at index as deselected. Does not call delegate methods.

    Declaration

    Swift

    open func deselectItem(at index: Int)