{"id":34637634,"url":"https://github.com/delphiworlds/swiftbridges","last_synced_at":"2026-03-14T20:51:30.530Z","repository":{"id":329624784,"uuid":"1120004543","full_name":"DelphiWorlds/SwiftBridges","owner":"DelphiWorlds","description":"Bridging frameworks for Swift-only frameworks, Delphi imports and demos","archived":false,"fork":false,"pushed_at":"2025-12-20T19:49:41.000Z","size":124,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T19:51:08.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DelphiWorlds.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-20T09:31:28.000Z","updated_at":"2025-12-22T06:57:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/DelphiWorlds/SwiftBridges","commit_stats":null,"previous_names":["delphiworlds/swiftbridges"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/DelphiWorlds/SwiftBridges","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FSwiftBridges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FSwiftBridges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FSwiftBridges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FSwiftBridges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DelphiWorlds","download_url":"https://codeload.github.com/DelphiWorlds/SwiftBridges/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FSwiftBridges/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28005414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-24T17:07:18.208Z","updated_at":"2026-03-14T20:51:30.492Z","avatar_url":"https://github.com/DelphiWorlds.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift Bridges\n\n**Delphi-accessible bridges to modern Swift-only Apple frameworks**\n\n## Overview\n\n**Swift Bridges** is a collection of bridging frameworks and Delphi import units that allow Delphi developers to use modern Apple frameworks that are written exclusively in Swift and therefore not directly accessible from Objective-C (and thus not from Delphi).\n\nApple has been moving many new APIs to Swift-only frameworks (e.g., SwiftUI, WidgetKit, TipKit, ShazamKit's newer classes). Since Delphi's iOS support is based on Objective-C interoperability, these APIs are normally unavailable to Delphi developers.\n\nThis repository provides:\n- Xcode projects that create small Objective-C wrapper frameworks around selected Swift-only APIs.\n- Ready-to-use Delphi import units generated from those wrappers.\n- Demo projects showing real-world usage in Delphi apps.\n\nThe goal is to make the latest Apple platform features accessible to the Delphi community without requiring a full Swift rewrite.\n\n## Current Bridges\n\n| Framework | iOS SDK | Demo |\n|-----------|---------|------|\n| DeclaredAgeRangeObjC | iOS 26.0 | ✅ |\n| ShazamKitObjC | iOS 17.0 | ✅ |\n\n**Please see [this issue](https://github.com/DelphiWorlds/SwiftBridges/issues/1) regarding bridges that are in progress, or planned.**\n\n## Getting Started\n\n### Prerequisites\n- macOS with Xcode (latest recommended).\n- Embarcadero Delphi (12.x or newer is recommended) \n- An Apple Developer account (required for some features like ShazamKit catalog access).\n\n### Building a Bridge Framework (Xcode)\n\nMost framework binaries/headers will be available in the `Frameworks` folder, however if you wish to build them yourself:\n\n1. Open the desired framework project (e.g., `/Bridges/ShazamKitObjC/ShazamKitObjC.xcodeproj`).\n2. Build for device (arm64)\n3. The resulting `.framework` bundle is ready for use under the folder `~/Library/Developer/Xcode/DerivedData/(FrameworkProjectName)-xxxxxxx` where `(FrameworkProjectName)` is the name of the bridging project (e.g ShazamKitObjC) and `xxxxxxxx` is a unique identifier created by Xcode. Under *that* folder will be `/Build/Products/Debug-iphoneos` where the `.framework` folder is located \n4. Copy the `.framework` folder mentioned in step 3 to a suitable location on your Windows machine for the Delphi compiler to find it using the `Framework search path` value in the Project Options of your Delphi project.\n\n### Creating a Delphi import\n\nIf there is no [existing Delphi import](https://github.com/DelphiWorlds/SwiftBridges/tree/main/Imports) for a bridged framework, please see [these instructions in the Octoid repo](https://github.com/Embarcadero/octoid/blob/main/ReadMe.md), paying particular attention to [importing a third party framework](https://github.com/Embarcadero/octoid/blob/main/ReadMe.md#transforming-3rd-party-frameworks).\n\n### Using in a Delphi Project\n\nSee the demo projects in the `Demos` folder for examples, including project configuration requirements.\n\n## Contributing\n\nContributions are very welcome! Ideas for new bridges, bug fixes, improved wrappers, or additional demos are all appreciated.\n\nPlease open an issue first to discuss any major additions, and see the [contributions readme](https://github.com/DelphiWorlds/SwiftBridges/blob/main/Contributions.md) for conventions used in bridging projects in this repo, and other information\n\n## Building Bridges\n\nIf you wish to contribute, or are just interested in the process, see \"Building Bridges\" in the [documentation](./Docs/BuildingBridges/ReadMe.md)\n\n## Acknowledgements\n\n- Huge **THANK YOU** to Chris Pimlott, whose [WidgetKit tutorial](https://github.com/MyBuzzTechnologies/WidgetKitObjCDelphi) inspired this work.\n- Thanks to [Grok](https://www.grok.com), who worked tirelessly to help generate the Swift/Objective-C files and gave valuable hints for configuring Xcode projects.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelphiworlds%2Fswiftbridges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelphiworlds%2Fswiftbridges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelphiworlds%2Fswiftbridges/lists"}