<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nsview-appearance",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Appearance"
}
-->

# Appearance

Change the view’s visibility, vibrancy, and focus ring and respond to appearance-related changes.

## Topics

### Showing and Hiding the View

[`var isHidden: Bool`](/documentation/AppKit/NSView/isHidden)

A Boolean value indicating whether the view is hidden.

[`var isHiddenOrHasHiddenAncestor: Bool`](/documentation/AppKit/NSView/isHiddenOrHasHiddenAncestor)

A Boolean value indicating whether the view is hidden from sight because it, or one of its ancestors, is marked as hidden.

[`func viewDidHide()`](/documentation/AppKit/NSView/viewDidHide())

Invoked when the view is hidden, either directly, or in response to an ancestor being hidden.

[`func viewDidUnhide()`](/documentation/AppKit/NSView/viewDidUnhide())

Invoked when the view is unhidden, either directly, or in response to an ancestor being unhidden

### Responding to Appearance Changes

[`func viewDidChangeEffectiveAppearance()`](/documentation/AppKit/NSView/viewDidChangeEffectiveAppearance())

Informs the view that its effective appearance changed.

[`func viewDidChangeBackingProperties()`](/documentation/AppKit/NSView/viewDidChangeBackingProperties())

Responds when the view’s backing store properties change.

### Getting the Vibrancy Setting

[`var allowsVibrancy: Bool`](/documentation/AppKit/NSView/allowsVibrancy)

A Boolean value indicating whether the view ensures it is vibrant on top of other content.

### Drawing the Focus Ring

[`var focusRingType: NSFocusRingType`](/documentation/AppKit/NSView/focusRingType)

The type of focus ring drawn around the view.

[`var focusRingMaskBounds: NSRect`](/documentation/AppKit/NSView/focusRingMaskBounds)

The focus ring mask bounds, specified in the view’s coordinate space.

[`func drawFocusRingMask()`](/documentation/AppKit/NSView/drawFocusRingMask())

Draws the focus ring mask for the view.

[`func noteFocusRingMaskChanged()`](/documentation/AppKit/NSView/noteFocusRingMaskChanged())

Invoked to notify the view that the focus ring mask requires updating.

[`func setKeyboardFocusRingNeedsDisplay(NSRect)`](/documentation/AppKit/NSView/setKeyboardFocusRingNeedsDisplay(_:))

Invalidates the area around the focus ring.

[`class var defaultFocusRingType: NSFocusRingType`](/documentation/AppKit/NSView/defaultFocusRingType)

Returns the default focus ring type.

### Displaying a Find Indicator

[`var isDrawingFindIndicator: Bool`](/documentation/AppKit/NSView/isDrawingFindIndicator)

A Boolean value indicating whether the view or one of its ancestors is being drawn for a find indicator.

### Configuring a Cell’s Background

[`enum BackgroundStyle`](/documentation/AppKit/NSView/BackgroundStyle)

Background styles to apply to a view’s cell.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)