Files
Folo/apps/mobile/native/ios/Utils/Utils.swift
T
Innei bc252c33a0 refactor(mobile): improve AI summary component and remove unused assets
- Remove Media.xcassets and Accent color set
- Update Utils.swift to hardcode accent color
- Enhance AISummary component with error handling and retry functionality
- Adjust layout and styling for AI summary
- Update image size calculation to handle undefined dimensions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 20:42:01 +08:00

26 lines
562 B
Swift

//
// Utils.swift
// FollowNative
//
// Created by Innei on 2025/2/7.
//
import Foundation
import UIKit
private class Noop {}
enum Utils {
static let bundle = Bundle(for: Noop.self)
static let accentColor = UIColor(cgColor: .init(red: 255 / 255, green: 92 / 255, blue: 0, alpha: 1))
static func getRootVC() -> UIViewController? {
if let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let window = scene.windows.first,
let rootVC = window.rootViewController {
return rootVC
}
return nil
}
}