Skip to content

Commit

Permalink
Add objc info in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Mateoaea committed Feb 15, 2019
1 parent 7e118cc commit fc6313d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ With CameraKit you are able to effortlessly do the following:
- 🔍 Built-in pinch to zoom.
- 📸 Built-in flash toggle for both photos and videos.
- 🤳 Built-in camera position toggle.
- 🖥 Objective-C compatible.

## Sponsored By
<a href="https://www.expensify.com/"><img alt="Expensify" src=".repo/gh-readme-expensify-logo.svg" height="45px" width="375px" align="center"></a>
Expand Down Expand Up @@ -162,6 +163,10 @@ You can get the current record status via the `isRecording` property to determin
| `togglePosition()` | `record(url: URL? = nil, _ callback: @escaping RecordCallback)` |
| `capture(_ callback: @escaping CaptureCallback)` | `stopRecording()` |

# Import into Objective-C projects

Go to `Project Settings`, `Build Settings`, `Always Embed Swift Standard Libraries` and set the value to `Yes`.

# Creating custom sessions

CameraKit can be splitted into 2 main pieces: preview and sessions. The sessions are made by extending the base `CKSession` class. If you want a custom session you can extend the `CKSession` class and use its static helpers to initialize yours. Or you can also extend the built-in sessions and add custom logic.
Expand Down

0 comments on commit fc6313d

Please sign in to comment.