The Swift SDK provides UI components and API helpers to integrate Bible content into iOS and iPadOS applications with minimal setup.
Installation with Swift Package Manager
Add the SDK as a dependency in Xcode:
- Register your app on the YouVersion Platform Portal and obtain an App Key.
- In Xcode, open File → Add Package Dependencies…
- Enter the repository URL
https://github.com/youversion/platform-sdk-swift.gitand choose Up to Next Major Version.
CocoaPods
Alternatively, if you use CocoaPods:
Code
And then in your terminal:
Code
Configure the SDK
Sign up at platform.youversion.com to get your free App Key.
Call YouVersionPlatform.configure once during application startup to configure it with your App Key.
A common pattern is to perform the configuration inside your @main App initializer.
Code
Display Content with BibleWidgetView
The SDK ships with SwiftUI components, including BibleWidgetView, which renders a passage given its reference.
Provide a BibleReference describing the version, book, and verse range you want to display, and optionally adjust the font size.
Code
The widget will fetch and format the passage automatically.
Example code
See the SampleApp project in the Examples folder to see the code required to
display the YouVersion Verse of the Day, and also the BibleReaderView which is a
complete Bible reader suitable for embedding into a tab in your application.