Skip to content

Commit db2ba89

Browse files
committed
Added layout dynamic.
1 parent 77b882a commit db2ba89

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/SparrowKit/UIKit/Extensions/UILabelExtension.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ extension UILabel {
5353

5454
// MARK: - Layout
5555

56+
/**
57+
SparrowKit: Layout label with dynamic height.
58+
*/
59+
open func layoutDynamicHeight() {
60+
sizeToFit()
61+
}
62+
5663
/**
5764
SparrowKit: Layout label with fix widget and dynamic `height`.
5865

0 commit comments

Comments
 (0)