Skip to content

Commit

Permalink
Merge pull request hyperoslo#42 from hyperoslo/fix/photos-struct
Browse files Browse the repository at this point in the history
Make Photos public
  • Loading branch information
RamonGilabert committed Oct 5, 2015
2 parents d072f88 + de315a6 commit 7939bbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Photos.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Photos
import AssetsLibrary

struct Photos {
public struct Photos {

static func fetch(completion: (assets: [PHAsset]) -> Void) {
public static func fetch(completion: (assets: [PHAsset]) -> Void) {
let fetchOptions = PHFetchOptions()
let authorizationStatus = ALAssetsLibrary.authorizationStatus()
var fetchResult: PHFetchResult?
Expand All @@ -28,7 +28,7 @@ struct Photos {
}
}

static func resolveAsset(asset: PHAsset, size: CGSize = CGSize(width: 720, height: 1280) ,completion: (image: UIImage?) -> Void) {
public static func resolveAsset(asset: PHAsset, size: CGSize = CGSize(width: 720, height: 1280) ,completion: (image: UIImage?) -> Void) {
let imageManager = PHImageManager.defaultManager()
let requestOptions = PHImageRequestOptions()

Expand All @@ -41,7 +41,7 @@ struct Photos {
}
}

static func resolveAssets(assets: [PHAsset], size: CGSize = CGSize(width: 720, height: 1280)) -> [UIImage] {
public static func resolveAssets(assets: [PHAsset], size: CGSize = CGSize(width: 720, height: 1280)) -> [UIImage] {
let imageManager = PHImageManager.defaultManager()
let requestOptions = PHImageRequestOptions()

Expand Down

0 comments on commit 7939bbf

Please sign in to comment.