Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SU-RELEASE] 2.0.1 #50

Merged
merged 4 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() }
}
}