Skip to content

Commit

Permalink
Access modifiers fixes
Browse files Browse the repository at this point in the history
* Default implementation & helpful functions are public now
  • Loading branch information
mozharovsky committed Jul 21, 2016
1 parent a6054ee commit 964cc3f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Source/Capturable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public protocol Capturable: class {

// MARK: - Default implementations

extension Capturable {
public extension Capturable {

///
/// Provides all necessary preparations for
Expand Down Expand Up @@ -334,7 +334,7 @@ extension Capturable {

// MARK: - Internal helpers

extension Capturable {
internal extension Capturable {
///
/// Returns `true` if a user has given access to the camera.
///
Expand Down
4 changes: 2 additions & 2 deletions Source/Cropable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public protocol Cropable {

// MARK: - Default implementations for UIImageView childs

extension Cropable where ChildView == UIImageView {
public extension Cropable where ChildView == UIImageView {
///
/// Adds a cropable view with its content to the provided
/// container view.
Expand Down Expand Up @@ -159,7 +159,7 @@ extension Cropable where ChildView == UIImageView {

// MARK: - Default implementations

extension Cropable {
public extension Cropable {
/// Top offset for cropable content. If your `cropView`
/// is constrained with `UINavigationBar` or anything on
/// the top, set this offset so the content can be properly
Expand Down
2 changes: 1 addition & 1 deletion Source/CropableScrollViewDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class CropableScrollViewDelegate<T: Cropable where T: AnyObject>: N

private var panning = false

init(cropable: T) {
public init(cropable: T) {
self.cropable = cropable
}

Expand Down
4 changes: 2 additions & 2 deletions Source/FloatingViewLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public protocol FloatingViewLayout: class {
// MARK: - Helpers
//

extension FloatingViewLayout {
internal extension FloatingViewLayout {
func direction(withVelocity velocity: CGPoint, delta: CGFloat) -> Direction {
if velocity.y < 0 {
return Direction.Up(delta: delta)
Expand Down Expand Up @@ -199,7 +199,7 @@ extension FloatingViewLayout {
// MARK: - Default implmenetations
//

extension FloatingViewLayout {
public extension FloatingViewLayout {
// Default implementation. It is not required to implement this property.
var animationCompletion: ((Bool) -> Void)? {
return nil
Expand Down
6 changes: 3 additions & 3 deletions Source/PhotoCachable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public protocol PhotoCachable: class {

// MARK: - Default implementations

extension PhotoCachable {
public extension PhotoCachable {
///
/// Resets all cached assets.
///
Expand Down Expand Up @@ -93,9 +93,9 @@ extension PhotoCachable {
}
}

// MARK: - Helpers
// MARK: - Util methods

extension PhotoCachable {
public extension PhotoCachable {
///
/// Collects assets with provided index paths in the fetch result.
///
Expand Down
2 changes: 1 addition & 1 deletion Source/PhotoCapturable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public protocol PhotoCapturable: Capturable {

// MARK: - Default implementations

extension PhotoCapturable {
public extension PhotoCapturable {

///
/// Captures a still image from the current input.
Expand Down

0 comments on commit 964cc3f

Please sign in to comment.