From a0fe50cbe8890855201be3b50b1b5f7ab44dde6f Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Sun, 29 Sep 2024 06:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=EF=B8=8F=20Impl:=20`UniqueIdentifierS?= =?UTF-8?q?ynthesizing.rawMemoryAddressAsString`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Temp/UniqueIdentifierSynthesizing.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ios/Temp/UniqueIdentifierSynthesizing.swift b/ios/Temp/UniqueIdentifierSynthesizing.swift index fbc9d7dd..f5e9dc9b 100644 --- a/ios/Temp/UniqueIdentifierSynthesizing.swift +++ b/ios/Temp/UniqueIdentifierSynthesizing.swift @@ -10,7 +10,7 @@ import DGSwiftUtilities public protocol UniqueIdentifierSynthesizing: AnyObject { - + var synthesizedIntID: UInt64 { get }; var synthesizedUUID: UUID { get }; @@ -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 {