Skip to content

Commit

Permalink
Merge pull request #50 from CSolanaM/develop
Browse files Browse the repository at this point in the history
[SU-RELEASE] 2.0.1
  • Loading branch information
CSolanaM authored Jan 10, 2024
2 parents 0fe0817 + 242090e commit d5c8a4f
Show file tree
Hide file tree
Showing 3 changed files with 13 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.1](https://github.com/CSolanaM/SkeletonUI/releases/tag/2.0.1)
### Added
-
### Changed
-
### Removed
-
### Fixed
- Animations fixed for iOS 17, improving performance and reliability

## [2.0.0](https://github.com/CSolanaM/SkeletonUI/releases/tag/2.0.0)
### 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.0'
s.version = '2.0.1'
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
3 changes: 2 additions & 1 deletion Sources/SkeletonUI/Modifiers/SkeletonModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ public struct SkeletonModifier: ViewModifier {

public func body(content: Content) -> some View {
content
.modifier(SkeletonAnimatableModifier(CGFloat(integerLiteral: Int(truncating: animate as NSNumber)), appearance).animation(animation.type))
.modifier(SkeletonAnimatableModifier(animate ? 1 : 0, appearance))
.clipShape(SkeletonShape(shape))
.animation(animation.type, value: animate)
.onAppear { animate.toggle() }
}
}

0 comments on commit d5c8a4f

Please sign in to comment.