iOS Deep Link & Custom URL Scheme Generator
Construct custom URL scheme links (myapp://), test them directly in the iOS Simulator using xcrun simctl, and copy ready-to-paste Info.plist and SwiftUI code.
Only lowercase alphanumeric, hyphens, and dots.
Destination route inside your navigation stack.
xcrun simctl openurl booted "myapp://profile/details?user_id=9821&source=invite"<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleURLSchemes</key>
<array>
<string>myapp</string>
</array>
</dict>
</array>@main
struct MyApp: App {
@State private var activeRoute: String?
var body: some Scene {
WindowGroup {
ContentView()
.onOpenURL { url in
print("Received deep link: \(url)")
guard url.scheme == "myapp" else { return }
let path = url.host ?? ""
let components = URLComponents(url: url, resolvingAgainstBaseURL: true)
let params = components?.queryItems
// Route to destination
}
}
}
}Custom URL Schemes vs Universal Links
No Server Required
Custom URL schemes operate purely on device without needing an HTTPS web server or Apple App Site Association files.
Internal Inter-App Communication
Ideal for triggering actions between your own apps, widget deep links, Apple Watch handoffs, or local automation scripts.
No Fallback Webpage
If your app isn’t installed, clicking a custom URL scheme prompts an iOS error dialog. For public sharing, pair with Universal Links.
Build full iPhone apps without touching Xcode
Enjoying this free Deep Link Generator? Thorous turns your natural language prompts into compiled native SwiftUI apps, with real-time iOS simulator streaming and visual on-screen editing.
Native Mac app · macOS 14 Sonoma or later · Apple silicon & Intel