iOS/Sources/App/Settings/Eureka/UITextView+CodeRow.swift

10 lines
283 B
Swift

import UIKit
extension UITextView {
func configureCodeFont() {
// a little smaller than the body size
let baseSize = UIFont.preferredFont(forTextStyle: .body).pointSize - 2.0
font = UIFont.monospacedSystemFont(ofSize: baseSize, weight: .regular)
}
}