-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Link ios14 #81
base: Label_ios14
Are you sure you want to change the base?
Link ios14 #81
Conversation
/// - Parameters: | ||
/// - label: The visual representation of the label | ||
/// - destination: The url for the web site | ||
@available(iOS 14.0, *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no constraint for iOS14 in this implementation, you should remove this iOS14 restriction
/// - Parameters: | ||
/// - title: the localizedStringKey of the title lebel | ||
/// - destination: The url for the web site | ||
@available(iOS 14.0, *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following your Label PR, you can remove the iOS14 constraint.
let lastView = view.lastRenderableView?.view as? Self else { return } | ||
|
||
context.viewOperationQueue.addOperation { | ||
[label].iterateFullViewDiff(oldList: [lastView.label]) { _, operation in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you only have one label, iterateFullViewDiff
is not necessary. Just call label.updateRender
directly.
https://developer.apple.com/documentation/swiftui/link