Skip to content

Commit f025e9b

Browse files
committed
Fix
1 parent 84a0adf commit f025e9b

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [2.0.2](https://github.com/CSolanaM/SkeletonUI/releases/tag/2.0.2)
5+
### Added
6+
-
7+
### Changed
8+
-
9+
### Removed
10+
-
11+
### Fixed
12+
- Fix for the issue reported in [rdar://FB13795514](https://openradar.appspot.com/FB13795514)
13+
414
## [2.0.1](https://github.com/CSolanaM/SkeletonUI/releases/tag/2.0.1)
515
### Added
616
-

SkeletonUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'SkeletonUI'
3-
s.version = '2.0.1'
3+
s.version = '2.0.2'
44
s.summary = 'Elegant skeleton loading animation in SwiftUI and Combine'
55
s.description = <<-DESC
66
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

Sources/SkeletonUI/Modifiers/SkeletonModifier.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ public struct SkeletonModifier: ViewModifier {
1313
.modifier(SkeletonAnimatableModifier(animate ? 1 : 0, appearance))
1414
.clipShape(SkeletonShape(shape))
1515
.animation(animation.type, value: animate)
16-
.onAppear { animate.toggle() }
16+
.onAppear {
17+
DispatchQueue.main.async {
18+
animate.toggle()
19+
}
20+
}
1721
}
1822
}

0 commit comments

Comments
 (0)