Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单独使用PhotoBrowser的show方法Configuration参数能否支持传入languageType #584

Closed
NineCity opened this issue Oct 16, 2023 · 0 comments

Comments

@NineCity
Copy link

在外层单独使用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
}

SilenceLove added a commit that referenced this issue Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants