Skip to content

Commit

Permalink
⭐️ Impl: UniqueIdentifierSynthesizing.rawMemoryAddressAsString
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 28, 2024
1 parent 8a01e80 commit a0fe50c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ios/Temp/UniqueIdentifierSynthesizing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import DGSwiftUtilities


public protocol UniqueIdentifierSynthesizing: AnyObject {

var synthesizedIntID: UInt64 { get };

var synthesizedUUID: UUID { get };
Expand All @@ -19,6 +19,13 @@ public protocol UniqueIdentifierSynthesizing: AnyObject {
// MARK: - UniqueIdentifierSynthesizing+Helpers
// --------------------------------------------

public extension UniqueIdentifierSynthesizing {

var rawMemoryAddressAsString: String {
String(describing: Unmanaged.passUnretained(self).toOpaque());
};
};

public extension UniqueIdentifierSynthesizing where Self: NSObject {

var synthesizedStringID: String {
Expand Down

0 comments on commit a0fe50c

Please sign in to comment.