diff --git a/README.md b/README.md index 094aac1..02b0e26 100644 --- a/README.md +++ b/README.md @@ -2,50 +2,41 @@ ![](https://img.shields.io/badge/CocoaPods-supported-brightgreen) ![](https://img.shields.io/badge/Swift-5.0-brightgreen) ![](https://img.shields.io/badge/License-MIT-brightgreen) ![](https://img.shields.io/badge/version-iOS11.0-brightgreen) +[中文文档](https://ddceo.com/blog/1295.html) -iOS端沙盒文件浏览器,可查看、复制、移动、删除文件等操作,使用苹果的`Quick Look`框架实现预览,长按显示更多操作 +The iOS sandbox file browser can view, copy, move, delete files and other operations. Use `quick look` framework to preview and long press to display more operations. +## Independent integration -## 集成 - -cocoapods快速集成 +cocoapods ```ruby pod 'DDFileBrowser' ``` -### 使用 +### Use ```swift DDFileBrowser.shared.start() ``` -你可以调用下面这个函数获取指定路径的文件类型 +you can get the file type of the specified path by this function ```swift DDFileBrowser.shared.getFileType(filePath: path) ``` -#### 指定预览的根目录 - -默认根目录是app的根目录,如果有特殊需求,比如只让用户查看某个目录,则可以设置根目录即可 -``` -DDFileBrowser.shared.rootDirectoryPath = ZXKitUtil.shared.getFileDirectory(type: .caches) -``` +## Preview -## 预览 - - -|文件列表|文件类型| +|File List|File Type Icon| |----|----| |![](./preview/demo2.png)|![](./preview/demo1.png)| -功能示例 +Function example ![](./preview/preview.gif) - ## License -该项目基于MIT协议,您可以自由修改使用 +The project is based on the MIT License diff --git a/README_en.md b/README_en.md deleted file mode 100644 index ba8df98..0000000 --- a/README_en.md +++ /dev/null @@ -1,47 +0,0 @@ -# ZXFileBrowser - -![](https://img.shields.io/badge/CocoaPods-supported-brightgreen) ![](https://img.shields.io/badge/Swift-5.0-brightgreen) ![](https://img.shields.io/badge/License-MIT-brightgreen) ![](https://img.shields.io/badge/version-iOS11.0-brightgreen) - -[中文文档](./README.md) - -If you need to quickly integrate multiple debugging functions, such as log viewing, network speed testing, file viewing and so on, please use [DamonHu/ZXKitSwift](https://github.com/DamonHu/ZXKitSwift) - -The plug-in has been integrated in [ZXKitSwift](https://github.com/DamonHu/ZXKitSwift) by default, if you have already integrated `ZXKitSwift`, there is no need to repeat the integration - - -The iOS sandbox file browser can view, copy, move, delete files and other operations. Use `quick look` framework to preview and long press to display more operations. - -## Independent integration - -cocoapods - -```ruby -pod 'ZXFileBrowser' -``` - -### Use - -```swift -ZXFileBrowser.shared.start() -``` - -you can get the file type of the specified path by this function - -```swift -ZXFileBrowser.shared.getFileType(filePath: path) -``` - - -## Preview - -|File List|File Type Icon| -|----|----| -|![](./preview/demo2.png)|![](./preview/demo1.png)| - -Function example - -![](./preview/preview.gif) - -## License - -The project is based on the MIT License