Skip to content

Commit 44e6e98

Browse files
committed
Remove NSAttributedString height(considering) extention method
1 parent 99bb911 commit 44e6e98

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Sources/Extensions/NSAttributedString+Extensions.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ import Foundation
2626

2727
extension NSAttributedString {
2828

29-
internal func height(considering width: CGFloat) -> CGFloat {
30-
31-
let constraintBox = CGSize(width: width, height: .greatestFiniteMagnitude)
32-
let rect = self.boundingRect(with: constraintBox, options: [.usesLineFragmentOrigin, .usesFontLeading], context: nil)
33-
return rect.height
34-
35-
}
36-
3729
internal func width(considering height: CGFloat) -> CGFloat {
3830

3931
let constraintBox = CGSize(width: .greatestFiniteMagnitude, height: height)

0 commit comments

Comments
 (0)