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

Develop #39

Merged
merged 3 commits into from
Nov 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion DKImagePickerController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "DKImagePickerController"
s.version = "2.3.5"
s.version = "2.3.7"
s.summary = "New version! It's a Facebook style Image Picker Controller by Swift."
s.homepage = "https://github.com/zhangao0086/DKImagePickerController"
s.license = { :type => "MIT", :file => "LICENSE" }
Expand Down
8 changes: 8 additions & 0 deletions DKImagePickerController/DKImagePickerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ public class DKAsset: NSObject {

/// It's a square thumbnail of the asset.
public private(set) var thumbnailImage: UIImage?

/// The asset's creation date.
public private(set) lazy var createDate: NSDate? = {
if let originalAsset = self.originalAsset {
return originalAsset.valueForProperty(ALAssetPropertyDate) as? NSDate
}
return nil
}()

/// When the asset was an image, it's false. Otherwise true.
public private(set) var isVideo: Bool = false
Expand Down
2 changes: 2 additions & 0 deletions DKImagePickerControllerDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@
INFOPLIST_FILE = DKImagePickerControllerDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.booksir.whistle.inhouse;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
};
Expand All @@ -434,6 +435,7 @@
INFOPLIST_FILE = DKImagePickerControllerDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.booksir.whistle.inhouse;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
};
Expand Down
2 changes: 1 addition & 1 deletion DKImagePickerControllerDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.zhangao.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down