Skip to content

Getting error 'Attribute can only be applied to declarations, not types' #384

@vsiddharth-suki

Description

@vsiddharth-suki

public struct Iterator: @preconcurrency IteratorProtocol {

ViewInspector/Sources/ViewInspector/InspectableView+RandomAccessCollection.swift:11:30: error: attribute can only be applied to declarations, not types
public struct Iterator: @preconcurrency IteratorProtocol {
~^~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    more info neededThe progress is halted due to insufficient information

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions