Skip to content

Commit

Permalink
Update documentation of Device.current.name to not work as of iOS 1…
Browse files Browse the repository at this point in the history
…6.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 <[email protected]>
  • Loading branch information
KrauseFx and Zandor300 authored Oct 3, 2023
1 parent 66837ec commit 43a9f93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Device.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,8 @@ public enum Device {
}

/// The name identifying the device (e.g. "Dennis' iPhone").
/// As of iOS 16, this will return a generic String like "iPhone", unless your app has additional entitlements.
/// See the follwing link for more information: https://developer.apple.com/documentation/uikit/uidevice/1620015-name
public var name: String? {
guard isCurrent else { return nil }
#if os(watchOS)
Expand Down
2 changes: 2 additions & 0 deletions Source/Device.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,8 @@ public enum Device {
}

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

0 comments on commit 43a9f93

Please sign in to comment.