Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWDG committed Jul 22, 2024
1 parent 3fd2795 commit b16a2f3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Sources/Inspect/Inspect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ import SwiftUI

// MARK: - Platform Definitions
#if os(macOS)
/// Current platform's view type
public typealias PlatformView = NSView
public typealias PlatformControl = NSControl
public typealias PlatformViewRepresentable = NSViewRepresentable

Check failure on line 21 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)

Check failure on line 21 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)
public typealias PlatformViewRepresentableContext = NSViewRepresentableContext

Check failure on line 22 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)

Check failure on line 22 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)
public typealias PlatformViewController = NSViewController

Check failure on line 23 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)

Check failure on line 23 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)
public typealias PlatformVCRepresentable = NSViewControllerRepresentable

Check failure on line 24 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)

Check failure on line 24 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)
public typealias PlatformVCRepresentableContext = NSViewControllerRepresentableContext

Check failure on line 25 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)

Check failure on line 25 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)
#else
/// Current platform's view type
public typealias PlatformView = UIView
public typealias PlatformControl = UIControl
public typealias PlatformViewRepresentable = UIViewRepresentable

Check failure on line 29 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)

Check failure on line 29 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)
public typealias PlatformViewRepresentableContext = UIViewRepresentableContext

Check failure on line 30 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)

Check failure on line 30 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)
public typealias PlatformViewController = UIViewController

Check failure on line 31 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)

Check failure on line 31 in Sources/Inspect/Inspect.swift

View workflow job for this annotation

GitHub Actions / swiftlint

public declarations should be documented (missing_docs)
Expand Down Expand Up @@ -438,6 +438,10 @@ public struct InspectVC<TargetVCType: PlatformViewController>: PlatformVCReprese
}

extension View {
/// Inspect
///
/// - Parameter element: Element to inspect
/// - Parameter customizer: Element to modify
public func inspect<TargetView: PlatformView>(
_ element: TargetView.Type,
customizer: @escaping (TargetView) -> Void
Expand All @@ -453,6 +457,10 @@ extension View {
)
}

/// Inspect View Controller
///
/// - Parameter viewControllerSelector: View controller selector
/// - Parameter customizer: Element to modify
public func inspect<TargetView: PlatformViewController>(
viewControllerSelector: @escaping (PlatformViewController) -> TargetView?,
customizer: @escaping (PlatformViewController) -> Void
Expand Down

0 comments on commit b16a2f3

Please sign in to comment.