---
title: UIKit integration
framework: swiftui
role: collectionGroup
role_heading: API Collection
path: swiftui/uikit-integration
---

# UIKit integration

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

## Overview

Overview Integrate SwiftUI with your app’s existing content using hosting controllers to add SwiftUI views into UIKit 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 UIKit 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 the following sections in the Human Interface Guidelines: Designing for iOS Designing for iPadOS Designing for tvOS

## Topics

### Displaying SwiftUI views in UIKit

- [Using SwiftUI with UIKit](uikit/using-swiftui-with-uikit.md)
- [Unifying your app’s animations](swiftui/unifying-your-app-s-animations.md)
- [UIHostingController](swiftui/uihostingcontroller.md)
- [UIHostingControllerSizingOptions](swiftui/uihostingcontrollersizingoptions.md)
- [UIHostingConfiguration](swiftui/uihostingconfiguration.md)
- [UIHostingSceneDelegate](swiftui/uihostingscenedelegate.md)

### Adding UIKit views to SwiftUI view hierarchies

- [UIViewRepresentable](swiftui/uiviewrepresentable.md)
- [UIViewRepresentableContext](swiftui/uiviewrepresentablecontext.md)
- [UIViewControllerRepresentable](swiftui/uiviewcontrollerrepresentable.md)
- [UIViewControllerRepresentableContext](swiftui/uiviewcontrollerrepresentablecontext.md)

### Adding UIKit gesture recognizers into SwiftUI view hierarchies

- [UIGestureRecognizerRepresentable](swiftui/uigesturerecognizerrepresentable.md)
- [UIGestureRecognizerRepresentableContext](swiftui/uigesturerecognizerrepresentablecontext.md)
- [UIGestureRecognizerRepresentableCoordinateSpaceConverter](swiftui/uigesturerecognizerrepresentablecoordinatespaceconverter.md)

### Sharing configuration information

- [UITraitBridgedEnvironmentKey](swiftui/uitraitbridgedenvironmentkey.md)

### Hosting an ornament in UIKit

- [UIHostingOrnament](swiftui/uihostingornament.md)
- [UIOrnament](swiftui/uiornament.md)

## See Also

### Framework integration

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