The SRG User Data framework provides easy user data management:
- Playback history.
- Playlists.
- Preferences.
User data storage can be bound to an SRG Identity service, so that logged in users can have their personal data automatically synchronized with their account, and thus available across devices.
The library is suitable for applications running on iOS 12, tvOS 12 and above. The project is meant to be compiled with the latest Xcode version.
If you want to contribute to the project, have a look at our contributing guide.
The library must be integrated using Swift Package Manager directly within Xcode. You can also declare the library as a dependency of another one directly in the associated Package.swift
manifest.
When you want to use classes or functions provided by the library in your code, you must import it from your source files first. In Objective-C:
@import SRGUserData;
or in Swift:
import SRGUserData
To learn about how the library can be used, have a look at the getting started guide.
See the LICENSE file for more information.