SectionBackgroundView

@MainActor
class SectionBackgroundView : UICollectionReusableView

This class draws a border around the currently selected group.

  • Used to register this class with the collection view.

    Declaration

    Swift

    @MainActor
    static let reuseIdentifier: String
  • The font to be used for the endcap button.

    Declaration

    Swift

    @MainActor
    private static let _endcapFont: UIFont
  • The font to be used for the endcap button.

    Declaration

    Swift

    @MainActor
    private static let _endcapFontButton: UIFont
  • The width of the group endcap.

    Declaration

    Swift

    @MainActor
    private static let _endcapWidthInDisplayUnits: CGFloat
  • The radius of our rounded corners

    Declaration

    Swift

    @MainActor
    private static let _cornerRadiusInDisplayUnits: CGFloat
  • The lightest light, when light.

    Declaration

    Swift

    @MainActor
    private static let _lightModeMax: CGFloat
  • The darkest dark, when light.

    Declaration

    Swift

    @MainActor
    private static let _lightModeMin: CGFloat
  • The lightest light, when dark.

    Declaration

    Swift

    @MainActor
    private static let _darkModeMax: CGFloat
  • The darkest dark, when dark.

    Declaration

    Swift

    @MainActor
    private static let _darkModeMin: CGFloat
  • This caches the last index path.

    Declaration

    Swift

    @MainActor
    private var _lastIndexPath: IndexPath
  • This caches the last selected group index.

    Declaration

    Swift

    @MainActor
    private var _lastFrame: CGRect { get set }
  • The controller that “owns” this instance.

    Declaration

    Swift

    @MainActor
    var myController: RiValT_GroupEditor_ViewController? { get }
  • The gesture recognizer that calls the handler.

    Declaration

    Swift

    @MainActor
    weak var myTapRecognizer: UITapGestureRecognizer?
  • The group associated with this decorator.

    Declaration

    Swift

    @MainActor
    weak var myGroup: TimerGroup?
  • The background gradient view.

    Declaration

    Swift

    @MainActor
    weak private var _gradientImageView: UIImageView?
  • Required (and unsupported) coder init.

    Declaration

    Swift

    @MainActor
    required init?(coder: NSCoder)
  • Declaration

    Swift

    @MainActor
    override init(frame inFrame: CGRect)
  • The background gradient view.

    Declaration

    Swift

    @MainActor
    override func layoutSubviews()
  • The background gradient view.

    Declaration

    Swift

    @MainActor
    func createGradient(into inFrame: CGRect)
  • Called when the actual layout attributes are applied to this instance.

    Declaration

    Swift

    @MainActor
    override func preferredLayoutAttributesFitting(_ inLayoutAttributes: UICollectionViewLayoutAttributes) -> UICollectionViewLayoutAttributes

    Parameters

    inLayoutAttributes

    The new attributes.