# \[iOS] Object

## Get Property Names

```swift
extension ExampleClass {
    func getPropertyNames() -> [String] {
        return Mirror(reflecting: self).children.flatMap { $0.label }
    }
}
```

## Get Class Name

```swift
let className = NSStringFromClass(type(of: self)).split(separator: ".").last!
```
