Merge pull request #1 from naru-jpn/add_plist_preview Add plist preview
Merge pull request #1 from naru-jpn/add_plist_preview
Add plist preview
Browse local storages of your applications.
png
jpg
jpeg
webp
ktx
plist
Support install using Swift Package Manager.
Simply you only need to create StorageBrowser with parameter source.
StorageBrowser
source
// Create new browser (SwiftUI view). StorageBrowser(source: .home)
name is only used as navigation title.
name
StorageBrowser(source: .custom(path: CUSTOM_PATH, name: CUSTOM_NAME))
setting contains rules of sorting and option for previewing contents.
setting
struct Settings { let sortingStrategy: SortingStrategy? let previewSettings: FilePreview.Settings } // ... StorageBrowser(source: source, setting: setting)
SortingStrategy is defined here.
SortingStrategy
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.
maxStringPreviewLength
1000
struct Settings { let stringEncoding: String.Encoding let maxStringPreviewLength: Int }
All source code is licensed under the MIT License.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Storages
Browse local storages of your applications.
Usage Scenes
Features
png
,jpg
,jpeg
,webp
,ktx
,plist
Installation
Support install using Swift Package Manager.
Usage
Browsing from Home direcotry.
Simply you only need to create
StorageBrowser
with parametersource
.Browsing from custom path.
name
is only used as navigation title.Configure storategy of sorting.
setting
contains rules of sorting and option for previewing contents.SortingStrategy
is defined here.Configure settings of previewing contents.
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
is1000
.Licenses
All source code is licensed under the MIT License.