---
title: AppKit integration
framework: swiftui
role: collectionGroup
role_heading: API Collection
path: swiftui/appkit-integration
---

# AppKit integration

Add AppKit views to your SwiftUI app, or use SwiftUI views in your AppKit app.

## Overview

Overview Integrate SwiftUI with your app’s existing content using hosting controllers to add SwiftUI views into AppKit interfaces. A hosting controller wraps a set of SwiftUI views in a form that you can then add to your storyboard-based app.

You can also add AppKit views and view controllers to your SwiftUI interfaces. A representable object wraps the designated view or view controller, and facilitates communication between the wrapped object and your SwiftUI views. For design guidance, see Designing for macOS in the Human Interface Guidelines.

## Topics

### Displaying SwiftUI views in AppKit

- [Unifying your app’s animations](swiftui/unifying-your-app-s-animations.md)
- [NSHostingController](swiftui/nshostingcontroller.md)
- [NSHostingView](swiftui/nshostingview.md)
- [NSHostingMenu](swiftui/nshostingmenu.md)
- [NSHostingSizingOptions](swiftui/nshostingsizingoptions.md)
- [NSHostingSceneRepresentation](swiftui/nshostingscenerepresentation.md)
- [NSHostingSceneBridgingOptions](swiftui/nshostingscenebridgingoptions.md)

### Adding AppKit views to SwiftUI view hierarchies

- [NSViewRepresentable](swiftui/nsviewrepresentable.md)
- [NSViewRepresentableContext](swiftui/nsviewrepresentablecontext.md)
- [NSViewControllerRepresentable](swiftui/nsviewcontrollerrepresentable.md)
- [NSViewControllerRepresentableContext](swiftui/nsviewcontrollerrepresentablecontext.md)

### Adding AppKit gesture recognizers into SwiftUI view hierarchies

- [NSGestureRecognizerRepresentable](swiftui/nsgesturerecognizerrepresentable.md)
- [NSGestureRecognizerRepresentableContext](swiftui/nsgesturerecognizerrepresentablecontext.md)
- [NSGestureRecognizerRepresentableCoordinateSpaceConverter](swiftui/nsgesturerecognizerrepresentablecoordinatespaceconverter.md)

## See Also

### Framework integration

- [UIKit integration](swiftui/uikit-integration.md)
- [WatchKit integration](swiftui/watchkit-integration.md)
- [Technology-specific views](swiftui/technology-specific-views.md)
