Commit Graph

487 Commits

Author SHA1 Message Date
DreamPiggy 2d4839a195 Added visionOS support
Add visionOS Demo

The scale using traitCollection.displayScale
2023-09-02 21:24:41 +08:00
DreamPiggy e837c37d45 Released v2.2.3 version
Update the CHANGELOG.md
2023-04-23 23:25:10 +08:00
DreamPiggy f0b113179c
Merge pull request #263 from SDWebImage/fix/library_evolution_for_static_lib
Fix the issue that Static Library + Library Evolution cause the build issue on Swift 5.8
2023-04-23 23:24:06 +08:00
DreamPiggy 029aa85ea4 Fix the issue that Static Library + Library Evolution cause the build issue on Swift 5.8
For CocoaPods user, they can use Static Library and we should not touch the xcconfig here
2023-04-23 21:31:19 +08:00
DreamPiggy 61fefe9c28 Released v2.2.2 version
Update the CHANGELOG.md
2022-12-27 20:10:39 +08:00
DreamPiggy 92f7b1779b
Merge pull request #251 from SDWebImage/bugfix/is_animating_webimage
Fix the bug that isAnimating control does not works on WebImage
2022-12-27 15:43:40 +08:00
DreamPiggy 940907a6f9 Fix the bug that isAnimating control does not works on WebImage 2022-12-26 19:27:45 +08:00
DreamPiggy ed288667c9 Released v2.2.1 version
Update the CHANGELOG.md
2022-09-23 21:14:23 +08:00
DreamPiggy c60b04b836
Merge pull request #236 from SDWebImage/bugfix_webimage_no_stop_playing_quick_scroll
Fix the case which sometimes the player does not stop when WebImage it out of screen
2022-09-23 21:12:24 +08:00
DreamPiggy 657c64af7a Update the test case 2022-09-23 21:00:07 +08:00
DreamPiggy cd85148fc5 Using the ZStack as a container to distinguish the container disappear vs frame disapppear 2022-09-23 20:08:40 +08:00
DreamPiggy ba9db288f4 Fix the case which sometimes the player does not stop when WebImage it out of screen
This consume CPU because CADisplayLink is still running in the background
2022-09-23 18:18:43 +08:00
DreamPiggy 53ac75c52b
Merge pull request #235 from SDWebImage/fix_nil_url_fixed_point
Fix the nil url always returns Error will cause infinity `onAppear` call and image manager to load, which waste CPU
2022-09-23 17:04:13 +08:00
DreamPiggy bf3d86b15d Fix the nil url always returns Error will cause infinity `onAppear` call and image manager to load, which waste CPU
Instead, use url as identity to avoid this
2022-09-23 12:20:56 +08:00
DreamPiggy 2221b4fde4 Released v2.2.0 version
Update the CHANGELOG.md
2022-09-22 16:36:16 +08:00
DreamPiggy 9a82da2a1c
Merge pull request #232 from SDWebImage/fix_backport_ios13
Fix iOS 13 compatibility && State changes
2022-09-22 16:28:09 +08:00
DreamPiggy 5a5690e2dc Fix the test case project 2022-09-22 16:09:46 +08:00
DreamPiggy abd9102f6b Update the readme about when using in List/LazyStack/LazyGrid 2022-09-22 15:03:20 +08:00
DreamPiggy d18693909b Fix watchOS demo compile issue 2022-09-22 00:13:22 +08:00
DreamPiggy 1d7efeccc4 Fix the empty placeholder may cause onAppear does not called
Move the reset logic into helper function setupManager
2022-09-22 00:00:40 +08:00
DreamPiggy d281bde037 Fix the State change behavior again
Using the `StateObject` to check and refresh to the latest status, using `currentURL` and `currentAnimatedImage` to check lazily
2022-09-21 23:01:07 +08:00
DreamPiggy ce5340fd08 Fix the delayPlaceholder behavior and Player behavior when parent View change state 2022-09-21 20:45:12 +08:00
DreamPiggy 6590afdd3a Use manager published IndicatorStatus to pass update the indicator
Fix warning
2022-09-21 20:35:44 +08:00
DreamPiggy e1c32aea7d Fix iOS 13 compatibility
Revert back the onPlatformAppear to fix iOS 14+ behavior
Use backport for all OSs
2022-09-21 20:14:30 +08:00
DreamPiggy 83d46c08b5 Released v2.1.0 version
Update the CHANGELOG.md
2022-09-15 21:13:37 +08:00
DreamPiggy 3258812caa
Merge pull request #227 from SDWebImage/refactor_xcode14_state_update
Refactor WebImage/AnimatedImage using SwiftUIBackports and StateObject
2022-09-15 21:08:01 +08:00
DreamPiggy f263e8e049 Change to use CocoaPods to manage test case instead of Carthage 2022-09-15 20:48:57 +08:00
DreamPiggy ef03282068 Fix the WebImage onSuccess does not get called because of StateObject get touched before onAppear 2022-09-15 20:36:24 +08:00
DreamPiggy ac0e73b1f8 Update ViewInspector to 0.9.1 2022-09-15 17:18:43 +08:00
DreamPiggy 4b7cbfcf06 Fix the CI, re-enable GitHub Actions 2022-09-15 15:06:16 +08:00
DreamPiggy a75add8e3a Removed the unused code 2022-09-15 01:18:28 +08:00
DreamPiggy 13090bcc98 Fix Carthage project 2022-09-15 01:18:28 +08:00
DreamPiggy 30b26af70c Update README
Added something about the behavior
2022-09-15 01:18:28 +08:00
DreamPiggy 04c1ebba9c Refactor AnimatedImage implementation
Use context.coordinator to store loading status because it's exclusive unlike normal SwiftUI.View
2022-09-15 01:18:28 +08:00
DreamPiggy 2398f563a5 Refactor WebImage implementation
1. Use SwiftUIBackport to use StateObject/OnChange/Overlay
2. Change the Indicator API to match the transform for ImageManager
3. Remove the unused PlatformApear hack
2022-09-15 00:24:30 +08:00
DreamPiggy 336d3f6d3b
Merge pull request #187 from rufmirza/readme_corrections
Readme corrections
2021-05-31 11:39:35 +08:00
Rufat Mirza bc96b01b8c Add clarity to code example 2021-05-29 13:19:01 +03:00
Rufat Mirza 92704a2544 Add file extensions 2021-05-29 13:13:13 +03:00
Rufat Mirza 119eddc8cc Fix erroneous close parenthesis 2021-05-29 12:57:09 +03:00
DreamPiggy 5938dd0a25 Update the readme about the external loader/caches/coders usage tutorial 2021-04-13 16:15:37 +08:00
DreamPiggy cd8625b7cf Released v2.0.2 version
Update the CHANGELOG.md
2021-03-10 22:35:42 +08:00
DreamPiggy 5b658b0bc1
Merge pull request #178 from SDWebImage/remove_placeholder_maxWidth_limit
Remove the WebImage placeholder maxWidth/maxHeight modifier, this maybreak some use case like `TabView`. If user want to use placeholder, limit themselves
2021-03-10 22:29:31 +08:00
DreamPiggy 2935e2bb0c Code garden with Xcode 12's if let syntax in function builder 2021-03-10 22:28:30 +08:00
DreamPiggy d17d44e3c9 Remove the WebImage placeholder maxWidth/maxHeight modifier, this may break some use case like `TabView`. If user want to use placeholder, limit themselves
Also, polish the player API
2021-03-10 19:13:27 +08:00
DreamPiggy e19c35a07a
Merge pull request #177 from SDWebImage/fix_image_sturct_from_uiimage
Fix the issue that using `Image(uiimage:)` will result wrong rendering mode in some component like `TabbarItem`, while using `Image(decorative:sclae:orientation:)` works well
2021-03-10 18:04:40 +08:00
DreamPiggy f6074c2e5d Update the test case for the CGImage based 2021-03-10 17:10:08 +08:00
DreamPiggy 77f21c7ed9 Fix the issue that using `Image(uiimage:)` will result wrong rendering mode in some component like `TabbarItem`, while using `Image(decorative:sclae:orientation:)` works well 2021-03-10 16:02:06 +08:00
DreamPiggy 88f2d679b7 Released v2.0.1 version
Update the CHANGELOG.md
2021-02-25 21:41:31 +08:00
DreamPiggy 0fe0ff5846
Merge pull request #171 from SDWebImage/fix_rare_webimage_animating
Fix the rare cases that WebImage will lost animation when visibility changes.
2021-02-25 21:39:54 +08:00
DreamPiggy 69413ec0ee Fix the rare cases that WebImage will lost animation when visibility changes. Always setup player to play as defaults to avoid this. 2021-02-25 21:38:52 +08:00