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

[ios, macos] Runtime styling cleanup and fixes. - #5980

Merged
frederoni merged 9 commits into
masterfrom
fred-runtime-styling-tw
Aug 18, 2016
Merged

frederoni merged 9 commits into
masterfrom
fred-runtime-styling-tw

Conversation

@frederoni

@frederoni frederoni commented Aug 12, 2016 •

Copy link
Copy Markdown
Contributor

This PR will be used to clean up runtime styling. Issues that involves a bit more work and complexity will be handled in separate PRs.

Checklist:

@frederoni frederoni added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold labels Aug 12, 2016
@frederoni frederoni added this to the ios-v3.4.0 milestone Aug 12, 2016
@frederoni
frederoni force-pushed the fred-runtime-styling-tw branch 3 times, most recently from a852b17 to 2291fd8 Compare August 16, 2016 09:46
@frederoni frederoni added ✓ ready for review and removed ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold labels Aug 16, 2016
@frederoni
frederoni force-pushed the fred-runtime-styling-tw branch 2 times, most recently from 97a9b8c to 5fa22f6 Compare August 17, 2016 10:00
Comment thread platform/ios/src/MGLMapView_Private.h Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a better place to put these conversion methods?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not currently. We do need a good home for non-geometric utility functions. The macOS version of MGLMapView.mm also defines an MGLDurationInSeconds(). It’d be great if we could replace them with a single method somewhere in platform/darwin/src/. Considering that NSTimeInterval is defined in NSDate.h, how about adding a private NSDate+MGLAdditions.h that just contains this method for now but could in the future have a category on NSDate?

@frederoni
frederoni force-pushed the fred-runtime-styling-tw branch from 5fa22f6 to 23c6b9a Compare August 18, 2016 08:34
Comment thread platform/ios/src/MGLMapView.h Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: also drop the - here and on -addStyleClass: and -removeStyleClass:.

@frederoni
frederoni force-pushed the fred-runtime-styling-tw branch 2 times, most recently from b862f10 to 5f40464 Compare August 18, 2016 12:08
@frederoni
frederoni force-pushed the fred-runtime-styling-tw branch from 5f40464 to a202941 Compare August 18, 2016 12:26
@frederoni
frederoni merged commit a202941 into master Aug 18, 2016
@1ec5
1ec5 deleted the fred-runtime-styling-tw branch August 21, 2016 23:00
@1ec5

1ec5 commented Aug 21, 2016

Copy link
Copy Markdown
Contributor

Reopened #5995 because it wasn’t included in this PR.

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