ViewRegistrationInfo

public struct ViewRegistrationInfo : Equatable

Describes the registration information for a cell or supplementary view.

  • The reuse identifier for the view.

    Declaration

    Swift

    public let reuseIdentifier: String
  • The registration method for the view.

    Declaration

    Swift

    public let registrationMethod: ViewRegistrationMethod
  • Initializes a new ViewRegistrationInfo for the provided classType.

    Note

    The class name is used for reuseIdentifier. The registrationMethod is set to .fromClass.

    Declaration

    Swift

    public init(classType: AnyClass)

    Parameters

    classType

    The cell or supplementary view class.

  • Initializes a new ViewRegistrationInfo for the provided classType, nibName, and bundle.

    Note

    The class name is used for reuseIdentifier. The registrationMethod is set to .fromNib using the provided nibName and bundle.

    Declaration

    Swift

    public init(classType: AnyClass, nibName: String, bundle: Bundle? = nil)

    Parameters

    classType

    The cell or supplementary view class.

    nibName

    The name of the nib for the view.

    bundle

    The bundle in which the nib is located. Pass nil to use the main bundle.