iOS Sample Apps
Use native, hybrid, and template sample apps to speed up development.
Find these samples in the SampleApps
directory of the SalesforceMobileSDK-iOS/native repo.
- MobileSyncExplorer demonstrates the power of the native Mobile Sync library on iOS. It resides in Mobile SDK for iOS under
native/SampleApps/MobileSyncExplorer
. - RestAPIExplorer exercises all native REST API wrappers. It resides in Mobile SDK for iOS under
native/SampleApps/RestAPIExplorer
.
Find these samples in the hybrid/SampleApps
directory of the SalesforceMobileSDK-iOS-Hybrid repo.
- AccountEditor: Demonstrates how to synchronize offline data using the
mobilesync.js
library. - MobileSyncExplorer: Demonstrates how to synchronize offline data using the Mobile Sync plugin.
You can use template apps with forceios create
or forceios createwithtemplate
to spawn Mobile SDK “starter” apps. Find these samples in the github.com/forcedotcom/SalesforceMobileSDK-Templates repo.
- Used by forceios create
- iOSNativeSwiftTemplate: Standard iOS native template, written in Swift. Default app type for the
forceios create
command. Whenforceios create
prompts for app type, pressReturn
or enternative_swift
. - iOSNativeTemplate: Standard iOS native template, written in Objective-C. When
forceios create
prompts for app type, enternative
.
- iOSNativeSwiftTemplate: Standard iOS native template, written in Swift. Default app type for the
- For use with forceios createwithtemplate
- iOSIDPTemplate: Demonstrates how to set up an identity provider in an iOS app. When
forceios createwithtemplate
prompts for the repo URI, enteriOSIDPTemplate
. - iOSNativeSwiftEncryptedNotificationTemplate: Demonstrates how to set up an iOS app to receive encrypted notifications. When
forceios createwithtemplate
prompts for the repo URI, enteriOSNativeSwiftEncryptedNotificationTemplate
. - iOSNativeSwiftPackageManagerTemplate: Demonstrates how to set up an iOS app with SwiftPackageManager. When
forceios createwithtemplate
prompts for the repo URI, enter (or copy and paste)iOSNativeSwiftPackageManagerTemplate
. - iOSNativeLoginTemplate: Demonstrates how to set up native login. When
forceios createwithtemplate
prompts for the repo URI, enteriOSNativeLoginTemplate
. - MobileSyncExplorerSwift: Provides a comprehensive example of Mobile Sync usage. When
forceios createwithtemplate
prompts for the repo URI, enterMobileSyncExplorerSwift
.
- iOSIDPTemplate: Demonstrates how to set up an identity provider in an iOS app. When