Code Monkey home page Code Monkey logo

alcameraviewcontroller's Introduction

ALCameraViewController - Forked and Modified

A camera view controller with custom image picker and image cropping. See below for a summary of changes for this fork. For detailed changes see notes in source files.

cropper

Usage

Usage of this fork remains the same as the original but with more options. See the original README for details.

CocoaPod

Incorporate this fork into your project with CocoaPods. Add this line to your podfile:

pod 'KK-ALCameraViewController'

License

ALCameraViewController is available under the MIT license. See the LICENSE file for more info. This fork retains the same license.

Changes in this fork

Compiling

  • Updated to Swift 5
  • Updated for compatibility with iOS 13

Cropping

  • Image cropping now uses a rectangle with a specified aspect ratio rather than a square.
  • Added a center point circle in the middle of the crop rectangle that shows a touch point for moving the crop overlay. Previously, the user could move the crop overlay by dragging anywhere in the crop bounds, but this prevents pinch-resizing of the image except at the very edge. The resize corners still work as before.

Camera

  • Cleaned up the constraints for the flash, swap, and library buttons to work properly in both landscape orientations
  • Update the overlay constraints when rotating, so the overlay is properly positioned and sized
  • If the camera is not available (ie. on simulator), pop up an error rather than crashing
  • Hide flash button if the flash is not available (for instance, iPads)

Library Picker

  • Adding a pinch gesture to increase or decrease the number of columns shown, up to a min or max value

Confirm / Cropping View

  • Significant updates to the presentation of the image, scrolling, and cropping to fix inconsistencies especially when switching between portrait and landscape. See source file for full details.
  • Allow zooming in on the image during cropping
  • Rotate button to rotate the image 90 degrees clockwise on each press

Example

  • Added a tap gesture on the displayed image to allow re-cropping the image (illustrates bringing up the crop view directly)
  • The example was updated to show a crop aspect ratio of 1.2

alcameraviewcontroller's People

Contributors

alexlittlejohn avatar alexshepard avatar kkieffer avatar kotarcreative avatar nferruzzi avatar nodox avatar pavan-mm avatar pavan309 avatar s2ler avatar satre95 avatar sonnygauran avatar sridvijay avatar tokuriku avatar tulleb avatar wwt-mobile-team 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.