Replies: 2 comments
-
use expression-related things is a risk now. They will generate warnings if you use NSpredicate(format: or NSExpression(format: and even crash in some situations, I think we need a pan to refactor the whole expression wrap on the iOS side, just like Mapbox doing now. The only concern is that Mapbox implements the expression via Swift, If we want to migrate to Swift on the iOS side and then build an objective-c wrap is it reasonable? |
Beta Was this translation helpful? Give feedback.
-
There is a workaround here |
Beta Was this translation helpful? Give feedback.
-
My app crashes after using the layer.predicate method for example
mylayer.predicate = NSPredicate(format: "%K != %@", "mykey", "")
The app can continue to work. and the display of lines and map movements. Still able to display normally But when I zoomed in, somewhere my app crashed. But when zooming in to areas where the lines are less dense, Maybe it can still work.
example code
Beta Was this translation helpful? Give feedback.
All reactions