Skip to content
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

Open
wants to merge 7 commits into
base: Label_ios14
Choose a base branch
from
Open

Link ios14 #81

wants to merge 7 commits into from

Conversation

BaniChan
Copy link
Contributor

@BaniChan BaniChan requested a review from kevinwl02 as a code owner May 28, 2021 02:38
@BaniChan BaniChan changed the title add Link component (ios14) Link ios14 May 28, 2021
@kevinwl02 kevinwl02 changed the base branch from master to Label_ios14 June 1, 2021 02:46
/// - Parameters:
/// - label: The visual representation of the label
/// - destination: The url for the web site
@available(iOS 14.0, *)
Copy link
Contributor

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, *)
Copy link
Contributor

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
Copy link
Contributor

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants