Skip to content

Error in UIView+Utils.swift #2

Open

Description

@perlguy99

With Xcode 10.2, I am getting the following error when trying to build...

Cannot convert return expression of type 'DropFirstSequence<UnfoldSequence<UIView, (UIView?, Bool)>>' to return type 'AnySequence<UIView>'

This is happening on line 14 of Extensions.swift

Activity

  1. anton-plebanovich commented on Mar 27, 2019

    @anton-plebanovich
    Collaborator

    Thanks for report. I'm on it.

  2. perlguy99 commented on Mar 27, 2019

    @perlguy99
    Author
  3. anton-plebanovich commented on Mar 27, 2019

    @anton-plebanovich
    Collaborator

    @perlguy99 With Swift 5.0 .dropFirst() operator now returns different tupe.
    https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_release_notes/swift_5_release_notes_for_xcode_10_2

    The Sequence protocol no longer has a SubSequence associated type. Methods on Sequence that previously returned SubSequence now return concrete types. For example, suffix(_:) now returns an Array. (45761817)

  4. anton-plebanovich commented on Mar 27, 2019

    @anton-plebanovich
    Collaborator

    Version 4.0.0 was pushed. I was able to compile with Swift 5.0.0 and Xcode 10.2

  5. perlguy99 commented on Mar 27, 2019

    @perlguy99
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions