
Swiftui Uikit Interop
Bridges UIKit and SwiftUI in both directions, wrapping UIKit views and embedding SwiftUI in UIKit screens.
- CCM score
- 73 of 100
- skills.sh installs
- 4.4K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers UIViewRepresentable and UIViewControllerRepresentable wrapping, UIHostingController and UIHostingConfiguration embedding, and coordinator delegate patterns
- Includes lifecycle guidance for makeUIView, updateUIView, dismantleUIView, and sizeThatFits, plus common mistakes and a review checklist
- Enforces setting delegates in makeUIView rather than updateUIView, and guards updateUIView against redundant writes that cause update loops
- Designed for teams wrapping UIKit-only or third-party views in SwiftUI or migrating UIKit apps to SwiftUI incrementally
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill swiftui-uikit-interop -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SwiftUI-UIKit Interop
Bridge UIKit and SwiftUI in both directions: wrap UIKit views and controllers, embed SwiftUI in UIKit screens, and synchronize state without duplicating lifecycle ownership.
See references/representable-recipes.md for complete wrapping recipes and references/hosting-migration.md for UIKit-to-SwiftUI migration patterns.
Contents
- UIViewRepresentable Protocol
- UIViewControllerRepresentable Protocol
- The Coordinator Pattern
- UIHostingController
- Sizing and Layout
- State Synchronization Patterns
- UIKit Automatic Observation Tracking
- Sendable Considerations
- Common Mistakes
- Review Checklist
- References
UIViewRepresentable Protocol
Use UIViewRepresentable to wrap any UIView subclass for use in SwiftUI.
Required Methods
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Mobile Apps, Frontend & UI Code
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 94- Storekit4.4K
- Swiftui Gestures4.4K
- Apple On Device Ai4.3K
- App Intents4.3K
- Swift Charts4.3K
- Swift Language4.3K
- Authentication4.2K
- Background Processing4.2K
- Healthkit4.2K
- Vision Framework4.1K
- Coreml4.1K
- Core Bluetooth4K
- Core Motion4K
- Natural Language4K
- Speech Recognition4K
- Device Integrity4K
- Alarmkit3.9K
- Contacts Framework3.9K
- Swift Codable3.9K
- Core Nfc3.9K
- Tipkit3.9K
- App Clips3.9K
- Permissionkit3.9K
- Energykit3.9K
Similar to Swiftui Uikit Interop
More Mobile Apps
swiftui-patternsSkilldpearson2699/swift-ios-skills4.9K installsModern MV-pattern SwiftUI guidance for iOS 26+ covering state ownership, composition, and async loading.
swiftui-skillsPlugindpearson2699/swift-ios-skills1.3K starsSwiftUI patterns, focus, navigation, gestures, layout, animation, Liquid Glass, WebKit, performance, and UIKit interop
swiftui-developmentSkillmindrally/skills717 installsComprehensive SwiftUI guidelines covering MVVM architecture, Swift 6 concurrency, and modern state management for iOS 17+.
swiftui-expert-skillSkillavdlee/swiftui-agent-skill37.2K installsTrace-driven SwiftUI guidance for iOS and macOS covering state, layout, performance, and Instruments analysis.
swift-architecture-skillSkillefremidze/swift-architecture-skill2.1K installsPicks and applies one Swift iOS architecture playbook (MVVM, MVI, TCA, Clean Architecture, VIPER, MVP, Coordinator, or Reactive) for SwiftUI or UIKit work.