diff --git a/CHANGELOG.md b/CHANGELOG.md index d02f393..c80297b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Change Log All notable changes to this project will be documented in this file. +## [2.0.2](https://github.com/CSolanaM/SkeletonUI/releases/tag/2.0.2) +### Added +- +### Changed +- +### Removed +- +### Fixed +- Fix for the issue reported in [rdar://FB13795514](https://openradar.appspot.com/FB13795514) + ## [2.0.1](https://github.com/CSolanaM/SkeletonUI/releases/tag/2.0.1) ### Added - diff --git a/SkeletonUI.podspec b/SkeletonUI.podspec index e36838c..5b90559 100644 --- a/SkeletonUI.podspec +++ b/SkeletonUI.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SkeletonUI' - s.version = '2.0.1' + s.version = '2.0.2' s.summary = 'Elegant skeleton loading animation in SwiftUI and Combine' s.description = <<-DESC SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations. Get rid of loading screens or spinners and start using skeletons to represent final content shapes diff --git a/Sources/SkeletonUI/Modifiers/SkeletonModifier.swift b/Sources/SkeletonUI/Modifiers/SkeletonModifier.swift index c588d02..8b2b96a 100644 --- a/Sources/SkeletonUI/Modifiers/SkeletonModifier.swift +++ b/Sources/SkeletonUI/Modifiers/SkeletonModifier.swift @@ -13,6 +13,10 @@ public struct SkeletonModifier: ViewModifier { .modifier(SkeletonAnimatableModifier(animate ? 1 : 0, appearance)) .clipShape(SkeletonShape(shape)) .animation(animation.type, value: animate) - .onAppear { animate.toggle() } + .onAppear { + DispatchQueue.main.async { + animate.toggle() + } + } } }