Skip to content

Value of type error #5

@agent134ssa

Description

@agent134ssa

Hi.
I am trying to run GridViewExample. When I try to run it, swift compile error appears in the function visibleCells it says has no member 'compactMap'. I am using Xcode 9.2.

public func visibleCells() -> [T] {
return currentInfo.visibleObject().values.compactMap { $0.view as? T }
}

Thank you.
screen shot 2018-11-15 at 11 24 18 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions