Repository navigation
[ios, macos] Make NSPredicate+MGLAdditions public. - #11810
Conversation
julianrex
left a comment
There was a problem hiding this comment.
Not built or tested - but looks good.
1ec5
left a comment
There was a problem hiding this comment.
In addition to the comments below, please add a blurb to the iOS and macOS changelogs about adding a new -[NSPredicate(MGLAdditions) predicateWithMGLJSONObject:] method and NSExpression.mgl_jsonExpressionObject property.
There was a problem hiding this comment.
Add documentation for the category and its members so that they show up in the jazzy docset. Also add a mark pragma like the one in NSExpression(MGLAdditions) – it’ll show up as a section heading in the jazzy docset.
There was a problem hiding this comment.
Rename this category to MGLExpressionAdditions, for consistency with the other categories that back custom functions.
There was a problem hiding this comment.
Rename this category to MGLAdditions, for consistency with NSExpression(MGLAdditions).
There was a problem hiding this comment.
For consistency with #11666, rename this method to +predicateWithMGLJSONObject: in Objective-C and init(mglJSONObject:) in Swift.
c968920 to
35247e1
Compare
1ec5
left a comment
There was a problem hiding this comment.
Looks good. Just a couple minor documentation issues below.
| @param object A Foundation object deserialized from JSON data, for example | ||
| using `NSJSONSerialization`. | ||
| @return An initialized predicate equivalent to `object`, suitable for use as | ||
| the value of a style layer attribute or vector data filter. |
There was a problem hiding this comment.
An initialized predicate equivalent to
object, suitable for use with theMGLVectorStyleLayer.predicateproperty.
| See the | ||
| “[Predicates and Expressions](../predicates-and-expressions.html)” | ||
| guide for a correspondence of operators and types between the style | ||
| specification and the `NSExpression` representation used by this SDK. |
There was a problem hiding this comment.
Replace NSExpression with NSPredicate.
35247e1 to
cb784cd
Compare
cb784cd to
16f4a9d
Compare
Fixes #11751 depends on #11610 to land.