Skip to content
This repository was archived by the owner on Jul 4, 2022. It is now read-only.

henzai-apps/DeviceTypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeviceTypes

Generate

noppefoxwolf/DeviceTypes is provide enum device names.

These device names are generated everyday using github actions.

Generated device names are depends on github actions environments.

https://github.com/actions/virtual-environments

Installation

let package = Package(
    dependencies: [
        .package(url: "https://github.com/noppefoxwolf/DeviceTypes", branch: "main")
    ]
)

Usage

struct ContentView_Preview: PreviewProvider {
    static var previews: some View {
        ContentView()
-            .previewDevice(PreviewDevice(rawValue: "iPhone X"))        
+            .previewDevice(.iPhoneX)
    }
}

License

DeviceTypes is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •