Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Various class methods should be class properties #6778

Closed

Description

@1ec5

Various methods like +[MGLStyle streetsStyleURL], +[MGLAccountManager accessToken]/+[MGLAccountManager setAccessToken:], and +[MGLOfflineStorage sharedOfflineStorage] should be class properties with refined Swift names (#5178). Swift code would be able to say:

MGLOfflineStorage.shared.addPack(…

Once #6386 is fixed, Swift code would be able to say:

mapView.style = .streets

This change will require anyone compiling or building or using the SDK in another project to use Xcode 8.0 or above. It would also require a major version bump if we aren’t able to keep the old methods around as deprecated aliases.

/cc @friedbunny @frederoni

Activity

  1. added
    iOS
    macOS
    on Oct 21, 2016
  2. added this to the ios-future milestone on Oct 21, 2016
  3. friedbunny commented on Oct 21, 2016

    @friedbunny
    Contributor

    Agreed, this would be a good change.

  4. removed this from the ios-future milestone on Nov 15, 2017
  5. added this to the milestone on Apr 11, 2018
  6. added
    SEMVER-MAJOR
    on Apr 12, 2018
  7. 1ec5 commented on Apr 16, 2018

    @1ec5
    ContributorAuthor

    Fixed in #11674 on the release-boba branch for iOS map SDK v4.0.0 and macOS map SDK v0.7.0.

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

Metadata

Metadata

Assignees

Labels

SEMVER-MAJORiOSmacOSrefactor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions