Contents

init(wrappedValue:_:_:)

Creates a property wrapper that notifies the system when a change in the property value invalidates aspects of the containing view.

Declaration

init<InvalidationType1, InvalidationType2>(wrappedValue: Value, _ invalidation1: InvalidationType1, _ invalidation2: InvalidationType2) where InvalidationType == NSView.Invalidations.Tuple<InvalidationType1, InvalidationType2>, InvalidationType1 : NSViewInvalidating, InvalidationType2 : NSViewInvalidating

Parameters

  • wrappedValue:

    The underlying value referenced by the invalidating variable.

  • invalidation1:

    A type of invalidation.

  • invalidation2:

    A type of invalidation.

See Also

Creating an Invalidating Property Wrapper