add mobile androida and ios apps
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import Foundation
|
||||
|
||||
final class AppSettings: ObservableObject {
|
||||
static let shared = AppSettings()
|
||||
|
||||
var host: String {
|
||||
get { UserDefaults.standard.string(forKey: "server_host") ?? "192.168.178.100" }
|
||||
set { UserDefaults.standard.set(newValue, forKey: "server_host") }
|
||||
}
|
||||
|
||||
var password: String {
|
||||
get { UserDefaults.standard.string(forKey: "server_password") ?? "groove_listen" }
|
||||
set { UserDefaults.standard.set(newValue, forKey: "server_password") }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user