MaggioGuid

Objective-C

@interface MaggioGuid : NSObject <NSCopying>

+(nullable instancetype) guidWithString:(nullable NSString *)string;
+(instancetype) guidWithUUID:(NSUUID *)uuid;

/// The wrapped UUID value.
@property (nonatomic, readonly) NSUUID *uuid;

/// Returns the stringified UUID as returned by \c UUIDString on \c NSUUID.
@property (nonatomic, readonly) NSString *UUIDString;

/// Returns lowercased guid string for backward compatibility. You should use \c uuid for equality comparisons.
@property (nonatomic, readonly) NSString *string;

@end

Swift

class MaggioGuid : NSObject, NSCopying, @unchecked Sendable

Undocumented

  • Undocumented

    Declaration

    Objective-C

    +(nullable instancetype) guidWithString:(nullable NSString *)string;

    Swift

    convenience init?(string: String?)
  • Undocumented

    Declaration

    Objective-C

    +(instancetype) guidWithUUID:(NSUUID *)uuid;

    Swift

    convenience init(uuid: UUID)
  • The wrapped UUID value.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUUID *_Nonnull uuid;

    Swift

    var uuid: UUID { get }
  • Returns the stringified UUID as returned by \c UUIDString on \c NSUUID.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull UUIDString;

    Swift

    var uuidString: String { get }
  • Returns lowercased guid string for backward compatibility. You should use \c uuid for equality comparisons.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull string;

    Swift

    var string: String { get }