[ios, macos] cleaned up filters [ios] added a filter example [ios] utest filters [ios, macos] nested predicates [ios] refactored [ios] filter -> NSPredicate [ios] fixed mbgl::Any/AllFilter -> NSPredicate [ios] translate nested mbgl::NotIn filters [ios] cleanup and added more utests [ios] fixed a bug in the None filter conversion and improved utests [ios, macos] doc [macos] added missing category [ios, macos] additional utests [ios, macos] updated documentation
14 lines
258 B
Objective-C
14 lines
258 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import "NSExpression+MGLAdditions.h"
|
|
#include <mbgl/style/filter.hpp>
|
|
|
|
@interface NSPredicate (MGLAdditions)
|
|
|
|
- (mbgl::style::Filter)mgl_filter;
|
|
|
|
+ (instancetype)mgl_predicateWithFilter:(mbgl::style::Filter)filter;
|
|
|
|
@end
|
|
|