Skip to content

Commit

Permalink
Improve MARKs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zandor300 committed Nov 6, 2019
1 parent 371f1c3 commit 3e39fca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
20 changes: 11 additions & 9 deletions Source/Device.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import WatchKit
import UIKit
#endif

// MARK: - Device
// MARK: Device

/// This enum is a value-type wrapper and extension of
/// [`UIDevice`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/).
Expand Down Expand Up @@ -831,6 +831,8 @@ public enum Device {
return devices.contains(self)
}

// MARK: Current Device

/// Whether or not the current device is the current device.
private var isCurrent: Bool {
return self == Device.current
Expand Down Expand Up @@ -983,7 +985,7 @@ public enum Device {
}
}

// MARK: - CustomStringConvertible
// MARK: CustomStringConvertible
extension Device: CustomStringConvertible {

/// A textual representation of the device.
Expand Down Expand Up @@ -1066,7 +1068,7 @@ extension Device: CustomStringConvertible {
}
}

// MARK: - Equatable
// MARK: Equatable
extension Device: Equatable {

/// Compares two devices
Expand All @@ -1081,7 +1083,7 @@ extension Device: Equatable {

}

// MARK: - Battery
// MARK: Battery
#if os(iOS) || os(watchOS)
@available(iOS 8.0, watchOS 4.0, *)
extension Device {
Expand Down Expand Up @@ -1181,7 +1183,7 @@ extension Device {
}
#endif

// MARK: - Device.Batterystate: Comparable
// MARK: Device.Batterystate: Comparable
#if os(iOS) || os(watchOS)
@available(iOS 8.0, watchOS 4.0, *)
extension Device.BatteryState: Comparable {
Expand Down Expand Up @@ -1217,7 +1219,7 @@ extension Device.BatteryState: Comparable {

#if os(iOS)
extension Device {
// MARK: - Orientation
// MARK: Orientation
/**
This enum describes the state of the orientation.
- Landscape: The device is in Landscape Orientation
Expand All @@ -1239,7 +1241,7 @@ extension Device {
#endif

#if os(iOS)
// MARK: - DiskSpace
// MARK: DiskSpace
extension Device {

/// Return the root url
Expand Down Expand Up @@ -1295,7 +1297,7 @@ extension Device {
#endif

#if os(iOS)
// MARK: - Apple Pencil
// MARK: Apple Pencil
extension Device {

/**
Expand Down Expand Up @@ -1340,7 +1342,7 @@ extension Device {
#endif

#if os(iOS)
// MARK: - Cameras
// MARK: Cameras
extension Device {

public enum CameraType {
Expand Down
20 changes: 11 additions & 9 deletions Source/Device.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ import WatchKit
import UIKit
#endif

// MARK: - Device
// MARK: Device

/// This enum is a value-type wrapper and extension of
/// [`UIDevice`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/).
Expand Down Expand Up @@ -627,6 +627,8 @@ public enum Device {
return devices.contains(self)
}

// MARK: Current Device

/// Whether or not the current device is the current device.
private var isCurrent: Bool {
return self == Device.current
Expand Down Expand Up @@ -728,7 +730,7 @@ public enum Device {
}
}

// MARK: - CustomStringConvertible
// MARK: CustomStringConvertible
extension Device: CustomStringConvertible {

/// A textual representation of the device.
Expand Down Expand Up @@ -761,7 +763,7 @@ extension Device: CustomStringConvertible {
}
}

// MARK: - Equatable
// MARK: Equatable
extension Device: Equatable {

/// Compares two devices
Expand All @@ -776,7 +778,7 @@ extension Device: Equatable {

}

// MARK: - Battery
// MARK: Battery
#if os(iOS) || os(watchOS)
@available(iOS 8.0, watchOS 4.0, *)
extension Device {
Expand Down Expand Up @@ -876,7 +878,7 @@ extension Device {
}
#endif

// MARK: - Device.Batterystate: Comparable
// MARK: Device.Batterystate: Comparable
#if os(iOS) || os(watchOS)
@available(iOS 8.0, watchOS 4.0, *)
extension Device.BatteryState: Comparable {
Expand Down Expand Up @@ -912,7 +914,7 @@ extension Device.BatteryState: Comparable {

#if os(iOS)
extension Device {
// MARK: - Orientation
// MARK: Orientation
/**
This enum describes the state of the orientation.
- Landscape: The device is in Landscape Orientation
Expand All @@ -934,7 +936,7 @@ extension Device {
#endif

#if os(iOS)
// MARK: - DiskSpace
// MARK: DiskSpace
extension Device {

/// Return the root url
Expand Down Expand Up @@ -990,7 +992,7 @@ extension Device {
#endif

#if os(iOS)
// MARK: - Apple Pencil
// MARK: Apple Pencil
extension Device {

/**
Expand Down Expand Up @@ -1031,7 +1033,7 @@ extension Device {
#endif

#if os(iOS)
// MARK: - Cameras
// MARK: Cameras
extension Device {

public enum CameraType {
Expand Down

0 comments on commit 3e39fca

Please sign in to comment.