Newer
Older
LaserMethane / Pods / HXPHPicker / Sources / HXPHPicker / Editor / Config / EditorTextConfig.swift
//
//  EditorTextConfig.swift
//  HXPHPicker
//
//  Created by Slience on 2021/8/16.
//

import UIKit

public class EditorTextConfig {
    /// 文本颜色数组
    public lazy var colors: [String] = PhotoTools.defaultColors()
    /// 确定按钮背景颜色、文本光标颜色
    public lazy var tintColor: UIColor = .systemTintColor
    /// 文本字体
    public lazy var font: UIFont = .boldSystemFont(ofSize: 25)
    /// 最大字数限制,0为不限制
    public var maximumLimitTextLength: Int = 0
    /// 文本视图推出样式
    public lazy var modalPresentationStyle: UIModalPresentationStyle = {
        if #available(iOS 13.0, *) {
            return .automatic
        } else {
            return .fullScreen
        }
    }()
    
    public init() { }
}