Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 87deb5d9f2 | |||
| b31ffc1c83 |
@@ -34,8 +34,12 @@ class FormatLogViewController: UIViewController {
|
|||||||
textView = UITextView()
|
textView = UITextView()
|
||||||
textView.translatesAutoresizingMaskIntoConstraints = false
|
textView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
textView.font = UIFont.systemFont(ofSize: 16)
|
textView.font = UIFont.systemFont(ofSize: 16)
|
||||||
textView.backgroundColor = .systemBackground
|
textView.backgroundColor = UIColor { traitCollection in
|
||||||
|
traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white
|
||||||
|
}
|
||||||
textView.layer.cornerRadius = 12
|
textView.layer.cornerRadius = 12
|
||||||
|
textView.layer.borderWidth = 0.5
|
||||||
|
textView.layer.borderColor = UIColor.separator.cgColor
|
||||||
textView.textContainerInset = UIEdgeInsets(top: 12, left: 12, bottom: 12, right: 12)
|
textView.textContainerInset = UIEdgeInsets(top: 12, left: 12, bottom: 12, right: 12)
|
||||||
textView.delegate = self
|
textView.delegate = self
|
||||||
view.addSubview(textView)
|
view.addSubview(textView)
|
||||||
|
|||||||
@@ -34,8 +34,12 @@ class FormatNoteViewController: UIViewController {
|
|||||||
private func setupUI() {
|
private func setupUI() {
|
||||||
textView = UITextView()
|
textView = UITextView()
|
||||||
textView.translatesAutoresizingMaskIntoConstraints = false
|
textView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
textView.backgroundColor = .systemBackground
|
textView.backgroundColor = UIColor { traitCollection in
|
||||||
|
traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white
|
||||||
|
}
|
||||||
textView.layer.cornerRadius = 12
|
textView.layer.cornerRadius = 12
|
||||||
|
textView.layer.borderWidth = 0.5
|
||||||
|
textView.layer.borderColor = UIColor.separator.cgColor
|
||||||
textView.layer.masksToBounds = true
|
textView.layer.masksToBounds = true
|
||||||
textView.font = UIFont.preferredFont(forTextStyle: .body)
|
textView.font = UIFont.preferredFont(forTextStyle: .body)
|
||||||
textView.textContainerInset = UIEdgeInsets(top: 12, left: 12, bottom: 12, right: 12)
|
textView.textContainerInset = UIEdgeInsets(top: 12, left: 12, bottom: 12, right: 12)
|
||||||
|
|||||||
Reference in New Issue
Block a user