We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
平移手势选择相册的时候,CPU消耗较高。主要原因是平移过程中,这行代码导致:
bottomView.updateFinishButtonTitle()
这个方法中不断的计算文本宽度:
func boundingRect(ofAttributes attributes: [NSAttributedString.Key: Any], size: CGSize) -> CGRect { let boundingBox = base.boundingRect( with: size, options: [.usesLineFragmentOrigin, .usesFontLeading], attributes: attributes, context: nil ) return boundingBox }
这个函数是一个耗时函数,不适合放在主线程
The text was updated successfully, but these errors were encountered:
chore: release version 4.1.5
954659e
#618
已修改,不会频繁计算了。只会在需要更新的时候调计算
Sorry, something went wrong.
No branches or pull requests
平移手势选择相册的时候,CPU消耗较高。主要原因是平移过程中,这行代码导致:
这个方法中不断的计算文本宽度:
这个函数是一个耗时函数,不适合放在主线程
The text was updated successfully, but these errors were encountered: