Skip to content

Incomplete type information for SwiftUI.FeedbackGenerator.Body #5

@Kyle-Ye

Description

@Kyle-Ye

Expected behavior

The correct type for SwiftUI.FeedbackGenerator.Body should be

ModifiedContent<
	ModifiedContent<
		ModifiedContent<
			Content,
			_TaskValueModifier<T>
		>
		_ValueActionModifier2
	>
	_AppearanceActionModifier
>

Current behavior

RuntimeViewer:

extension SwiftUI.FeedbackGenerator: SwiftUI.ViewModifier {
    typealias Body = SwiftUI.ModifiedContent<SwiftUI._ViewModifier_Content<SwiftUI.FeedbackGenerator<A>>, SwiftUI._TaskValueModifier<SwiftUI.SensoryFeedback>>A
}

swift-section:

extension SwiftUI.FeedbackGenerator: SwiftUI.ViewModifier {
    typealias Body = <<opaque return type of (extension in SwiftUI):SwiftUI.View.onChange<A where A1: Swift.Equatable>(of: A1, initial: Swift.Bool, _: (A1, A1) -> ()) -> some>>.0
}

Update: new version of swift-section already fixed it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions