Skip to content

Commit

Permalink
Merge release/v1.4.0 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmitchell committed Apr 4, 2020
2 parents 57f4fd1 + cc97f18 commit 8242721
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ThunderTable.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@
INFOPLIST_FILE = ThunderTableDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.3sidedcube.ThunderTableDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -613,6 +614,7 @@
INFOPLIST_FILE = ThunderTableDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.3sidedcube.ThunderTableDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -752,7 +754,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 1.3.7;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.threesidedcube.ThunderTable;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -777,7 +779,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 1.3.7;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.threesidedcube.ThunderTable;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
7 changes: 6 additions & 1 deletion ThunderTable/ImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ public extension UIImageView {
/// - parameter withPlaceholder: The image to use as a placeholder for the loading image (Optional)
/// - parameter imageSize: The size of the final image which will be loaded from the URL
/// - parameter animated: Whether the loading image should animate in when retrieved
/// - parameter callCompletionForIntermediaryLoads: Whether `completion` should be called for intermediary image loads
/// - parameter completion: A closure which will be called upon the completed load of the image.
func set(imageURLS: [URL]?, withPlaceholder: UIImage?, imageSize: CGSize = CGSize.zero, animated: Bool = false, completion: ImageViewSetImageURLCompletion?) {
func set(imageURLS: [URL]?, withPlaceholder: UIImage?, imageSize: CGSize = CGSize.zero, animated: Bool = false, callCompletionForIntermediaryLoads: Bool = false, completion: ImageViewSetImageURLCompletion?) {

finalSize = imageSize
cancelCurrentRequestOperations()
Expand Down Expand Up @@ -200,6 +201,10 @@ public extension UIImageView {
welf.imageURLS = nil
welf.completion?(image, error)
welf.completion = nil

} else if callCompletionForIntermediaryLoads {

welf.completion?(image, error)
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion ThunderTableDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down

0 comments on commit 8242721

Please sign in to comment.