Skip to content
This repository has been 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