- 12-1 woka meeting - Did Rnd on Container view. This will help for theming - Made a custom class to add the child view and remove child view. - Added Moon if the theme color is night - added the Ca animation for the stars to show glowing effect - Mapped all the stars with the delay time - Handled the theme switch
20 lines
438 B
Swift
20 lines
438 B
Swift
//
|
|
// KeyWindowFix.swift
|
|
// WOKA
|
|
//
|
|
// Created by Bilal on 24/05/2024.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension UIApplication {
|
|
|
|
/// The app's key window.
|
|
var keyWindowInConnectedScenes: UIWindow? {
|
|
let windowScenes: [UIWindowScene] = connectedScenes.compactMap({ $0 as? UIWindowScene })
|
|
let windows: [UIWindow] = windowScenes.flatMap({ $0.windows })
|
|
return windows.first(where: { $0.isKeyWindow })
|
|
}
|
|
|
|
}
|