diff --git a/Linphone.xcodeproj/project.pbxproj b/Linphone.xcodeproj/project.pbxproj index 439addb8d..c061efe6c 100644 --- a/Linphone.xcodeproj/project.pbxproj +++ b/Linphone.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 2B416B2E7C90375B792A28AE /* Pods_Linphone.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C08FB4788AD667D35BAE64D /* Pods_Linphone.framework */; }; D719ABB72ABC67BF00B41C10 /* LinphoneApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D719ABB62ABC67BF00B41C10 /* LinphoneApp.swift */; }; D719ABB92ABC67BF00B41C10 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D719ABB82ABC67BF00B41C10 /* ContentView.swift */; }; D719ABBB2ABC67BF00B41C10 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D719ABBA2ABC67BF00B41C10 /* Assets.xcassets */; }; @@ -14,9 +15,18 @@ D719ABC92ABC6FD700B41C10 /* CoreContext.swift in Sources */ = {isa = PBXBuildFile; fileRef = D719ABC82ABC6FD700B41C10 /* CoreContext.swift */; }; D719ABCC2ABC769C00B41C10 /* AssistantView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D719ABCB2ABC769C00B41C10 /* AssistantView.swift */; }; D719ABCF2ABC779A00B41C10 /* AccountLoginViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D719ABCE2ABC779A00B41C10 /* AccountLoginViewModel.swift */; }; + D7A2EDD62AC18115005D90FC /* SharedMainViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7A2EDD52AC18115005D90FC /* SharedMainViewModel.swift */; }; + D7D24D132AC1B4E800C6F35B /* NotoSans-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D7D24D0D2AC1B4E800C6F35B /* NotoSans-Medium.ttf */; }; + D7D24D142AC1B4E800C6F35B /* NotoSans-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D7D24D0E2AC1B4E800C6F35B /* NotoSans-Regular.ttf */; }; + D7D24D152AC1B4E800C6F35B /* NotoSans-Light.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D7D24D0F2AC1B4E800C6F35B /* NotoSans-Light.ttf */; }; + D7D24D162AC1B4E800C6F35B /* NotoSans-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D7D24D102AC1B4E800C6F35B /* NotoSans-SemiBold.ttf */; }; + D7D24D172AC1B4E800C6F35B /* NotoSans-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D7D24D112AC1B4E800C6F35B /* NotoSans-Bold.ttf */; }; + D7D24D182AC1B4E800C6F35B /* NotoSans-ExtraBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D7D24D122AC1B4E800C6F35B /* NotoSans-ExtraBold.ttf */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + 2C08FB4788AD667D35BAE64D /* Pods_Linphone.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Linphone.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + BC39A28B26EDB00C91AB7756 /* Pods-Linphone.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Linphone.release.xcconfig"; path = "Target Support Files/Pods-Linphone/Pods-Linphone.release.xcconfig"; sourceTree = ""; }; D719ABB32ABC67BF00B41C10 /* Linphone.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Linphone.app; sourceTree = BUILT_PRODUCTS_DIR; }; D719ABB62ABC67BF00B41C10 /* LinphoneApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinphoneApp.swift; sourceTree = ""; }; D719ABB82ABC67BF00B41C10 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; @@ -26,6 +36,15 @@ D719ABC82ABC6FD700B41C10 /* CoreContext.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreContext.swift; sourceTree = ""; }; D719ABCB2ABC769C00B41C10 /* AssistantView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssistantView.swift; sourceTree = ""; }; D719ABCE2ABC779A00B41C10 /* AccountLoginViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountLoginViewModel.swift; sourceTree = ""; }; + D7A2EDD52AC18115005D90FC /* SharedMainViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SharedMainViewModel.swift; sourceTree = ""; }; + D7A2EDDA2AC19EEC005D90FC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; + D7D24D0D2AC1B4E800C6F35B /* NotoSans-Medium.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSans-Medium.ttf"; sourceTree = ""; }; + D7D24D0E2AC1B4E800C6F35B /* NotoSans-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSans-Regular.ttf"; sourceTree = ""; }; + D7D24D0F2AC1B4E800C6F35B /* NotoSans-Light.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSans-Light.ttf"; sourceTree = ""; }; + D7D24D102AC1B4E800C6F35B /* NotoSans-SemiBold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSans-SemiBold.ttf"; sourceTree = ""; }; + D7D24D112AC1B4E800C6F35B /* NotoSans-Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSans-Bold.ttf"; sourceTree = ""; }; + D7D24D122AC1B4E800C6F35B /* NotoSans-ExtraBold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSans-ExtraBold.ttf"; sourceTree = ""; }; + FBDE73581C1DC4F98CC3DF3A /* Pods-Linphone.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Linphone.debug.xcconfig"; path = "Target Support Files/Pods-Linphone/Pods-Linphone.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -33,17 +52,37 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 2B416B2E7C90375B792A28AE /* Pods_Linphone.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 9FFD5E6302DF1093E1CB7311 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 2C08FB4788AD667D35BAE64D /* Pods_Linphone.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + A31AF2AB8C6A3D7B7EA3B424 /* Pods */ = { + isa = PBXGroup; + children = ( + FBDE73581C1DC4F98CC3DF3A /* Pods-Linphone.debug.xcconfig */, + BC39A28B26EDB00C91AB7756 /* Pods-Linphone.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; D719ABAA2ABC67BF00B41C10 = { isa = PBXGroup; children = ( D719ABB52ABC67BF00B41C10 /* Linphone */, D719ABB42ABC67BF00B41C10 /* Products */, + A31AF2AB8C6A3D7B7EA3B424 /* Pods */, + 9FFD5E6302DF1093E1CB7311 /* Frameworks */, ); sourceTree = ""; }; @@ -58,6 +97,8 @@ D719ABB52ABC67BF00B41C10 /* Linphone */ = { isa = PBXGroup; children = ( + D7D24D0C2AC1B4C700C6F35B /* Fonts */, + D7A2EDDA2AC19EEC005D90FC /* Info.plist */, D719ABC72ABC6FB200B41C10 /* core */, D719ABC52ABC6EE800B41C10 /* ui */, D719ABB62ABC67BF00B41C10 /* LinphoneApp.swift */, @@ -88,7 +129,7 @@ D719ABC62ABC6F0200B41C10 /* main */ = { isa = PBXGroup; children = ( - D719ABD02ABC7C4F00B41C10 /* viewmodel */, + D7A2EDD42AC180FE005D90FC /* viewmodel */, D719ABB82ABC67BF00B41C10 /* ContentView.swift */, ); path = main; @@ -119,13 +160,27 @@ path = viewmodel; sourceTree = ""; }; - D719ABD02ABC7C4F00B41C10 /* viewmodel */ = { + D7A2EDD42AC180FE005D90FC /* viewmodel */ = { isa = PBXGroup; children = ( + D7A2EDD52AC18115005D90FC /* SharedMainViewModel.swift */, ); path = viewmodel; sourceTree = ""; }; + D7D24D0C2AC1B4C700C6F35B /* Fonts */ = { + isa = PBXGroup; + children = ( + D7D24D112AC1B4E800C6F35B /* NotoSans-Bold.ttf */, + D7D24D122AC1B4E800C6F35B /* NotoSans-ExtraBold.ttf */, + D7D24D0F2AC1B4E800C6F35B /* NotoSans-Light.ttf */, + D7D24D0D2AC1B4E800C6F35B /* NotoSans-Medium.ttf */, + D7D24D0E2AC1B4E800C6F35B /* NotoSans-Regular.ttf */, + D7D24D102AC1B4E800C6F35B /* NotoSans-SemiBold.ttf */, + ); + path = Fonts; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -133,9 +188,11 @@ isa = PBXNativeTarget; buildConfigurationList = D719ABC22ABC67BF00B41C10 /* Build configuration list for PBXNativeTarget "Linphone" */; buildPhases = ( + 5387C360B232ECCFFE549C7A /* [CP] Check Pods Manifest.lock */, D719ABAF2ABC67BF00B41C10 /* Sources */, D719ABB02ABC67BF00B41C10 /* Frameworks */, D719ABB12ABC67BF00B41C10 /* Resources */, + C6890D9F62DE340F66542619 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -184,13 +241,61 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + D7D24D142AC1B4E800C6F35B /* NotoSans-Regular.ttf in Resources */, + D7D24D182AC1B4E800C6F35B /* NotoSans-ExtraBold.ttf in Resources */, + D7D24D152AC1B4E800C6F35B /* NotoSans-Light.ttf in Resources */, + D7D24D162AC1B4E800C6F35B /* NotoSans-SemiBold.ttf in Resources */, + D7D24D172AC1B4E800C6F35B /* NotoSans-Bold.ttf in Resources */, D719ABBF2ABC67BF00B41C10 /* Preview Assets.xcassets in Resources */, D719ABBB2ABC67BF00B41C10 /* Assets.xcassets in Resources */, + D7D24D132AC1B4E800C6F35B /* NotoSans-Medium.ttf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 5387C360B232ECCFFE549C7A /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Linphone-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + C6890D9F62DE340F66542619 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Linphone/Pods-Linphone-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Linphone/Pods-Linphone-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Linphone/Pods-Linphone-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ D719ABAF2ABC67BF00B41C10 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -200,6 +305,7 @@ D719ABC92ABC6FD700B41C10 /* CoreContext.swift in Sources */, D719ABCF2ABC779A00B41C10 /* AccountLoginViewModel.swift in Sources */, D719ABB72ABC67BF00B41C10 /* LinphoneApp.swift in Sources */, + D7A2EDD62AC18115005D90FC /* SharedMainViewModel.swift in Sources */, D719ABCC2ABC769C00B41C10 /* AssistantView.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -322,6 +428,7 @@ }; D719ABC32ABC67BF00B41C10 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = FBDE73581C1DC4F98CC3DF3A /* Pods-Linphone.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -334,6 +441,7 @@ ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Linphone/Info.plist; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; @@ -361,6 +469,7 @@ }; D719ABC42ABC67BF00B41C10 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = BC39A28B26EDB00C91AB7756 /* Pods-Linphone.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -373,6 +482,7 @@ ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Linphone/Info.plist; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; diff --git a/Linphone/Assets.xcassets/Mountain.imageset/Contents.json b/Linphone/Assets.xcassets/Mountain.imageset/Contents.json new file mode 100644 index 000000000..646235f4e --- /dev/null +++ b/Linphone/Assets.xcassets/Mountain.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "Mountain.svg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Linphone/Assets.xcassets/Mountain.imageset/Mountain.svg b/Linphone/Assets.xcassets/Mountain.imageset/Mountain.svg new file mode 100644 index 000000000..e67609aff --- /dev/null +++ b/Linphone/Assets.xcassets/Mountain.imageset/Mountain.svg @@ -0,0 +1,101 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/Linphone/Fonts/NotoSans-Bold.ttf b/Linphone/Fonts/NotoSans-Bold.ttf new file mode 100644 index 000000000..0d1906839 Binary files /dev/null and b/Linphone/Fonts/NotoSans-Bold.ttf differ diff --git a/Linphone/Fonts/NotoSans-ExtraBold.ttf b/Linphone/Fonts/NotoSans-ExtraBold.ttf new file mode 100644 index 000000000..a74c69ab1 Binary files /dev/null and b/Linphone/Fonts/NotoSans-ExtraBold.ttf differ diff --git a/Linphone/Fonts/NotoSans-Light.ttf b/Linphone/Fonts/NotoSans-Light.ttf new file mode 100644 index 000000000..8fde66280 Binary files /dev/null and b/Linphone/Fonts/NotoSans-Light.ttf differ diff --git a/Linphone/Fonts/NotoSans-Medium.ttf b/Linphone/Fonts/NotoSans-Medium.ttf new file mode 100644 index 000000000..faf167c91 Binary files /dev/null and b/Linphone/Fonts/NotoSans-Medium.ttf differ diff --git a/Linphone/Fonts/NotoSans-Regular.ttf b/Linphone/Fonts/NotoSans-Regular.ttf new file mode 100644 index 000000000..7552fbe80 Binary files /dev/null and b/Linphone/Fonts/NotoSans-Regular.ttf differ diff --git a/Linphone/Fonts/NotoSans-SemiBold.ttf b/Linphone/Fonts/NotoSans-SemiBold.ttf new file mode 100644 index 000000000..b460754c5 Binary files /dev/null and b/Linphone/Fonts/NotoSans-SemiBold.ttf differ diff --git a/Linphone/Info.plist b/Linphone/Info.plist new file mode 100644 index 000000000..0ec3efdd4 --- /dev/null +++ b/Linphone/Info.plist @@ -0,0 +1,15 @@ + + + + + UIAppFonts + + NotoSans-Light.ttf + NotoSans-Regular.ttf + NotoSans-Medium.ttf + NotoSans-SemiBold.ttf + NotoSans-Bold.ttf + NotoSans-ExtraBold.ttf + + + diff --git a/Linphone/LinphoneApp.swift b/Linphone/LinphoneApp.swift index 6536d8c3d..3aae5e76d 100644 --- a/Linphone/LinphoneApp.swift +++ b/Linphone/LinphoneApp.swift @@ -23,7 +23,7 @@ import SwiftUI struct LinphoneApp: App { var body: some Scene { WindowGroup { - ContentView() + ContentView(sharedMainViewModel: SharedMainViewModel()) } } } diff --git a/Linphone/core/CoreContext.swift b/Linphone/core/CoreContext.swift index fbc995456..c08a9cf93 100644 --- a/Linphone/core/CoreContext.swift +++ b/Linphone/core/CoreContext.swift @@ -27,7 +27,7 @@ class CoreContext : ObservableObject { var mRegistrationDelegate : CoreDelegate! var coreVersion: String = Core.getVersion - @Published var loggedIn: Bool = false + @Published var loggedIn : Bool = false private init() { diff --git a/Linphone/ui/assistant/AssistantView.swift b/Linphone/ui/assistant/AssistantView.swift index f6f4e355d..f3d64c140 100644 --- a/Linphone/ui/assistant/AssistantView.swift +++ b/Linphone/ui/assistant/AssistantView.swift @@ -21,11 +21,21 @@ import SwiftUI struct AssistantView: View { - var coreContext = CoreContext.shared + @ObservedObject private var coreContext = CoreContext.shared @ObservedObject var accountLoginViewModel : AccountLoginViewModel var body: some View { VStack { + ZStack { + Image("Mountain") + .resizable() + .frame(width: 1084, height: 108) + Text("Login") + .font(Font.custom("Noto Sans", size: 20)) + .foregroundColor(.white) + } + .padding(.top, 36) + .padding(.bottom, 16) HStack { Text("Username:") .font(.title) @@ -36,9 +46,10 @@ struct AssistantView: View { HStack { Text("Password:") .font(.title) - TextField("", text : $accountLoginViewModel.passwd) - .textFieldStyle(RoundedBorderTextFieldStyle()) - .disabled(coreContext.loggedIn) + + SecureField("", text : $accountLoginViewModel.passwd) + .textFieldStyle(RoundedBorderTextFieldStyle()) + .disabled(coreContext.loggedIn) } HStack { Text("Domain:") diff --git a/Linphone/ui/assistant/viewmodel/AccountLoginViewModel.swift b/Linphone/ui/assistant/viewmodel/AccountLoginViewModel.swift index 4ae39cee8..605b42032 100644 --- a/Linphone/ui/assistant/viewmodel/AccountLoginViewModel.swift +++ b/Linphone/ui/assistant/viewmodel/AccountLoginViewModel.swift @@ -21,9 +21,10 @@ import linphonesw class AccountLoginViewModel : ObservableObject { - var coreContext = CoreContext.shared + private var coreContext = CoreContext.shared + @Published var username : String = "user" - @Published var passwd : String = "pwd" + @Published var passwd : String = "" @Published var domain : String = "sip.example.org" @Published var transportType : String = "TLS" diff --git a/Linphone/ui/main/ContentView.swift b/Linphone/ui/main/ContentView.swift index 083a0011d..140bf99ee 100644 --- a/Linphone/ui/main/ContentView.swift +++ b/Linphone/ui/main/ContentView.swift @@ -21,13 +21,15 @@ import SwiftUI struct ContentView: View { + @ObservedObject var sharedMainViewModel : SharedMainViewModel + var body: some View { - AssistantView(accountLoginViewModel: AccountLoginViewModel()) + AssistantView(accountLoginViewModel: AccountLoginViewModel()) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { - AssistantView(accountLoginViewModel: AccountLoginViewModel()) + AssistantView(accountLoginViewModel: AccountLoginViewModel()) } } diff --git a/Linphone/ui/main/viewmodel/SharedMainViewModel.swift b/Linphone/ui/main/viewmodel/SharedMainViewModel.swift new file mode 100644 index 000000000..ded17529c --- /dev/null +++ b/Linphone/ui/main/viewmodel/SharedMainViewModel.swift @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2010-2023 Belledonne Communications SARL. +* +* This file is part of Linphone +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + +import linphonesw + +class SharedMainViewModel : ObservableObject { + + init() {} +}