Skip to content

Commit

Permalink
[Chore] Team-Smeme#86 - TextView 메서드 주석 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cchanmi committed Jan 10, 2023
1 parent 06e8153 commit 25b8994
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Smeme-iOS/Smeme-iOS/Resources/Extension/UITextView+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
import UIKit

extension UITextView {
/// 레이아웃 잡을 때 값 24로 주기 ex) $0.leading.trailing.equalToSuperview().inset(24)
/*
1. textColor는 뷰컨에서 해당 textView 속성 정의할 때 정의해 주어야 함!
2. 레이아웃 잡을 때 값 24로 주기 ex) $0.leading.trailing.equalToSuperview().inset(24)
3. textView 위에 label 올릴 때의 레이아웃 ex) top.leading.equalToSuperview().inset(7)
*/
func setLineSpacing() {
let style = NSMutableParagraphStyle()
style.lineSpacing = 2
let attributes = [
NSAttributedString.Key.paragraphStyle: style,
NSAttributedString.Key.foregroundColor: UIColor.black,
NSAttributedString.Key.font: UIFont.body1
]
self.textAlignment = .left
Expand Down

0 comments on commit 25b8994

Please sign in to comment.