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.

Support XIBs and storyboards on iOS #1070

Closed

Description

@1ec5

It’s relatively difficult to add an MGLMapView to a storyboard-based project. As expected, you can drag a UIView into a scene and set its custom class to “MGLMapView”. However, that just gets you a blank map. So you need to call [mapView setAccessToken:@"…"] at launch, and [mapView setStyleJSON:nil] sometime after that, but not too soon or you’ll hit #1014.

Basic support for XIBs and storyboards means:

After we get basic support, we can look at enhancing the IB workflow via #929.

Activity

  1. added
    iOS
    on Mar 23, 2015
  2. added this to the iOS Beta 2 milestone on Mar 23, 2015
  3. 1ec5 commented on Mar 30, 2015

    @1ec5
    ContributorAuthor

    We plan to distribute Mapbox GL via CocoaPods (#1030), which handles repackaging the library as a dynamic framework when use_frameworks! is specified (required for Swift usage). That unblocks #929, so we could in principle ship with an inspectable and designable MGLMapView today. However, we need accessToken to be KVO-compliant and trigger a refresh (without hitting #1147) in order to provide the right developer experience.

  4. self-assigned this
    on Mar 30, 2015
  5. 1ec5 commented on Mar 30, 2015

    @1ec5
    ContributorAuthor

    This is definitely blocked on #1147.

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

Metadata

Metadata

Assignees

Labels

iOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions