seongsu kim
10/16/2026, 4:19 AMcommonMain.
• Swift export exposes Shared.MainViewController(), which hosts the Compose UI inside SwiftUI through UIViewControllerRepresentable. Xcode integration uses embedSwiftExportForXcode.
• The app includes a custom camera screen with photo capture, pinch-to-zoom, and flash controls. The controls are built in Compose, while the iOS implementation accesses AVFoundation from Kotlin in iosMain and embeds the native preview using UIKitView.
Happy to share more implementation details, and I’d love to hear feedback from others using CMP with Swift export!