Skip to content

Commit 43a9f93

Browse files
KrauseFxZandor300
andauthored
Update documentation of Device.current.name to not work as of iOS 16.0 (#347)
* Update documentation of `Device.current.name` to not work as of iOS 16.0 * Add link to documentation and build Swift file. --------- Co-authored-by: Zandor Smith <info@zsinfo.nl>
1 parent 66837ec commit 43a9f93

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Source/Device.generated.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,8 @@ public enum Device {
11811181
}
11821182

11831183
/// The name identifying the device (e.g. "Dennis' iPhone").
1184+
/// As of iOS 16, this will return a generic String like "iPhone", unless your app has additional entitlements.
1185+
/// See the follwing link for more information: https://developer.apple.com/documentation/uikit/uidevice/1620015-name
11841186
public var name: String? {
11851187
guard isCurrent else { return nil }
11861188
#if os(watchOS)

Source/Device.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,8 @@ public enum Device {
781781
}
782782

783783
/// The name identifying the device (e.g. "Dennis' iPhone").
784+
/// As of iOS 16, this will return a generic String like "iPhone", unless your app has additional entitlements.
785+
/// See the follwing link for more information: https://developer.apple.com/documentation/uikit/uidevice/1620015-name
784786
public var name: String? {
785787
guard isCurrent else { return nil }
786788
#if os(watchOS)

0 commit comments

Comments
 (0)