Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update swift loading animation (#520)

Leendert de Borst48000b76ebfe
diff --git a/apps/mobile-app/app/login-settings.tsx b/apps/mobile-app/app/login-settings.tsx
index 4c74267bf..b30ea57f6 100644
--- a/apps/mobile-app/app/login-settings.tsx
+++ b/apps/mobile-app/app/login-settings.tsx
@@ -1,4 +1,3 @@
-import AsyncStorage from '@react-native-async-storage/async-storage';
import { useNavigation } from 'expo-router';
import { useState, useEffect, useCallback, useMemo, useLayoutEffect } from 'react';
import { StyleSheet, View, Text, TextInput, ActivityIndicator } from 'react-native';
@@ -86,8 +85,6 @@ export default function SettingsScreen() : React.ReactNode {
*/
const handleCustomUrlChange = async (value: string) : Promise<void> => {
setCustomUrl(value);
- // Sync to both AsyncStorage and native layer
- await AsyncStorage.setItem('apiUrl', value);
try {
await NativeVaultManager.setApiUrl(value);
} catch (error) {
diff --git a/apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings b/apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings
index 8fcb1de76..9e675dd33 100644
Binary files a/apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings and b/apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings differ
diff --git a/apps/mobile-app/ios/VaultUI/ColorConstants.swift b/apps/mobile-app/ios/VaultUI/ColorConstants.swift
index 692ab9d58..9198b1a29 100644
--- a/apps/mobile-app/ios/VaultUI/ColorConstants.swift
+++ b/apps/mobile-app/ios/VaultUI/ColorConstants.swift
@@ -11,6 +11,7 @@ public struct ColorConstants {
static let accentBorder = SwiftUI.Color(hex: "#d1d5db")
static let primary = SwiftUI.Color(hex: "#f49541")
static let secondary = SwiftUI.Color(hex: "#6b7280")
+ static let tertiary = SwiftUI.Color(hex: "#eabf69")
static let icon = SwiftUI.Color(hex: "#687076")
}
@@ -23,6 +24,7 @@ public struct ColorConstants {
static let accentBorder = SwiftUI.Color(hex: "#444444")
static let primary = SwiftUI.Color(hex: "#f49541")
static let secondary = SwiftUI.Color(hex: "#6b7280")
+ static let tertiary = SwiftUI.Color(hex: "#eabf69")
static let icon = SwiftUI.Color(hex: "#9BA1A6")
}
}
diff --git a/apps/mobile-app/ios/VaultUI/Views/PasskeyRegistrationView.swift b/apps/mobile-app/ios/VaultUI/Views/PasskeyRegistrationView.swift
index 0206517e8..4036f6e9e 100644
--- a/apps/mobile-app/ios/VaultUI/Views/PasskeyRegistrationView.swift
+++ b/apps/mobile-app/ios/VaultUI/Views/PasskeyRegistrationView.swift
@@ -124,50 +124,76 @@ public struct PasskeyRegistrationView: View {
/// Loading overlay component with AliasVault branding
private struct LoadingOverlayView: View {
let message: String
- @State private var isAnimating = false
+ @Environment(\.colorScheme) private var colorScheme
+ @State private var animatingDots: [Bool] = [false, false, false, false]
+ @State private var textDots = ""
+ @State private var timer: Timer?
var body: some View {
- ZStack {
- // Semi-transparent background
- Color.black.opacity(0.4)
- .ignoresSafeArea()
-
- // Loading card
- VStack(spacing: 20) {
- // AliasVault logo animation
- Image(systemName: "shield.fill")
- .font(.system(size: 60))
- .foregroundColor(ColorConstants.Light.primary)
- .rotationEffect(Angle(degrees: isAnimating ? 360 : 0))
- .animation(
- Animation.linear(duration: 2.0)
- .repeatForever(autoreverses: false),
- value: isAnimating
- )
- .onAppear {
- isAnimating = true
+ VStack(spacing: 0) {
+ Spacer()
+
+ VStack(spacing: 0) {
+ // AliasVault logo animation - four pulsing dots
+ HStack(spacing: 10) {
+ ForEach(0..<4) { index in
+ Circle()
+ .fill(ColorConstants.Light.tertiary)
+ .frame(width: 8, height: 8)
+ .opacity(animatingDots[index] ? 1.0 : 0.3)
+ .animation(
+ Animation.easeInOut(duration: 0.7)
+ .repeatForever(autoreverses: true)
+ .delay(Double(index) * 0.2),
+ value: animatingDots[index]
+ )
}
+ }
+ .padding(12)
+ .padding(.horizontal, 12)
+ .background(
+ RoundedRectangle(cornerRadius: 20)
+ .fill(colorScheme == .dark ? Color.clear : Color.white)
+ .overlay(
+ RoundedRectangle(cornerRadius: 20)
+ .stroke(ColorConstants.Light.tertiary, lineWidth: 5)
+ )
+ .shadow(color: Color.black.opacity(0.05), radius: 2, x: 0, y: 1)
+ )
- // Loading message
+ // Loading message with animated dots
if !message.isEmpty {
- Text(message)
+ Text(message + textDots)
.font(.body)
- .foregroundColor(.white)
+ .foregroundColor(colorScheme == .dark ? ColorConstants.Dark.text : ColorConstants.Light.text)
.multilineTextAlignment(.center)
.padding(.horizontal)
+ .padding(.top, 16)
}
+ }
+ .padding(20)
- // Progress indicator
- ProgressView()
- .progressViewStyle(CircularProgressViewStyle(tint: .white))
- .scaleEffect(1.2)
+ Spacer()
+ }
+ .onAppear {
+ // Start dot animations
+ for index in 0..<4 {
+ animatingDots[index] = true
}
- .padding(30)
- .background(
- RoundedRectangle(cornerRadius: 16)
- .fill(Color(white: 0.2, opacity: 0.95))
- )
- .shadow(radius: 20)
+
+ // Start text dots animation
+ let textTimer = Timer.scheduledTimer(withTimeInterval: 0.4, repeats: true) { _ in
+ if textDots.count >= 3 {
+ textDots = ""
+ } else {
+ textDots += "."
+ }
+ }
+ timer = textTimer
+ }
+ .onDisappear {
+ timer?.invalidate()
+ timer = nil
}
}
}