mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
38 lines
564 B
Swift
38 lines
564 B
Swift
//
|
|
// SplashScreen.swift
|
|
// Linphone
|
|
//
|
|
// Created by Benoît Martins on 03/10/2023.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct SplashScreen: View {
|
|
|
|
@ObservedObject private var coreContext = CoreContext.shared
|
|
@Binding var isActive: Bool
|
|
|
|
var body: some View {
|
|
GeometryReader { geometry in
|
|
VStack {
|
|
Spacer()
|
|
HStack {
|
|
Spacer()
|
|
Image("linphone")
|
|
Spacer()
|
|
}
|
|
Spacer()
|
|
}
|
|
|
|
}
|
|
.ignoresSafeArea(.all)
|
|
.onAppear {
|
|
Task {
|
|
try await coreContext.initialiseCore()
|
|
withAnimation {
|
|
self.isActive = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|