mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-18 13:51:00 +08:00
7ce1242f30
- Introduced a new UIImage extension to create a UIActivityItemSource, allowing images to be shared with titles and URLs. - Enhanced HelperModule with new functions to save, share, copy images, and retrieve base64 from UIImageView. - Updated MediaCarousel to use preview_image_url for video context menus. - Refactored Image and ImageContextMenu components for improved image handling and context menu actions. Signed-off-by: Innei <tukon479@gmail.com>
17 lines
308 B
Swift
17 lines
308 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)
|
|
}
|
|
}
|
|
}
|