Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added public protocol #8

Merged
merged 2 commits into from
Aug 10, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Source/ImagePickerController.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import UIKit

protocol ImagePickerDelegate {
@objc
public protocol ImagePickerDelegate {

func wrapperDidPress(images: [UIImage])
func doneButtonDidPress(images: [UIImage])
optional func wrapperDidPress(images: [UIImage])
optional func doneButtonDidPress(images: [UIImage])
}

public class ImagePickerController: UIViewController {
Expand Down Expand Up @@ -51,11 +52,10 @@ public class ImagePickerController: UIViewController {
return controller
}()

public var delegate: ImagePickerDelegate?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weaknesses sometimes may be our strengths. May be good idea to make it weak

var topSeparatorCenter: CGPoint!
var initialFrame: CGRect!
var delegate: ImagePickerDelegate?
var targetIndexPath: NSIndexPath!


public var doneButtonTitle: String? {
didSet {
Expand Down