SwiftGridReusableView

@MainActor
open class SwiftGridReusableView : UICollectionReusableView

SwiftGridReusableView is the primary reusable view used for headers and footers in the SwiftGridView

Properties

  • Views become highlighted when the user touches them.

    Declaration

    Swift

    @MainActor
    open var highlighted: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var selected: Bool { get set }
  • Add custom subviews to the reusable view’s content view.

    Declaration

    Swift

    @MainActor
    open var contentView: UIView
  • The background view is a subview behind all other views.

    Declaration

    Swift

    @IBOutlet
    @MainActor
    open var backgroundView: UIView? { get set }
  • The selectedBackgroundView will be placed above the background view and displayed on view selection.

    Declaration

    Swift

    @IBOutlet
    @MainActor
    open var selectedBackgroundView: UIView? { get set }

Init

Public Methods

  • Returns the reuse identifier string to be used for the cell. Override to provide a custom identifier.

    Declaration

    Swift

    @MainActor
    open class func reuseIdentifier() -> String

    Return Value

    String identifier for the cell.

Gesture Recognizer

Cell Reuse

  • Called before instance is returned from the reuse queue. Subclasses must call super.

    Declaration

    Swift

    @MainActor
    open override func prepareForReuse()