Skip to content

Commit fc5b918

Browse files
committed
Feat: NSObject extension 추가
- {class이름}.className을 통해 클래스의 이름을 스트링으로 사용할 수 있도록 구현
1 parent f2367fb commit fc5b918

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// NSObject+.swift
3+
// Presentation
4+
//
5+
// Created by 이동현 on 7/20/25.
6+
//
7+
8+
import Foundation
9+
10+
public extension NSObject {
11+
var className: String {
12+
return String(describing: type(of: self))
13+
}
14+
15+
class var className: String {
16+
return String(describing: self)
17+
}
18+
}

0 commit comments

Comments
 (0)