Skip to content

Commit

Permalink
Address SwiftLint
Browse files Browse the repository at this point in the history
  • Loading branch information
quanshousio committed Aug 11, 2024
1 parent 9ad34a7 commit 93c1689
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 3 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ import PackageDescription

let package = Package(
name: "ToastUI",
platforms: [
.iOS(.v14), .tvOS(.v14), .watchOS(.v7), .macOS(.v11),
],
products: [
.library(name: "ToastUI", targets: ["ToastUI"]),
],
targets: [
.target(name: "ToastUI"),
]
platforms: [.iOS(.v14), .tvOS(.v14), .watchOS(.v7), .macOS(.v11)],
products: [.library(name: "ToastUI", targets: ["ToastUI"])],
targets: [.target(name: "ToastUI")]
)
4 changes: 2 additions & 2 deletions Sources/ToastUI/ToastViewBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct ToastViewIsPresentedBridge<Content>: UIViewControllerRepresentable where
let content: () -> Content

func makeUIViewController(context _: Context) -> ToastViewIsPresentedController<Content> {
let _ = isPresented // BUG: Need this for SwiftUI to update the view appropriately.
_ = isPresented // BUG: Need this for SwiftUI to update the view appropriately.
return ToastViewIsPresentedController()
}

Expand All @@ -41,7 +41,7 @@ struct ToastViewItemBridge<Item, Content>: UIViewControllerRepresentable
let content: (Item) -> Content

func makeUIViewController(context _: Context) -> ToastViewItemController<Item, Content> {
let _ = item // BUG: Need this for SwiftUI to update the view appropriately.
_ = item // BUG: Need this for SwiftUI to update the view appropriately.
return ToastViewItemController()
}

Expand Down
2 changes: 2 additions & 0 deletions Sources/ToastUI/ToastViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,5 @@ final class ToastViewItemController<Item, Content>: UIViewController
}
}
#endif

// swiftlint:enable function_body_length

0 comments on commit 93c1689

Please sign in to comment.