mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 05:43:58 +02:00
Convert objects to realm-native
This commit is contained in:
@@ -7,13 +7,12 @@
|
||||
|
||||
import Foundation
|
||||
import RealmSwift
|
||||
import Unrealm
|
||||
|
||||
struct DeviceSettings: Realmable {
|
||||
var disableAutoRewind: Bool = false
|
||||
var enableAltView: Bool = false
|
||||
var jumpBackwardsTime: Int = 10
|
||||
var jumpForwardTime: Int = 10
|
||||
class DeviceSettings: Object {
|
||||
@Persisted var disableAutoRewind: Bool = false
|
||||
@Persisted var enableAltView: Bool = false
|
||||
@Persisted var jumpBackwardsTime: Int = 10
|
||||
@Persisted var jumpForwardTime: Int = 10
|
||||
}
|
||||
|
||||
func getDefaultDeviceSettings() -> DeviceSettings {
|
||||
|
||||
Reference in New Issue
Block a user