MMKLocalizedValue

@interface MMKLocalizedValue : NSObject

A value respecting the device locale.

Summary

Class methods

+ (nonnull MMKLocalizedValue *)localizedValueWithValue:( double)value
                                                  text:(nonnull NSString *)text;

Properties

@property (nonatomic, readonly) double value;
Value in SI units for distance, speed and duration

@property (nonatomic, readonly, nonnull) NSString *text;
Localized text

Class methods

localizedValueWithValue:text:

+ (nonnull MMKLocalizedValue *)localizedValueWithValue:( double)value
                                                  text:(nonnull NSString *)text;


Properties

value

@property (nonatomic, readonly) double value;

Value in SI units for distance, speed and duration.


text

@property (nonatomic, readonly, nonnull) NSString *text;

Localized text. For example: "15 ft" or "42 km".