Skip to content

hlemai/ImageFirstUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageFirstUI

Description

Swift UI Sample application used to display image in a directory

Display image of a single directory. Personal exploraton of MVVM, SwiftUI and others design principles.

Just browse directories, clic on subfolders and on image to diplay. Can deal with big directories with many files and display many format.

UI Sample

Small preferences and multiple-windows capabilities.

pref

Piece of interest

You can find some interessing patterns or a good start using swiftui 2.0 :

  • View/ContentView.swift use NavigationView to navigate between directories.
  • View/DispImgList.swift is build on top of a LazyVGrid.
  • Model/ImageAndThumbnailLoader.swift compute asynchronously fresh thumbnail from the whole image and is a combine ObservableObject.

Licence

no specific licence, you can copy, use translate...

About

Test Swift UI to display image

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages