<commit_before># RuntimeKit

![](https://img.shields.io/badge/Swift-3.1-orange.svg)
![CocoaPods](https://img.shields.io/cocoapods/v/RuntimeKit.svg)
![CocoaPods](https://img.shields.io/cocoapods/l/RuntimeKit.svg)

RuntimeKit is a Swift library for accessing the Objective-C runtime.
In addition to providing wrappers around features like method swizzling or associated values, it also provides some type safety.

As of right now, RuntimeKit supports method swizzling, replacing a methods implementation with a block, setting associated objects and looking up an object's properties. More features will be added over time.


## Installation

**CocoaPods** (recommended)

```
pod 'RuntimeKit'
```

**Build from source**

Just copy everything in `RuntimeKit/Sources` into your Xcode project


## Features:
1. [Method swizzling](#method-swizzling)
2. [Associated objects](#associated-objects)<commit_msg>Added a travis badge<commit_after># RuntimeKit

[![Build Status](https://travis-ci.org/lukaskollmer/RuntimeKit.svg?branch=master)](https://travis-ci.org/lukaskollmer/RuntimeKit)
![](https://img.shields.io/badge/Swift-3.1-orange.svg)
![CocoaPods](https://img.shields.io/cocoapods/v/RuntimeKit.svg)
![CocoaPods](https://img.shields.io/cocoapods/l/RuntimeKit.svg)

RuntimeKit is a Swift library for accessing the Objective-C runtime.
In addition to providing wrappers around features like method swizzling or associated values, it also provides some type safety.

As of right now, RuntimeKit supports method swizzling, replacing a methods implementation with a block, setting associated objects and looking up an object's properties. More features will be added over time.


## Installation

**CocoaPods** (recommended)

```
pod 'RuntimeKit'
```

**Build from source**

Just copy everything in `RuntimeKit/Sources` into your Xcode project


## Features:
1. [Method swizzling](#method-swizzling)
2. [Associated objects](#associated-objects)
{'fraction_non_alphanumeric': 0.11472868217054263, 'fraction_numerical': 0.004134366925064599, 'mean_word_length': 5.518518518518518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1710262', 'n_tokens_mistral': 621, 'n_tokens_neox': 577, 'n_words': 182}