Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CSolanaM committed May 20, 2024
1 parent 84a0adf commit f025e9b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
-
Expand Down
2 changes: 1 addition & 1 deletion SkeletonUI.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion Sources/SkeletonUI/Modifiers/SkeletonModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}
}

0 comments on commit f025e9b

Please sign in to comment.