Skip to content

Commit

Permalink
[Chore] #104 - 필요없는 lineHeight 함수 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
binisnil committed May 1, 2024
1 parent 7874d21 commit 769e93e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Motivoo-iOS/Motivoo-iOS/Global/Extension/UILabel+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,4 @@ extension UILabel {
self.attributedText = attrString
}
}

public func setLineSpacing(lineSpacing: CGFloat) {
if let text = self.text {
let attributedStr = NSMutableAttributedString(string: text)
let style = NSMutableParagraphStyle()
style.lineSpacing = lineSpacing
attributedStr.addAttribute(
NSAttributedString.Key.paragraphStyle,
value: style,
range: NSRange(location: 0, length: attributedStr.length))
self.attributedText = attributedStr
}
}
}

0 comments on commit 769e93e

Please sign in to comment.