-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐞 Fix:
UniqueIdentifierSynthesizing. synthesizedStringID
- Loading branch information
1 parent
87bc0b9
commit 397a4f7
Showing
2 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// NSObject+Helpers.swift | ||
// react-native-ios-modal | ||
// | ||
// Created by Dominic Go on 9/27/24. | ||
// | ||
|
||
import Foundation | ||
|
||
|
||
public extension NSObject { | ||
var classNameTruncated: String { | ||
let fullClassName = self.className; | ||
let classNameComponents = fullClassName.components(separatedBy: "."); | ||
|
||
guard let className = classNameComponents.last else { | ||
return fullClassName; | ||
}; | ||
|
||
return className; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters