diff --git a/iphone/CoreApi/CoreApi/TrackRecorder/TrackRecordingInfo.h b/iphone/CoreApi/CoreApi/TrackRecorder/TrackRecordingInfo.h index 6289e90c0b..eaf1adb902 100644 --- a/iphone/CoreApi/CoreApi/TrackRecorder/TrackRecordingInfo.h +++ b/iphone/CoreApi/CoreApi/TrackRecorder/TrackRecordingInfo.h @@ -11,6 +11,8 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, readonly) NSString * maxElevation; @property (nonatomic, readonly) NSString * minElevation; ++ (TrackRecordingInfo *)emptyInfo; + @end NS_ASSUME_NONNULL_END diff --git a/iphone/CoreApi/CoreApi/TrackRecorder/TrackRecordingInfo.mm b/iphone/CoreApi/CoreApi/TrackRecorder/TrackRecordingInfo.mm index 1cdc8f1d00..88fb0a2c4e 100644 --- a/iphone/CoreApi/CoreApi/TrackRecorder/TrackRecordingInfo.mm +++ b/iphone/CoreApi/CoreApi/TrackRecorder/TrackRecordingInfo.mm @@ -5,6 +5,10 @@ @implementation TrackRecordingInfo ++ (TrackRecordingInfo *)emptyInfo { + return [[TrackRecordingInfo alloc] initWithGpsTrackInfo:GpsTrackInfo()]; +} + @end @implementation TrackRecordingInfo (Core)