Filtering property of Realm Object

Is it possible to filter empty values with predicate? For example, I have a Realm object that looks like this:

class CropData: Object  {

@objc dynamic var cropper = ""
@objc dynamic var x: CGFloat = 0.0
@objc dynamic var y: CGFloat = 0.0
@objc dynamic var width : CGFloat = 0.0
@objc dynamic var height: CGFloat = 0.0
@objc dynamic var scaleX: CGFloat = 0.0
@objc dynamic var scaleY: CGFloat = 0.0
@objc dynamic var rotate: CGFloat = 0.0


override static func primaryKey() -> String? {
return "cropper"
}

Sample json data

{"cropper": "","x": "0","y": "0","width": "0","height": "0","scaleX": "0","scaleY": "0","rotate": "0"}

In this example, is there a way I can filter or ignore the empty "cropper" property?

2 answers