Skip to content

Commit

Permalink
Update priority method #9
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii authored Aug 21, 2023
1 parent ed8d3ac commit 1050b63
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: dec60cd2be7cdaf4cee05f89f703dd009f3be229

COCOAPODS: 1.10.1
COCOAPODS: 1.12.1
10 changes: 10 additions & 0 deletions TextureBridging/NodeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ open class NodeView<D: ASDisplayNode>: UIView {
super.invalidateIntrinsicContentSize()
}

open override func setContentHuggingPriority(_ priority: UILayoutPriority, for axis: NSLayoutConstraint.Axis) {
super.setContentHuggingPriority(priority, for: axis)
internalView.setContentHuggingPriority(priority, for: axis)
}

open override func setContentCompressionResistancePriority(_ priority: UILayoutPriority, for axis: NSLayoutConstraint.Axis) {
super.setContentCompressionResistancePriority(priority, for: axis)
internalView.setContentCompressionResistancePriority(priority, for: axis)
}

}

private final class _InternalNodeView<D: ASDisplayNode>: UILabel /* To use `textRect` method */ {
Expand Down

0 comments on commit 1050b63

Please sign in to comment.