         return newImage
     }
 
-     /// 创建矩形图像
-     ///
-     /// - Parameters:
-     ///   - size: 尺寸
-     ///   - backColor: 背景色(默认`white`)
-     ///   - borderColor: 边线颜色(默认`lightGray`)
-     ///   - borderWidth: 边线宽度(默认`1.0`)
-     /// - Returns: 新创建的矩形图像
-     public func createRectImage(size: CGSize?,
+    /// 创建矩形图像
+    /// - Parameters:
+    ///   - size: 尺寸
+    ///   - backColor: 背景色(默认`white`)
+    ///   - borderColor: 边线颜色(默认`lightGray`)
+    ///   - borderWidth: 边线宽度(默认`1.0`)
+    /// - Returns: 新创建的矩形图像
+    public func createRectImage(size: CGSize?,
                                 backColor: UIColor = .white,
                                 borderColor: UIColor = .lightGray,
                                 borderWidth: CGFloat = 1.0) -> UIImage?

import UIKit

extension RGAppTools where Base: UIImage {
    /// Image 对应的 data
    public var data: Data? {
        guard let jpegData = base.jpegData(compressionQuality: 1.0) else {

        // 7.返回结果
        return result
    }

}
