Skip to content

Commit

Permalink
U
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHu committed May 27, 2024
1 parent 1cb3347 commit 3104946
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 66 deletions.
29 changes: 10 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
47 changes: 0 additions & 47 deletions README_en.md

This file was deleted.

0 comments on commit 3104946

Please sign in to comment.