diff --git a/Music Tools.xcodeproj/project.pbxproj b/Music Tools.xcodeproj/project.pbxproj index 9561e9e..7e7992c 100644 --- a/Music Tools.xcodeproj/project.pbxproj +++ b/Music Tools.xcodeproj/project.pbxproj @@ -28,6 +28,7 @@ E9E30C2A23FEAA3A00574EEF /* TagRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9E30C2923FEAA3A00574EEF /* TagRow.swift */; }; E9E30C2D23FEAB0200574EEF /* TagView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9E30C2C23FEAB0200574EEF /* TagView.swift */; }; E9E30C3123FEAF2B00574EEF /* TagObjList.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9E30C3023FEAF2B00574EEF /* TagObjList.swift */; }; + E9E30C3323FF255C00574EEF /* SettingsList.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9E30C3223FF255C00574EEF /* SettingsList.swift */; }; E9EA690B23F9A5430012C3E8 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9EA690A23F9A5430012C3E8 /* AppDelegate.swift */; }; E9EA690D23F9A5430012C3E8 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9EA690C23F9A5430012C3E8 /* SceneDelegate.swift */; }; E9EA690F23F9A5430012C3E8 /* RootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9EA690E23F9A5430012C3E8 /* RootView.swift */; }; @@ -74,6 +75,7 @@ E9E30C2923FEAA3A00574EEF /* TagRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TagRow.swift; sourceTree = ""; }; E9E30C2C23FEAB0200574EEF /* TagView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TagView.swift; sourceTree = ""; }; E9E30C3023FEAF2B00574EEF /* TagObjList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TagObjList.swift; sourceTree = ""; }; + E9E30C3223FF255C00574EEF /* SettingsList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsList.swift; sourceTree = ""; }; E9EA690723F9A5430012C3E8 /* Music Tools.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Music Tools.app"; sourceTree = BUILT_PRODUCTS_DIR; }; E9EA690A23F9A5430012C3E8 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; E9EA690C23F9A5430012C3E8 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; @@ -151,6 +153,7 @@ E98254C023F9FFDD0056D9D3 /* Views */ = { isa = PBXGroup; children = ( + E9E30C3423FF256100574EEF /* Settings */, E9E30C2F23FEACF700574EEF /* Tag */, E9E30C2E23FEACDE00574EEF /* Playlist */, E9EA690E23F9A5430012C3E8 /* RootView.swift */, @@ -191,6 +194,14 @@ path = Tag; sourceTree = ""; }; + E9E30C3423FF256100574EEF /* Settings */ = { + isa = PBXGroup; + children = ( + E9E30C3223FF255C00574EEF /* SettingsList.swift */, + ); + path = Settings; + sourceTree = ""; + }; E9EA68FE23F9A5430012C3E8 = { isa = PBXGroup; children = ( @@ -399,6 +410,7 @@ E9E30C3123FEAF2B00574EEF /* TagObjList.swift in Sources */, E98254CA23FA26600056D9D3 /* PlaylistRow.swift in Sources */, E9EA690B23F9A5430012C3E8 /* AppDelegate.swift in Sources */, + E9E30C3323FF255C00574EEF /* SettingsList.swift in Sources */, E9EA690D23F9A5430012C3E8 /* SceneDelegate.swift in Sources */, E98254DB23FB64740056D9D3 /* Network.swift in Sources */, E9E30C2A23FEAA3A00574EEF /* TagRow.swift in Sources */, diff --git a/Music Tools/Application/AppDelegate.swift b/Music Tools/Application/AppDelegate.swift index b6c2fde..98bc39e 100644 --- a/Music Tools/Application/AppDelegate.swift +++ b/Music Tools/Application/AppDelegate.swift @@ -13,19 +13,17 @@ import KeychainAccess @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { - var liveUser: LiveUser? - - var loading = true - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. let keychain = Keychain(service: "xyz.sarsoo.music.login") - keychain["username"] = "" - keychain["password"] = "" - - liveUser = LiveUser(playlists: [], tags: []) - +// do { +// try keychain.remove("username") +// try keychain.remove("password") +// } catch let error { +// debugPrint("Could not clear keychain, \(error)") +// } +// return true } diff --git a/Music Tools/Application/Main.storyboard b/Music Tools/Application/Main.storyboard index b460133..8255d99 100644 --- a/Music Tools/Application/Main.storyboard +++ b/Music Tools/Application/Main.storyboard @@ -1,5 +1,5 @@ - + @@ -25,6 +25,9 @@ + + +