Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions iOS/Delegates/AppDelegate+PhasedInitialization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,16 @@ extension AppDelegate {

// Ensure UI is responsive regardless of initialization state
DispatchQueue.main.async {
// Use UIWindowScene.windows on iOS 15+ instead of deprecated UIApplication.shared.windows
if #available(iOS 15.0, *) {
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let rootVC = windowScene.windows.first?.rootViewController {
rootVC.view.isUserInteractionEnabled = true
}
} else {
// Fallback for older iOS versions
if let rootVC = UIApplication.shared.windows.first?.rootViewController {
rootVC.view.isUserInteractionEnabled = true
}
// Use UIWindowScene.windows on iOS 15+ instead of deprecated UIApplication.shared.windows
if #available(iOS 15.0, *) {
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let rootVC = windowScene.windows.first?.rootViewController {
rootVC.view.isUserInteractionEnabled = true
}
} else {
// Fallback for older iOS versions
if let rootVC = UIApplication.shared.windows.first?.rootViewController {
rootVC.view.isUserInteractionEnabled = true
}
}
}
Expand Down
9 changes: 0 additions & 9 deletions iOS/Extensions/CALayer+Shadow.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import UIKit

extension CALayer {
/// Apply a blue tinted shadow effect to the layer
func applyBlueTintedShadow() {
masksToBounds = false
shadowColor = UIColor.systemBlue.cgColor
shadowOffset = CGSize(width: 0, height: 4)
shadowOpacity = 0.2
shadowRadius = 8
}

/// Apply a futuristic shadow effect to the layer
func applyFuturisticShadow() {
masksToBounds = false
Expand Down