- Added localisation to theme 1, also updated the English localisation for reversing the language - Added localisation to the sidebar. Also handled the live language change with the help of observers - Integrated GetUserData API at splash. - Added the login NAv. Now if user will logout he will be redirected to the login Screen. - Added Activity Indicator on the splash to handle the getuserdata. - Added Guest Login To home.
31 lines
574 B
Swift
31 lines
574 B
Swift
//
|
|
// File.swift
|
|
// WOKA
|
|
//
|
|
// Created by Bilal on 26/04/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension K{
|
|
|
|
/**
|
|
This is not for external use!
|
|
This should only be used for storing the defaults
|
|
*/
|
|
|
|
struct UserDefaultsStruct{
|
|
// App Update
|
|
static let appUpdateSkipVer = "appUpdateSkipVer"
|
|
static let themeDefault = "themeDefault"
|
|
static let isUserLogined = "isUserLogined"
|
|
static let userAccessToken = "userAccessToken"
|
|
}
|
|
}
|
|
|
|
// theme switch enum
|
|
enum ThemeSelect : String{
|
|
case theme1
|
|
case theme2
|
|
}
|