You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public struct Configuration {
/// 导航栏 删除、取消 按钮颜色
public var tintColor: UIColor = .white
/// 网络视频加载方式
public var loadNetworkVideoMode: PhotoAsset.LoadNetworkVideoMode = .play
/// 自定义视频Cell,默认带有滑动条
public var customVideoCellClass: PreviewVideoViewCell.Type? = PhotoBrowserVideoCell.self
/// 视频播放类型
public var videoPlayType: PhotoPreviewViewController.PlayType = .normal
/// LivePhoto播放类型
public var livePhotoPlayType: PhotoPreviewViewController.PlayType = .once
/// 背景颜色
public var backgroundColor: UIColor = .black
/// 显示删除按钮
public var showDelete: Bool = false
/// 转场动画过程中是否隐藏原视图
public var hideSourceView: Bool = true
/// 跳转样式
public var modalPresentationStyle: UIModalPresentationStyle = .custom
}
The text was updated successfully, but these errors were encountered:
在外层单独使用PhotoBrowser的show方法浏览照片,能否在传入的Configuration类型参数中增加一个传入指定语言的字段,设置指定语言?
open class func show(
_ config: Configuration = .init(),
pageIndex: Int = 0,
fromVC: UIViewController? = nil,
transitionalImage: UIImage? = nil,
numberOfPages: @escaping NumberOfPagesHandler,
assetForIndex: @escaping RequiredAsset,
transitionAnimator: TransitionAnimator? = nil,
cellForIndex: CellReloadContext? = nil,
cellWillDisplay: ContextUpdate? = nil,
cellDidEndDisplaying: ContextUpdate? = nil,
viewDidScroll: ContextUpdate? = nil,
deleteAssetHandler: AssetHandler? = nil,
longPressHandler: AssetHandler? = nil
) -> PhotoBrowser
public struct Configuration {
/// 导航栏 删除、取消 按钮颜色
public var tintColor: UIColor = .white
/// 网络视频加载方式
public var loadNetworkVideoMode: PhotoAsset.LoadNetworkVideoMode = .play
/// 自定义视频Cell,默认带有滑动条
public var customVideoCellClass: PreviewVideoViewCell.Type? = PhotoBrowserVideoCell.self
/// 视频播放类型
public var videoPlayType: PhotoPreviewViewController.PlayType = .normal
/// LivePhoto播放类型
public var livePhotoPlayType: PhotoPreviewViewController.PlayType = .once
/// 背景颜色
public var backgroundColor: UIColor = .black
/// 显示删除按钮
public var showDelete: Bool = false
/// 转场动画过程中是否隐藏原视图
public var hideSourceView: Bool = true
/// 跳转样式
public var modalPresentationStyle: UIModalPresentationStyle = .custom
}
The text was updated successfully, but these errors were encountered: