RLMGeospatialBox
Objective-C
@interface RLMGeospatialBox : NSObject <RLMGeospatial>
Swift
class RLMGeospatialBox : NSObject, RLMGeospatial, @unchecked Sendable
A class that represents a rectangle, that can be used in a geospatial geoWithinquery.
Warning
This class cannot be persisted and can only be use within a geospatialgeoWithin query.
-
The bottom left corner of the rectangle.
Declaration
Objective-C
@property (strong, readonly) RLMGeospatialPoint *_Nonnull bottomLeft;Swift
var bottomLeft: RLMGeospatialPoint { get } -
The top right corner of the rectangle.
Declaration
Objective-C
@property (strong, readonly) RLMGeospatialPoint *_Nonnull topRight;Swift
var topRight: RLMGeospatialPoint { get } -
Initialize a
RLMGeospatialBox, with values for bottom left corner and top right corner.Declaration
Objective-C
- (nonnull instancetype) initWithBottomLeft:(nonnull RLMGeospatialPoint *)bottomLeft topRight:(nonnull RLMGeospatialPoint *)topRight;Swift
init(bottomLeft: RLMGeospatialPoint, topRight: RLMGeospatialPoint)Parameters
bottomLeftThe bottom left corner of the rectangle.
topRightThe top right corner of the rectangle.
View on GitHub
Install in Dash