Commit Graph

23 Commits

Author SHA1 Message Date
DreamPiggy b3530ac956 Update the Example to make WebImage animatable by default 2021-02-19 14:58:03 +08:00
DreamPiggy 8fe43a55a7 Update the watchOS example to remove the hack to bind presentationMode, this is SwiftUI's bug and no workaround after 6.2... 2020-04-14 01:36:42 +08:00
DreamPiggy d9fd4726ea Using a more trick but smart solution for cases when WebImage is used during transition state, like scaleEffect. In this time, we does not trigger a actualy image loading, only query the memory cache for quickly placeholder 2020-03-31 17:24:47 +08:00
DreamPiggy 80e3137e3d Supports the `delayPlaceholder` for WebImage, update the Example to show the usage 2020-03-29 20:49:37 +08:00
DreamPiggy fccd4d42a6 Update the Example with tvOS, now it supports zooming and edit mode to delete image cells 2020-02-25 18:19:45 +08:00
DreamPiggy ee786bea91 Update the Example with watchOS's native indicator (thanks @JagCesar), simplify the code 2020-01-28 21:11:18 +08:00
DreamPiggy 8d74623282 Using the isAnimating arg, instead of protocol extention method to control the `WebImage`'s animation supports. This allows the binding control for animation as well 2020-01-26 20:54:24 +08:00
DreamPiggy 33c11b1cf0 Refactory the pure SwiftUI AnimatedImage implementation, right in the WebImage view.
Support watchOS as well :) Good SwiftUI
2019-11-30 01:37:28 +08:00
DreamPiggy ff7f74021e Implements the tvOS zoom using the play/pause button, update the readme 2019-11-17 01:48:22 +08:00
DreamPiggy d9ac91675b Support watchOS to use digital crown for the zooming image 2019-11-17 00:45:17 +08:00
DreamPiggy 5ca4965174 Example: add the pinch to zoom gesture on the detail page 2019-11-16 22:29:42 +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 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 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 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 3a0995b791 Update the readme demo code to use swifty syntax 2019-10-24 00:44:19 +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 a3b7bab17a Add demos for all of Apple Platforms and environment, including: iOS, macOS, macOS Catalyst, tvOS, watchOS
All of them using the same codebase
2019-10-05 19:55:42 +08:00
DreamPiggy 2587161069 Update the example to show how to use animation control with Binding 2019-10-05 15:43:52 +08:00
DreamPiggy f5b6d1e549 Update the demo with onProgress with the progressBar 2019-10-03 18:01:31 +08:00
DreamPiggy 4c72508f46 Add the example with macOS && iOS, using the List to preview WebImage and AnimatedImage view 2019-10-03 14:33:46 +08:00