The Swift SDK provides SwiftUI components and API helpers for integrating Bible content into iOS and iPadOS applications. See the source on GitHub.
Getting Started
-
Get your App Key
Register your app at platform.youversion.com to get a free App Key.
-
Install the SDK
In Xcode, open File → Add Package Dependencies…, enter:
Swift Package URLSelect Up to Next Major Version, then add the
YouVersionPlatformpackage product to your app target. -
Configure the SDK
Call
YouVersionPlatformConfiguration.configureonce during application startup. Your@mainAppinitializer is a convenient place to do this.SampleApp.swiftFor built-in reader sign-in, you can also provide
appName,isSignInEnabled, andsignInPromptMessage. See Components for details. -
Display a Bible passage
BibleCardViewfetches a passage and renders its reference, text, version, and attribution.ContentView.swift
That's it! Your SwiftUI app can now display Bible content.
Next steps
- Components — explore
BibleCardView,BibleTextView,BibleReaderView, sign-in, and Verse of the Day - Copyright & Attribution — display required Bible version copyright when building a custom layout
- Sample app — see the SDK in a working project