Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickBDev committed Oct 8, 2022
1 parent 8fb5bbd commit 323f6ff
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,17 @@ Each device has an `all` property. Use this to find, filter, map etc. The follow
### Find the generation of current device

```swift
let identifier = // Use a method shown in ## Alternatives
let identifier = "iPad3,6"
let iPhone = iPhone.all.first { $0.identifier == identifier }
iPhone.generation // iPhone 11 Pro Max
iPhone.generation // iPad (4th generation)
```

### Find the generation of current device using subscript

```swift
let identifier = "iPad3,6"
let iPhone = DeviceList().all[identifer]
iPhone.generation // iPad (4th generation)
```

### List all available colors of the iPad Air 2 64 GB
Expand Down

0 comments on commit 323f6ff

Please sign in to comment.