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.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Storages
Browse local storages of your applications.
Usage Scenes
Features
png,jpg,jpeg,webp,ktx,plistInstallation
Support install using Swift Package Manager.
Usage
Browsing from Home direcotry.
Simply you only need to create
StorageBrowserwith parametersource.Browsing from custom path.
nameis only used as navigation title.Configure storategy of sorting.
settingcontains rules of sorting and option for previewing contents.SortingStrategyis 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
maxStringPreviewLengthis1000.Licenses
All source code is licensed under the MIT License.