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

mediaSubtypes判断LivePhoto问题 #648

Closed
skytoup opened this issue Sep 14, 2021 · 3 comments
Closed

mediaSubtypes判断LivePhoto问题 #648

skytoup opened this issue Sep 14, 2021 · 3 comments

Comments

@skytoup
Copy link
Contributor

skytoup commented Sep 14, 2021

if asset.mediaSubtypes == .photoLive || asset.mediaSubtypes.rawValue == 10 {

在一台iPhone 11 Pro Max发现LivePhotomediaSubtypes = 520, 导致无法识别LivePhoto

mediaSubtypesOptionSet, 为什么不使用mediaSubtypes.contains(.photoLive)这种方式判断LivePhoto?

@longitachi
Copy link
Owner

emmm,没这么写是之前oc版本翻译过来的😂,你那边测试下如果改成这样是不是就好了

if asset.mediaSubtypes.contains(.photoLive) {
    return .livePhoto
}

@skytoup
Copy link
Contributor Author

skytoup commented Sep 14, 2021

抄了被测试发现某些手机完全不识别的问题😂
测试了是可以的

@longitachi
Copy link
Owner

那我下个版本改成这样判断

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