Skip to content

Commit

Permalink
feat: range 이슈로 crash 나는 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
woookDev committed Dec 11, 2022
1 parent f817983 commit a4a6bc1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ extension NSAttributedString {

func alignment(with alignment: NSTextAlignment) -> NSAttributedString {
guard let mutableAttr = self.mutableCopy() as? NSMutableAttributedString,
string.count > 0,
let styleAttribute = mutableAttr.attributes(
at: 0,
effectiveRange: nil
Expand Down

0 comments on commit a4a6bc1

Please sign in to comment.