Files
Folo/apps/mobile/native/ios/Extensions/UIImage.swift
T
Innei 9cf801634c feat(mobile): enhance image viewer with page indicator and options menu
- Add UIPageControl to ImageCarouselViewController for image navigation
- Implement options menu with save, copy, and share actions
- Remove deprecated context menu and navigation item configurations
- Add UIImage extension for alpha manipulation
- Update GaleriaView to simplify navigation item handling

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-12 19:19:56 +08:00

19 lines
310 B
Swift

//
// UIImage.swift
// FollowNative
//
// Created by Innei on 2025/3/12.
//
import UIKit
extension UIImage {
func withAlpha(_ alpha: CGFloat) -> UIImage {
return UIGraphicsImageRenderer(size: size).image { _ in
draw(at: .zero, blendMode: .normal, alpha: alpha)
}
}
}