Files
Folo/apps/mobile/native/ios/Modules/SharedWebView/SharedWebView+BridgeData.swift
T
Innei b67685b6c1 feat(mobile): enhance image preview and URL scheme handling in iOS
- Implement FollowImageURLSchemeHandler for custom image loading and caching
- Update ImagePreview to support loading images from URLs
- Modify WebView configuration to use new image URL scheme handler
- Remove deprecated image preview methods
- Update bridge data structure for image preview
- Refactor image preview logic across multiple modules

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

31 lines
534 B
Swift

//
// SharedWebView+BridgeData.swift
// Pods
//
// Created by Innei on 2025/2/7.
//
import Foundation
private protocol BasePayload {
var type: String { get }
}
struct SetContentHeightPayload: Codable, BasePayload {
var type: String
var payload: CGFloat
}
struct BridgeDataBasePayload: Codable {
var type: String
}
struct PreviewImagePayloadProps: Codable {
var imageUrls: [String]
var index: Int = 0
}
struct PreviewImagePayload: Codable, BasePayload {
var type: String
var payload: PreviewImagePayloadProps
}