# XLText **Repository Path**: P1no/XLText ## Basic Information - **Project Name**: XLText - **Description**: 富文本排版引擎库 - **Primary Language**: Swift - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # XLText #### 介绍 富文本排版引擎库 #### 软件架构 1. `XLabel`(富文本视图与UILabel的用法相似) 2. `XLTextLayout`(富文本布局工具,用于计算复杂的富文本固定高时的高度或者固定宽时的高度) 3. `NSMutableAttributeStringExtensions`(富文本的扩展方法包括插入图片和给指定的文本加边框) #### 安装教程 1. `pod 'XLText'` #### 使用说明 1. `xl_addAttachment(image: UIImage?)` 此方法入参为一张图片 2. `xl_addBorderString(attributeString: NSAttributedString, borderColor: UIColor)` 此方法入参为NSAttributeString和边框颜色 3. `XLabel` 的 `text` 和 `attributeText` 都与 `UILabel` 用法一样