diff options
author | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-05-04 13:46:48 -0400 |
---|---|---|
committer | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-05-04 13:48:09 -0400 |
commit | f8ad4fe45656e13b212397a439389cdcf046da6e (patch) | |
tree | ff872d83379abb75912d8af5623f19ec3baca448 | |
parent | 40164edaee30c8f0d5642170765de337e96569d1 (diff) | |
download | qtlocation-mapboxgl-f8ad4fe45656e13b212397a439389cdcf046da6e.tar.gz |
[ios, macos] Update predicates and expressions guide to reflect cast changes.
-rw-r--r-- | platform/darwin/docs/guides/Predicates and Expressions.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/darwin/docs/guides/Predicates and Expressions.md b/platform/darwin/docs/guides/Predicates and Expressions.md index c3b3d39a52..a9cd87a70e 100644 --- a/platform/darwin/docs/guides/Predicates and Expressions.md +++ b/platform/darwin/docs/guides/Predicates and Expressions.md @@ -70,6 +70,8 @@ path or variable into a matching type: * To cast a value to a number, use `CAST(key, 'NSNumber')`. * To cast a value to a string, use `CAST(key, 'NSString')`. +* To cast a value to a color, use `CAST(key, 'UIColor')`. +* To cast a value to an rgba color, use `CAST(noindex(var), 'NSArray')`. For details about the predicate format string syntax, consult the “Predicate Format String Syntax” chapter of the |