From 7cf93e7e4eeaead4d241e2805b4a6ebf50c3dec2 Mon Sep 17 00:00:00 2001 From: Rahul Yadav Date: Mon, 30 Sep 2024 13:09:42 +0530 Subject: [PATCH] Add: PodSpec file Moved the 'if' view Extension to separate Util Folder Updated git Ignore for Pods --- .gitignore | 2 +- SSSwiftUIAnimations.podspec | 32 +++++++++++++++++++ SSSwiftUIAnimations.xcodeproj/project.pbxproj | 16 +++++++--- .../ViewExtension.swift | 0 4 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 SSSwiftUIAnimations.podspec rename SSSwiftUIAnimations/Sources/{ProgressAnimation => Utils}/ViewExtension.swift (100%) diff --git a/.gitignore b/.gitignore index 330d167..d2d7ea5 100644 --- a/.gitignore +++ b/.gitignore @@ -54,7 +54,7 @@ playground.xcworkspace # you should judge for yourself, the pros and cons are mentioned at: # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control # -# Pods/ +Pods/ # # Add this line if you want to avoid checking in source code from the Xcode workspace # *.xcworkspace diff --git a/SSSwiftUIAnimations.podspec b/SSSwiftUIAnimations.podspec new file mode 100644 index 0000000..07f92d7 --- /dev/null +++ b/SSSwiftUIAnimations.podspec @@ -0,0 +1,32 @@ +Pod::Spec.new do |s| + s.name = 'SSSwiftUIAnimations' + s.version = '1.0.0' + s.summary = 'With this library, you can make your app more fun and engaging by adding smooth and eye-catching animations to your app.' + s.readme = 'https://github.com/SimformSolutionsPvtLtd/SS-iOS-Animations/blob/master/README.md' + + s.description = <<-DESC + SS-iOS-Animations: Turn ordinary user interfaces into extraordinary experiences! With this library, you can make your app more fun and engaging by adding smooth and eye-catching animations to your app. Whether you're new to SwiftUI or a pro, our easy-to-use animations make it simple to add that extra wow factor to your app. Spice up your app with cool transitions, fun effects, and interactive touches, all thanks to SS-iOS-Animations. Try it out and take your SwiftUI apps to the next level! + DESC + + s.homepage = 'https://github.com/SimformSolutionsPvtLtd/SS-iOS-Animations.git' + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.author = { 'Rahul Yadav' => 'rahul.y@simformsolutions.com' } + s.source = { :git => 'https://github.com/SimformSolutionsPvtLtd/SS-iOS-Animations.git', :tag => s.version.to_s } + + s.ios.deployment_target = '15.0' + + s.source_files = 'SSSwiftUIAnimations/Sources/**/*' + + s.subspec 'WaterProgressAnimation' do |waterprogressanimation| + waterprogressanimation.source_files = 'SSSwiftUIAnimations/Sources/WaterProgressAnimation/**/*', 'SSSwiftUIAnimations/Sources/Utils/**/*' + end + + s.subspec 'ProgressAnimation' do |progressanimation| + progressanimation.source_files = 'SSSwiftUIAnimations/Sources/ProgressAnimation/**/*', + 'SSSwiftUIAnimations/Sources/Utils/**/*' + end + + s.subspec 'ArrowLeftRightAnimation' do |arrowleftrightanimation| + arrowleftrightanimation.source_files = 'SSSwiftUIAnimations/Sources/ArrowLeftRightAnimation/**/*', 'SSSwiftUIAnimations/Sources/Utils/**/*' + end +end diff --git a/SSSwiftUIAnimations.xcodeproj/project.pbxproj b/SSSwiftUIAnimations.xcodeproj/project.pbxproj index c6cd73d..eb6ea97 100644 --- a/SSSwiftUIAnimations.xcodeproj/project.pbxproj +++ b/SSSwiftUIAnimations.xcodeproj/project.pbxproj @@ -13,6 +13,7 @@ 2BC2D8FA28CF3A7000CAB302 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2BC2D8F928CF3A7000CAB302 /* Preview Assets.xcassets */; }; 4636F36E291E1BD600C8DB5B /* LeftArrow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4636F36D291E1BD600C8DB5B /* LeftArrow.swift */; }; 469963A5290FCE3600DC01AD /* SSLRArrowView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 469963A4290FCE3600DC01AD /* SSLRArrowView.swift */; }; + 8FE1727C2CAA8BF100F8AB45 /* ViewExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FE1727A2CAA8BF100F8AB45 /* ViewExtension.swift */; }; B10677FE2BE8D0D400957B4E /* DownArrow.swift in Sources */ = {isa = PBXBuildFile; fileRef = B10677FD2BE8D0D400957B4E /* DownArrow.swift */; }; B1098E7D2BD94ED900BC19DD /* WaveView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1098E7C2BD94ED900BC19DD /* WaveView.swift */; }; B11B983A2BCE9C3F00D76016 /* CheckView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B11B98392BCE9C3F00D76016 /* CheckView.swift */; }; @@ -31,7 +32,6 @@ B1DFCA512BF4FA3D00F01505 /* ProgressCircle.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1DFCA502BF4FA3D00F01505 /* ProgressCircle.swift */; }; B1DFCA532BF4FC7900F01505 /* ArrowView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1DFCA522BF4FC7900F01505 /* ArrowView.swift */; }; B1EA09DE2C11A6B70024BC28 /* Banner.png in Resources */ = {isa = PBXBuildFile; fileRef = B1EA09DD2C11A6B70024BC28 /* Banner.png */; }; - B1FE861E2BFF6BC000FB111C /* ViewExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1FE861D2BFF6BC000FB111C /* ViewExtension.swift */; }; B717EC9D2C45488100555F90 /* CheckmarkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B717EC9C2C45488100555F90 /* CheckmarkView.swift */; }; B741A1442C4A6D610083399B /* WaterProgressView.gif in Resources */ = {isa = PBXBuildFile; fileRef = B741A1432C4A6D610083399B /* WaterProgressView.gif */; }; B741D9A62C46448200ABFCB4 /* WaterProgressTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B741D9A52C46448200ABFCB4 /* WaterProgressTextView.swift */; }; @@ -51,6 +51,7 @@ 2BC2D8F928CF3A7000CAB302 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 4636F36D291E1BD600C8DB5B /* LeftArrow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LeftArrow.swift; sourceTree = ""; }; 469963A4290FCE3600DC01AD /* SSLRArrowView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSLRArrowView.swift; sourceTree = ""; }; + 8FE1727A2CAA8BF100F8AB45 /* ViewExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewExtension.swift; sourceTree = ""; }; B10677FD2BE8D0D400957B4E /* DownArrow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownArrow.swift; sourceTree = ""; }; B1098E7C2BD94ED900BC19DD /* WaveView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WaveView.swift; sourceTree = ""; }; B11B98392BCE9C3F00D76016 /* CheckView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckView.swift; sourceTree = ""; }; @@ -69,7 +70,6 @@ B1DFCA502BF4FA3D00F01505 /* ProgressCircle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProgressCircle.swift; sourceTree = ""; }; B1DFCA522BF4FC7900F01505 /* ArrowView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ArrowView.swift; sourceTree = ""; }; B1EA09DD2C11A6B70024BC28 /* Banner.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Banner.png; sourceTree = ""; }; - B1FE861D2BFF6BC000FB111C /* ViewExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewExtension.swift; sourceTree = ""; }; B717EC9C2C45488100555F90 /* CheckmarkView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckmarkView.swift; sourceTree = ""; }; B741A1432C4A6D610083399B /* WaterProgressView.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = WaterProgressView.gif; sourceTree = ""; }; B741D9A52C46448200ABFCB4 /* WaterProgressTextView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WaterProgressTextView.swift; sourceTree = ""; }; @@ -143,6 +143,14 @@ path = ArrowLeftRightAnimation; sourceTree = ""; }; + 8FE1727B2CAA8BF100F8AB45 /* Utils */ = { + isa = PBXGroup; + children = ( + 8FE1727A2CAA8BF100F8AB45 /* ViewExtension.swift */, + ); + path = Utils; + sourceTree = ""; + }; B1343F702C06064B009ACE90 /* GIFs */ = { isa = PBXGroup; children = ( @@ -163,7 +171,6 @@ B1098E7C2BD94ED900BC19DD /* WaveView.swift */, B11B98392BCE9C3F00D76016 /* CheckView.swift */, B177713E2BF39A60001723EC /* ModelClass.swift */, - B1FE861D2BFF6BC000FB111C /* ViewExtension.swift */, ); path = ProgressAnimation; sourceTree = ""; @@ -182,6 +189,7 @@ B1DE99D72C060E1A006995FB /* Sources */ = { isa = PBXGroup; children = ( + 8FE1727B2CAA8BF100F8AB45 /* Utils */, B780A9162C3D05CD00342512 /* WaterProgressAnimation */, B14AB36A2BC40286004B09C4 /* ProgressAnimation */, 469963A3290FCE1900DC01AD /* ArrowLeftRightAnimation */, @@ -319,11 +327,11 @@ B780A9182C3D063500342512 /* WaterProgressView.swift in Sources */, B11B983A2BCE9C3F00D76016 /* CheckView.swift in Sources */, B7ECD58D2C452D8100B6A703 /* BubbleView.swift in Sources */, + 8FE1727C2CAA8BF100F8AB45 /* ViewExtension.swift in Sources */, B780A9262C3D806300342512 /* ExampleWaterProgressView.swift in Sources */, B780A91A2C3D0BCB00342512 /* WaterProgressViewStyle.swift in Sources */, B1DFCA512BF4FA3D00F01505 /* ProgressCircle.swift in Sources */, B14AB36C2BC41B05004B09C4 /* ProgressView.swift in Sources */, - B1FE861E2BFF6BC000FB111C /* ViewExtension.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SSSwiftUIAnimations/Sources/ProgressAnimation/ViewExtension.swift b/SSSwiftUIAnimations/Sources/Utils/ViewExtension.swift similarity index 100% rename from SSSwiftUIAnimations/Sources/ProgressAnimation/ViewExtension.swift rename to SSSwiftUIAnimations/Sources/Utils/ViewExtension.swift