Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
c0b03385
Commit
c0b03385
authored
Jun 28, 2018
by
Orkhan Alikhanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added .iPad5, .iPad6, .iPadPro2, and .iPadProLarge2 devices
parent
817aa259
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Sources/iOS/Device.swift
+8
-0
No files found.
Sources/iOS/Device.swift
View file @
c0b03385
...
...
@@ -59,6 +59,10 @@ public enum DeviceModel: Int {
case
iPadMini4
case
iPadPro
case
iPadProLarge
case
iPad5
case
iPadPro2
case
iPadProLarge2
case
iPad6
case
simulator
case
unknown
}
...
...
@@ -109,6 +113,10 @@ public struct Device {
case
"iPad5,1"
,
"iPad5,2"
:
return
.
iPadMini4
case
"iPad6,3"
,
"iPad6,4"
:
return
.
iPadPro
case
"iPad6,7"
,
"iPad6,8"
:
return
.
iPadProLarge
case
"iPad6,11"
,
"iPad6,12"
:
return
.
iPad5
case
"iPad7,3"
,
"iPad7,4"
:
return
.
iPadPro2
case
"iPad7,1"
,
"iPad7,2"
:
return
.
iPadProLarge2
case
"iPad7,5"
,
"iPad7,6"
:
return
.
iPad6
case
"i386"
,
"x86_64"
:
return
.
simulator
default
:
return
.
unknown
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment