Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Swift conflicts with deprecated protocol methods #262

Open

Description

@AvdLee

screen shot 2016-05-04 at 09 15 32

This result in an annoying error, which can be fixed by implementing the datasource callback as followed:

func lineGraph(graph: BEMSimpleLineGraphView, labelOnXAxisForIndex index: Int) -> String

Activity

  1. changed the title [-]Result of 'lineGraph(_:labelOnXAxisForIndex:)' has different optionality than required by protocol 'BEMSimpleLineGraphDelegate'[/-] [+]Swift conflicts with deprecated protocol methods[/+] on Jul 2, 2016
  2. Sam-Spencer commented on Jul 2, 2016

    @Sam-Spencer
    Collaborator

    It looks like the lineGraph:labelOnXAxisForIndex: was originally implemented on BEMSimpleLineGraphDelegate, but is now implemented on BEMSimpleLineGraphDataSource.

    This issue has been reported previously and is fixed on the feature branch in commit 83e8acd. Duplicate of #214.

    The feature branch has not yet been merged due to breaking changes that need to be tested and announced. If it's not too difficult for your workflow, I would recommend adopting these changes.

  3. added this to the Swift Rewrite milestone on May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions