Commit Graph

108 Commits

Author SHA1 Message Date
DreamPiggy fe54241aca Fix the example crash issue of ObjcClass, should check meta type but not instance type 2020-01-26 20:54:24 +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 f5e222dfc0 Add support to pass the `.customManager` context option to custom SDWebImageManager instance 2020-01-26 16:42:41 +08:00
DreamPiggy 1582e80e41 Update the demo to use tooltip on macOS, showing the native view coordinate 2019-12-02 20:13:23 +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 babb23ba11 Update the readme chapter of FAQ about NavigationLink as well, update the demo 2019-11-16 21:42:30 +08:00
DreamPiggy 28986d5477 Update the demo, use bitmap SVG/PDF form for WebImage compatible.
Update the readme with Customization Setup chapter
2019-11-15 21:16:32 +08:00
DreamPiggy d5fc42ccea Add the example to use SVG and PDF vector image 2019-11-13 22:59:52 +08:00
DreamPiggy bbdcd8db89 Update the demo and readme with new baseline JPEG images 2019-11-10 18:31:05 +08:00
DreamPiggy bec32bc095 Ignore the Podfile.lock file 2019-11-09 16:08:08 +08:00
DreamPiggy 43c8cb55f8 Upgrade the dependency of SDWebImage to 5.3 2019-11-06 23:05:55 +08:00
DreamPiggy 04fc21a08c Add the comments about how to use native view update helper 2019-11-02 16:47:44 +08:00
DreamPiggy 9dcc697a16 Update the demo for placeholder comments 2019-11-02 14:12:20 +08:00
DreamPiggy 4b8d5cd8b6 Fix the issue when quick scroll, WebImage indicator will cause huge CPU usage because of recusive call. Ignore the onDisappear use cancel code 2019-11-02 11:38:06 +08:00
DreamPiggy a229aa6397
Merge pull request #38 from SDWebImage/bugfix_webImage_incremental
Fix the issue that WebImage will stop download after first progressive loading image loaded
2019-11-02 05:26:37 +08:00
DreamPiggy a5c8082b79 Fix the issue that WebImage will stop download after first progressive loading image loaded 2019-11-02 05:17:25 +08:00
DreamPiggy a00e9cbe91 Update demo, add one SwiftUI activity indicator for watchOS 2019-11-02 04:21:48 +08:00
DreamPiggy ee7445afd7 Update the readme with more structure, add one `Which View to choose` chapter 2019-10-29 21:11:50 +08:00
DreamPiggy 25daa2d0f0 Update the macOS Example to use Sidebar style but not default style, which default size more correctly 2019-10-29 14:57:48 +08:00
DreamPiggy cc2981732b Update the example on watchOS, to use fade transition 2019-10-27 20:19:52 +08:00
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 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 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 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 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 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 96e64d602d Try to stop animating when dismantle UIViewRepresentable, fix the potential leak (bug ?) for AnmatedImage 2019-10-20 16:02:52 +08:00
DreamPiggy 88b0d86a66 Update the demo with dynamic data, Swipe to delete 2019-10-10 18:07:32 +08:00
DreamPiggy 152a321507 Fix the case when SwiftUI create new View struct without call onAppears. Now we always do a query check when hitting empty Image 2019-10-10 17:58:36 +08:00
DreamPiggy 0c17688125 Update the file header comment in Example 2019-10-06 01:21:20 +08:00
DreamPiggy adf0348a4e Update the Example Xcode schemes 2019-10-05 20:25:43 +08:00
DreamPiggy a27f18c56e Update the readme about the demo and screenshots 2019-10-05 20:17:51 +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 c4b199f8b7 Update the new screenshot of demo 2019-10-03 14:42:29 +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
DreamPiggy 611ab6125e Support AnimatedImage with `aspectRatio`, `antialiased`, `interpolation`, `renderingMode` and `resizable` methods, some of them is not fully implemented 2019-10-01 14:34:11 +08:00
DreamPiggy 058915b56d Add the scaleToFit/Fill method to AnimatedImageView, refactory the implementation to use binding 2019-09-25 03:07:00 +08:00
seongho.hong 5548e9ddec Support init with optional url 2019-09-12 19:19:23 +09:00
DreamPiggy a7195459d9 Update readme to fix some typos 2019-08-09 18:29:29 +08:00
DreamPiggy 15d4805a96 Update the licences description in source files 2019-08-09 17:17:08 +08:00
DreamPiggy 98dcd2d619 Remove the dummy demo code 2019-08-09 16:56:13 +08:00
DreamPiggy 683d0bced1 Update the Travis-CI script 2019-08-09 16:25:52 +08:00
DreamPiggy c25a227510 Update the readme about the installation 2019-08-09 16:15:44 +08:00
DreamPiggy e7914c0808 update the public API for AnimatedImage 2019-08-09 15:10:30 +08:00
DreamPiggy 1f13239f27 Add source files and CocoaPods integration for SwiftUI 2019-08-07 18:51:28 +08:00
DreamPiggy 1741266e9d Initial commit 2019-08-07 18:10:05 +08:00