Skip to content

Commit

Permalink
Merge pull request #289 from zooxop/fix/warning
Browse files Browse the repository at this point in the history
Modified the return to a wildcard pattern.
  • Loading branch information
nalexn committed Jan 28, 2024
2 parents 6731928 + be3fcf4 commit ba21bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ViewInspector/SwiftUI/PopoverContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extension ViewType.PopoverContent: SingleViewContent {
extension ViewType.WrappedContent: SingleViewContent {

static func child(_ content: Content) throws -> Content {
let closure = try Inspector.attribute(label: "popoverContent", value: content.view)
let _ = try Inspector.attribute(label: "popoverContent", value: content.view)
// Closure's type is () -> 'consumer view type', which we cannot
// cast to without asking for the type from the caller side.
// Discontinuing support for now
Expand Down

0 comments on commit ba21bf8

Please sign in to comment.