Browse local storages of your applications.
- Explore your local storage to reveal configuration of application caches.
- Find large cache file on your application's storage.
- Preview image or text and share contents to other devices.
Browse Files | Preview File | Share File | Delete File |
---|---|---|---|
- Easy browsing of files contained local storage.
- Share files to other device over shared network.
- Sort files or directory based on applied options.
- Calculate file size.
- Calculate total file size contained in any directory.
- Preview image, binary, text convertable contents.
- Available file extensions:
png
,jpg
,jpeg
,webp
,ktx
,plist
- Available file extensions:
- Delete file with swipe.
Support install using Swift Package Manager.
Simply you only need to create StorageBrowser
with parameter source
.
// Create new browser (SwiftUI view).
StorageBrowser(source: .home)
name
is only used as navigation title.
StorageBrowser(source: .custom(path: CUSTOM_PATH, name: CUSTOM_NAME))
setting
contains rules of sorting and option for previewing contents.
struct Settings {
let sortingStrategy: SortingStrategy?
let previewSettings: FilePreview.Settings
}
// ...
StorageBrowser(source: source, setting: setting)
SortingStrategy
is defined here.
- Display directory first or not.
- Rule to sort files.
- alphabet
- fileSize
Now you can only set option to preview string contents.
Too long text takes too much time to render when using Text of SwiftUI. So default value of maxStringPreviewLength
is 1000
.
struct Settings {
let stringEncoding: String.Encoding
let maxStringPreviewLength: Int
}
All source code is licensed under the MIT License.