Commit Graph

576 Commits

Author SHA1 Message Date
DreamPiggy 634f8a8e07 Update the readme with different indicator and transition API for WebImage/AnimatedImage 2019-10-27 19:58:43 +08:00
DreamPiggy 7b5f7b88f4 Add the transition convenient API to simply usage, the transition now works as SwiftUI standard UI component, .fade transition is only fade in 2019-10-27 19:47:08 +08:00
DreamPiggy b62cf93d8b
Merge pull request #31 from SDWebImage/feature_convenient_indicator_API
Refactory the indicator API on WebImage, using the same design pattern like SwiftUI, return some View
2019-10-27 17:28:31 +08:00
DreamPiggy 25304b6663 Fix the progerss indicator width on macOS. After we use the new solution for indicator 2019-10-27 17:01:49 +08:00
DreamPiggy 697dc8b2bb Update the readme with indicator code 2019-10-27 16:36:22 +08:00
DreamPiggy ab6d78a407 Using the SwiftUI view modifer design pattern, to re-create indicator API. Now it will rerturn some View instead of WebImage 2019-10-27 16:16:29 +08:00
DreamPiggy fa6907fe1f Add one convenient method on WebImage to associated indicator with view builder block 2019-10-27 14:42:07 +08:00
DreamPiggy bd6a9a9bf0
Merge pull request #30 from SDWebImage/bufix_animated_image_macOS
Fix that AnimatedImage on macOS can not restart animation after first stop
2019-10-27 05:05:23 +08:00
DreamPiggy 01c68e1b18 Fix that AnimatedImage on macOS can not restart animation after first stop, because there are always a new set image method call 2019-10-27 04:37:53 +08:00
DreamPiggy 51f3595c8f Bump version to 0.5.2 2019-10-27 03:45:36 +08:00
DreamPiggy ad47b58a1a cancel image load if there are pending url request on AnimatedImage 2019-10-27 03:41:47 +08:00
DreamPiggy 7d4030a1e4
Merge pull request #29 from SDWebImage/bugfix_watchOS_animatedimage_stop_when_disappear
Fix that AnimatedImage on watchOS, does not stop animating when disappear and cause performance issue
2019-10-27 03:04:52 +08:00
DreamPiggy 5582b337e2 Fix the issue that on watchOS, AnimatedImage animating control does not take effect issue 2019-10-27 03:02:18 +08:00
DreamPiggy 281e5420b9 Fix the issue that on watchOS, AnimatedImage when disappear, the CGImage decoding and animation does not stop issue. Increase performance 2019-10-27 03:02:18 +08:00
DreamPiggy d9c1bebf52 Bump version to 0.5.1 2019-10-26 17:47:34 +08:00
DreamPiggy 3d41a65555
Merge pull request #28 from SDWebImage/feature_indicator_convenience
Supports indicator with style and  convenience methods
2019-10-26 17:46:39 +08:00
DreamPiggy 82fa9baa1f Add style and convenience methods for activity indicator and progress indicator 2019-10-26 16:27:33 +08:00
DreamPiggy cf1721d988 Change the indicator method to access optionall value 2019-10-26 15:51:04 +08:00
DreamPiggy d89ccbba50 Bump version to 0.5.0 2019-10-26 05:11:17 +08:00
DreamPiggy 742d36adae Fix the issues when using progress indicator, the width is always the image size but not its intrinsicContentSize 2019-10-26 05:08:01 +08:00
DreamPiggy f09878b53c
Merge pull request #27 from SDWebImage/feature_animated_image_view_event
Feature: Supports coordinate with native UIKit/AppKit view
2019-10-26 05:00:56 +08:00
DreamPiggy 0bd0006c66 Fix the bug that cause tvOS compile issues 2019-10-26 04:45:16 +08:00
DreamPiggy 22d5973ce5 Update the readme about coordinator 2019-10-26 04:42:53 +08:00
DreamPiggy b841326bd7 Add support for advacend usage to get the native UIView/NSView life cycle for AnimatedImage 2019-10-26 04:39:52 +08:00
DreamPiggy 6dc000275d
Merge pull request #26 from SDWebImage/feature_indicator_transition
Feature: Support indicator and transition on `WebImage/AnimatedImage`
2019-10-26 04:36:30 +08:00
DreamPiggy 63b6da1d5e Changing the indicator API to use the dot syntax, instead of that closure syntax, which is more convenient and swifty 2019-10-26 04:36:00 +08:00
DreamPiggy 896627d381 Update the readme with indicator and transition 2019-10-26 03:47:28 +08:00
DreamPiggy 5bcdaf697d Fix the issue when image load success, some bad-written indicator will still exist. Now we remove all the view when finished. Fix the example 2019-10-26 01:26:47 +08:00
DreamPiggy 057eb272d2 Add gitignore to that Podfile.lock 2019-10-26 00:26:03 +08:00
DreamPiggy 59d233d6b1 Try to workaround Apple Watch's issues about that runtime warning, other platform does not have this issue 2019-10-26 00:12:59 +08:00
DreamPiggy 47fc670e96 Fix the watchOS platform compile issues 2019-10-25 23:59:55 +08:00
DreamPiggy 40c5644569 Add activity indicator implementation as well, using UIProgressView/NSProgressIndicator 2019-10-25 22:55:19 +08:00
DreamPiggy 6a2eb0264a Add support for WebImage to use indicator. Using protocol and struct based solution, and with SwiftUI Binding for isAnimating and progress 2019-10-25 21:50:45 +08:00
DreamPiggy cbe282b69c Add support for AnimatedImage to load indicator and transition, by using SDWebImage's already supported features 2019-10-25 14:55:50 +08:00
DreamPiggy c99f5c6474 Bump version to 0.4.2 2019-10-24 12:40:46 +08:00
DreamPiggy ee8ccc3840
Merge pull request #24 from SDWebImage/performance_avoid_multiple_query
Performance enhancement to WebImage/AnimatedImage, to avoid extra query for SDWebImage
2019-10-24 12:39:38 +08:00
DreamPiggy cbf42786f6 Don't need to setNeedsDisplay on SwiftUI representable, because SwfitUI will do this automatically 2019-10-24 12:28:01 +08:00
DreamPiggy 4c456e1850 Check the current operation and avoid extra query, this can increase performance, even SDWebImage does not query multiple times 2019-10-24 12:26:55 +08:00
DreamPiggy 4cf3d42f95 Update the reamde about the project description 2019-10-24 01:20:22 +08:00
DreamPiggy 3a0995b791 Update the readme demo code to use swifty syntax 2019-10-24 00:44:19 +08:00
DreamPiggy 2b1ac930c9 Bump version to 0.4.1 2019-10-22 23:22:29 +08:00
DreamPiggy 806e608599
Merge pull request #23 from SDWebImage/fix_placeholder_edit_mode
Fix issue when using placeholder and entering edit mode, the web url does not get requested
2019-10-22 23:16:49 +08:00
DreamPiggy 51627e9ac9 Fix issue when using placeholder and entering edit mode, the web url does not get requested 2019-10-22 22:50:35 +08:00
DreamPiggy 2f70ff7b69 Bump version to 0.4.0 2019-10-22 01:28:17 +08:00
DreamPiggy b8a1290248 Update the readme about AnimatedImage on watchOS 2019-10-22 01:26:43 +08:00
DreamPiggy 7e21926830
Support AnimatedImage on watchOS - Using WatchKit bridge (#22)
* Temp for watchOS AnimatedImage support, using massive private API, still contains small issues

* Update the hack for wacthKit experienment, fix the retain cycle issue that cause WKInterfaceImage not dealloc

* Solve the merge conflict and try again

* Add support for contentMode

* Fix the SDAnimatedImageInterface first appear shows empty issues

* Fix the scale factor support for SDAniamtedImageInterface

* Fix the compile issue on other platforms

* Stop animtiong when dismantle for watchOS AnimatedImage

* Fix the issue that stopAnimating does not stop :)

* Fix the warning because of Apple's bug

* Use macro to integrate the watchOS Animation solution

* Refactory code to fix that calling sd_setImage(with:) multiple times issues

* Support to custom loop count on watchOS AnimatedImage

* Fix the CocoaPods issues which does not have umbrella headers

* Update some of the documentations

* Try to solve the SwiftPM issue because it does not support mixed Objective-C and Swift code, really suck, Apple :)

* Fix travis CI script to only build Carthage. Swift cli build can not works on Objective-C code import syntax, but works on Xcode
2019-10-22 01:09:57 +08:00
DreamPiggy f056456f15 Bump version to 0.3.3 2019-10-20 16:23:25 +08:00
DreamPiggy 29c3049122
Merge pull request #21 from SDWebImage/fix_animated_image_potential_leak
Try to stop animating when dismantle UIViewRepresentable, fix the potential leak (bug ?) for AnmatedImage
2019-10-20 16:21:09 +08:00
DreamPiggy 96e64d602d Try to stop animating when dismantle UIViewRepresentable, fix the potential leak (bug ?) for AnmatedImage 2019-10-20 16:02:52 +08:00
DreamPiggy 944388f7a1 Update the readme about AnimatedImage and watchOS 2019-10-19 22:47:10 +08:00