> For the complete documentation index, see [llms.txt](https://frost.gitbook.io/iosbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frost.gitbook.io/iosbook/ios/ios-book/ios-object.md).

# \[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!
```
