Bridges UIKit and SwiftUI using representables, hosting controllers, coordinators, and shared observable state. Helps wrap UIKit views/controllers for SwiftUI, embed SwiftUI in UIKit, or migrate incrementally.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bridge UIKit and SwiftUI in both directions: wrap UIKit views and controllers for use in SwiftUI, embed SwiftUI views into existing UIKit view hierarchies, and coordinate state updates safely. Targets Swift 6.4 / iOS 26+.
UIViewRepresentable: Wraps a custom UIView (e.g., text views, maps, custom controls).UIViewControllerRepresentable: Wraps a UIViewController (e.g., camera controllers, document pickers, share sheets).UIHostingController: Embeds SwiftUI views into UIKit view controller hierarchies.UIHostingConfiguration: Embeds SwiftUI views directly into UICollectionView and UITableView cells (iOS 16+).makeCoordinator() ──> makeUIView(context:) ──> updateUIView(uiView, context:) ──> dismantleUIView(uiView, coordinator:)
makeCoordinator(): Called once to create the delegate/coordinator object.makeUIView(context:): Called once to instantiate the UIKit view and assign delegates.updateUIView(_:context:): Called on every SwiftUI state change affecting the view. Must be idempotent.dismantleUIView(_:coordinator:): Cleanup point when the view leaves the hierarchy. Invalidate timers, unregister observers.[!WARNING] Prevent infinite update cycles: When UIKit notifies the coordinator of a change (e.g.,
textViewDidChange), the coordinator updates SwiftUI state via@Binding. This triggersupdateUIView. Always check for value equality before applying updates to the UIKit view:if uiView.text != text { uiView.text = text }
When adding a UIHostingController as a child view controller:
addChild(hostingController)view.addSubview(hostingController.view)hostingController.didMove(toParent: self)Use UIHostingConfiguration for modern cell layouts in UICollectionView/UITableView without manual controller management.
MKMapView, UITextView, and camera capture controllers, read Map, Text, and Camera Wrappers.PHPickerViewController, MFMailComposeViewController, UIActivityViewController, and search controllers, read Picker, Mail, Share, and Search Wrappers.PDFView, QLPreviewController, and MFMessageComposeViewController, read PDF and Message Wrappers.UIView default layout margins are zero. View controllers still provide systemMinimumLayoutMargins; set preservesSuperviewLayoutMargins to true to inherit them.UIMenuElement.preferredImageVisibility controls menu image visibility (images are hidden by default on iPadOS 27).UINavigationItem.navigationBarMinimization replaces barMinimizeBehavior and barMinimizationSafeAreaAdjustment. UIScrollEdgeElementContainerInteraction contributes a container view to the scroll edge effect shape. UISearchController center placement shows the scope bar inline.UIViewController.registerSceneAccessory(_:) with UISceneAccessory.externalNonInteractive.NSTextTable and related types are available to UIKit; UITextAttachmentViewProviderReusePolicy retains attachment views while scrolling.dragInteraction(_:sessionWillBegin:); use dragInteraction(_:sessionDidMove:).UIArrangementViewController, UIView.ReservedRegion, and UIHingeInteraction appeared in the September 2026 UIKit updates; check their availability annotations before use.Sources: https://sosumi.ai/documentation/ios-ipados-release-notes/ios-ipados-27-release-notes, https://sosumi.ai/documentation/updates/uikit
updateUIView instead of configuring the existing instance.updateUIView, triggering continuous render feedback loops.UIHostingController's view without calling addChild and didMove(toParent:).dismantleUIView.sizeThatFits) in custom representables.makeCoordinator used for delegates, target-actions, and data sourcesupdateUIView guards against redundant assignments to avoid feedback loopsaddChild, didMove) properly pairedUIHostingConfiguration where availabledismantleUIViewtranslatesAutoresizingMaskIntoConstraints = falseWhat SKILL.md sets; muted values are Claude Code's defaults
95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./all-ios-skills:swiftui-uikit-interopfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skillsOther plugins' skills for the same job