William Miller

4pods

MMSCameraViewController

MMSCameraViewController provides the feature for presenting a camera to capture still images only. It leaves the features for presenting a confirmation screen and cropping tools to the application to support. Captured images are passed back to the presenting view controller through the delegate method.

License: MIT

  • Swift

MMSCropView

This class supports the feature for dragging a rectangle over a UIImageView and returning a UIImage with the pixels beneath the crop rectangle cropped from the underlying image.

License: MIT

  • Swift

MMSLayeredView

This class supports layering 1 or more views upon a background view. The user can resize, scale, and move each subview. They can select one of them for focus of operations and set a background view. The class supports a method to merge the background and subviews into an image. Use the pinch gesture to scale a subview; two finger drag gesture to move a subview; one finger drag gesture to size each dimension independently; and the tap gesture to change or remove focus. One application of this class would be to layer text over a photo and export the merged image to a file for submitting to your text messages or social networks. Another application would be for an application to add decorations to an image.

License: MIT

  • Swift

MMSProfileImagePicker

This class supports the feature for selecting an image from the photo library or camera for use as a profile image. Before final selection, it presents an edit screen with a circle overalay to resize and position the image for cropping in a square whose side is the length of the circle's diameter. An image can be submitted to the class for editing only. With this class you can emulate the features of the contact app's profile image selection.

License: MIT

  • Objective C