Code Monkey home page Code Monkey logo

littleowl's Introduction

LittleOwl

Build Status Cocoa Pod Carthage compatible Language: Swift codecov Platform License: MIT Author: carlos21

Requirements

  • Swift 3.2 or later
  • iOS 8.0 or later
  • Insert github "DarkySwift/LittleOwl" ~> 1.0 to your Cartfile.
  • Run carthage update.
  • Link your app with LittleOwl in Carthage/Build.
  • Insert pod 'LittleOwl', '~> 1.0' to your Podfile.
  • Run pod install.

Prerequisites:

As of iOS 10, Apple requires the additon of the NSCameraUsageDescription and NSMicrophoneUsageDescription strings to the info.plist of your application. Example:

<key>NSCameraUsageDescription</key>
<string>To Take Photos and Video</string>
<key>NSMicrophoneUsageDescription</key>
<string>To Record Audio With Video</string>

Getting Started:

If you install SwiftyCam from Cocoapods, be sure to import the module into your View Controller:

import LittleOwl

LittleOwl is a drop-in convenience framework. To create a Camera instance, just add this:

let cameraController = CameraViewController(type: .video(10))
cameraController.didSelectVideo = { url in
    cameraController.dismiss(animated: true, completion: nil)
}

or

let cameraController = CameraViewController(type: .photo)
cameraController.didSelectPhoto = { image in
    cameraController.dismiss(animated: true, completion: nil)
}

Image 1 Image 2

That is all that is required to setup the AVSession for photo and video capture. LittleOwl will prompt the user for permission to use the camera/microphone, and configure both the device inputs and outputs.

Author

Carlos Duclós

License

LittleOwl is available under the MIT license. See the LICENSE file for more info.

littleowl's People

Contributors

carlos21 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.