├── .gitignore ├── .travis.yml ├── Example ├── MotionToastView.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── MotionToastView-Example.xcscheme ├── MotionToastView.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── MotionToastView │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── apple.imageset │ │ │ ├── Contents.json │ │ │ └── android.png │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── MotionToastView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── MotionToastView │ │ ├── MotionToastView-Info.plist │ │ ├── MotionToastView-dummy.m │ │ ├── MotionToastView-prefix.pch │ │ ├── MotionToastView-umbrella.h │ │ ├── MotionToastView.debug.xcconfig │ │ ├── MotionToastView.modulemap │ │ └── MotionToastView.release.xcconfig │ │ ├── Pods-MotionToastView_Example │ │ ├── Pods-MotionToastView_Example-Info.plist │ │ ├── Pods-MotionToastView_Example-acknowledgements.markdown │ │ ├── Pods-MotionToastView_Example-acknowledgements.plist │ │ ├── Pods-MotionToastView_Example-dummy.m │ │ ├── Pods-MotionToastView_Example-frameworks.sh │ │ ├── Pods-MotionToastView_Example-umbrella.h │ │ ├── Pods-MotionToastView_Example.debug.xcconfig │ │ ├── Pods-MotionToastView_Example.modulemap │ │ └── Pods-MotionToastView_Example.release.xcconfig │ │ └── Pods-MotionToastView_Tests │ │ ├── Pods-MotionToastView_Tests-Info.plist │ │ ├── Pods-MotionToastView_Tests-acknowledgements.markdown │ │ ├── Pods-MotionToastView_Tests-acknowledgements.plist │ │ ├── Pods-MotionToastView_Tests-dummy.m │ │ ├── Pods-MotionToastView_Tests-umbrella.h │ │ ├── Pods-MotionToastView_Tests.debug.xcconfig │ │ ├── Pods-MotionToastView_Tests.modulemap │ │ └── Pods-MotionToastView_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── MotionToastView.podspec ├── MotionToastView ├── Assets.xcassets │ ├── Color set │ │ ├── Contents.json │ │ ├── alpha_blue_dark.colorset │ │ │ └── Contents.json │ │ ├── alpha_green_dark.colorset │ │ │ └── Contents.json │ │ ├── alpha_red_dark.colorset │ │ │ └── Contents.json │ │ ├── alpha_yellow_dark.colorset │ │ │ └── Contents.json │ │ ├── black_white.colorset │ │ │ └── Contents.json │ │ ├── blue_dark.colorset │ │ │ └── Contents.json │ │ ├── green_dark.colorset │ │ │ └── Contents.json │ │ ├── red_dark.colorset │ │ │ └── Contents.json │ │ ├── white_blue.colorset │ │ │ └── Contents.json │ │ ├── white_green.colorset │ │ │ └── Contents.json │ │ ├── white_red.colorset │ │ │ └── Contents.json │ │ ├── white_yellow.colorset │ │ │ └── Contents.json │ │ └── yellow_dark.colorset │ │ │ └── Contents.json │ ├── Contents.json │ └── Icons │ │ ├── Contents.json │ │ ├── error_icon.imageset │ │ ├── Contents.json │ │ ├── Group 10.png │ │ ├── Group 10@2x.png │ │ └── Group 10@3x.png │ │ ├── error_icon_white.imageset │ │ ├── Contents.json │ │ ├── Group 10.png │ │ ├── Group 10@2x.png │ │ └── Group 10@3x.png │ │ ├── info_icon.imageset │ │ ├── Contents.json │ │ ├── Group 10.png │ │ ├── Group 10@2x.png │ │ └── Group 10@3x.png │ │ ├── info_icon_white.imageset │ │ ├── Contents.json │ │ ├── Group 10.png │ │ ├── Group 10@2x.png │ │ └── Group 10@3x.png │ │ ├── success_icon.imageset │ │ ├── Contents.json │ │ ├── Group 10.png │ │ ├── Group 10@2x.png │ │ └── Group 10@3x.png │ │ ├── success_icon_white.imageset │ │ ├── Contents.json │ │ ├── Group 10.png │ │ ├── Group 10@2x.png │ │ └── Group 10@3x.png │ │ ├── warning_icon.imageset │ │ ├── Contents.json │ │ ├── Group 10.png │ │ ├── Group 10@2x.png │ │ └── Group 10@3x.png │ │ └── warning_icon_white.imageset │ │ ├── Contents.json │ │ ├── Group 10.png │ │ ├── Group 10@2x.png │ │ └── Group 10@3x.png ├── Assets │ └── .gitkeep └── Classes │ └── .gitkeep ├── README.md ├── Source ├── Extension.swift └── MotionToastStyles │ ├── MTPale.swift │ ├── MTPale.xib │ ├── MTVibrant.swift │ └── MTVibrant.xib └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/MotionToastView.xcworkspace -scheme MotionToastView-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/MotionToastView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 16 | EAE3D3A91B3605F0E727CDDC /* Pods_MotionToastView_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 913C2F28D18A6F4AF8AE94BA /* Pods_MotionToastView_Tests.framework */; }; 17 | EB33912730F4D0D785FFDDB8 /* Pods_MotionToastView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3445E015A3E919D87E54D83 /* Pods_MotionToastView_Example.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = MotionToastView; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 0F729AEE61D3B6D1B1C5E41C /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 32 | 425C8C17A40C1432000BE593 /* Pods-MotionToastView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MotionToastView_Example.release.xcconfig"; path = "Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example.release.xcconfig"; sourceTree = ""; }; 33 | 52A2F0EFC9F95055449D42DC /* Pods-MotionToastView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MotionToastView_Tests.release.xcconfig"; path = "Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests.release.xcconfig"; sourceTree = ""; }; 34 | 5305922AC666DD119184BD03 /* MotionToastView.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MotionToastView.podspec; path = ../MotionToastView.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 35 | 607FACD01AFB9204008FA782 /* MotionToastView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MotionToastView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* MotionToastView_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MotionToastView_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 78A5FE4D9A7DF331BD5A663F /* Pods-MotionToastView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MotionToastView_Example.debug.xcconfig"; path = "Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example.debug.xcconfig"; sourceTree = ""; }; 46 | 8E539BFCF76EC35EEE2D68EC /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 47 | 913C2F28D18A6F4AF8AE94BA /* Pods_MotionToastView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MotionToastView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 9DA742C2DE612A5712C05683 /* Pods-MotionToastView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MotionToastView_Tests.debug.xcconfig"; path = "Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests.debug.xcconfig"; sourceTree = ""; }; 49 | B3445E015A3E919D87E54D83 /* Pods_MotionToastView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MotionToastView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | EB33912730F4D0D785FFDDB8 /* Pods_MotionToastView_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | EAE3D3A91B3605F0E727CDDC /* Pods_MotionToastView_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 607FACC71AFB9204008FA782 = { 73 | isa = PBXGroup; 74 | children = ( 75 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 76 | 607FACD21AFB9204008FA782 /* Example for MotionToastView */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | F256B1FF9EF5B2C8C43EA6CA /* Pods */, 80 | 8D4A7388A5E7A78AAC42DD8D /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* MotionToastView_Example.app */, 88 | 607FACE51AFB9204008FA782 /* MotionToastView_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for MotionToastView */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 97 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 98 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 99 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 100 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 101 | 607FACD31AFB9204008FA782 /* Supporting Files */, 102 | ); 103 | name = "Example for MotionToastView"; 104 | path = MotionToastView; 105 | sourceTree = ""; 106 | }; 107 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD41AFB9204008FA782 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | 607FACE81AFB9204008FA782 /* Tests */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 119 | 607FACE91AFB9204008FA782 /* Supporting Files */, 120 | ); 121 | path = Tests; 122 | sourceTree = ""; 123 | }; 124 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEA1AFB9204008FA782 /* Info.plist */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 5305922AC666DD119184BD03 /* MotionToastView.podspec */, 136 | 8E539BFCF76EC35EEE2D68EC /* README.md */, 137 | 0F729AEE61D3B6D1B1C5E41C /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | 8D4A7388A5E7A78AAC42DD8D /* Frameworks */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | B3445E015A3E919D87E54D83 /* Pods_MotionToastView_Example.framework */, 146 | 913C2F28D18A6F4AF8AE94BA /* Pods_MotionToastView_Tests.framework */, 147 | ); 148 | name = Frameworks; 149 | sourceTree = ""; 150 | }; 151 | F256B1FF9EF5B2C8C43EA6CA /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 78A5FE4D9A7DF331BD5A663F /* Pods-MotionToastView_Example.debug.xcconfig */, 155 | 425C8C17A40C1432000BE593 /* Pods-MotionToastView_Example.release.xcconfig */, 156 | 9DA742C2DE612A5712C05683 /* Pods-MotionToastView_Tests.debug.xcconfig */, 157 | 52A2F0EFC9F95055449D42DC /* Pods-MotionToastView_Tests.release.xcconfig */, 158 | ); 159 | path = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* MotionToastView_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MotionToastView_Example" */; 168 | buildPhases = ( 169 | 9B31C59D93AE545834D8FA87 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 07C8D95C28998E66744F96FD /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = MotionToastView_Example; 180 | productName = MotionToastView; 181 | productReference = 607FACD01AFB9204008FA782 /* MotionToastView_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* MotionToastView_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MotionToastView_Tests" */; 187 | buildPhases = ( 188 | ABAACE76D2DB9E2BE52D7C70 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = MotionToastView_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* MotionToastView_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 1150; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | DevelopmentTeam = GY8LXNR38D; 216 | LastSwiftMigration = 0900; 217 | }; 218 | 607FACE41AFB9204008FA782 = { 219 | CreatedOnToolsVersion = 6.3.1; 220 | LastSwiftMigration = 1150; 221 | TestTargetID = 607FACCF1AFB9204008FA782; 222 | }; 223 | }; 224 | }; 225 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "MotionToastView" */; 226 | compatibilityVersion = "Xcode 3.2"; 227 | developmentRegion = en; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* MotionToastView_Example */, 239 | 607FACE41AFB9204008FA782 /* MotionToastView_Tests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 607FACCE1AFB9204008FA782 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 250 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 251 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 607FACE31AFB9204008FA782 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | /* End PBXResourcesBuildPhase section */ 263 | 264 | /* Begin PBXShellScriptBuildPhase section */ 265 | 07C8D95C28998E66744F96FD /* [CP] Embed Pods Frameworks */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | "${PODS_ROOT}/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-frameworks.sh", 272 | "${BUILT_PRODUCTS_DIR}/MotionToastView/MotionToastView.framework", 273 | ); 274 | name = "[CP] Embed Pods Frameworks"; 275 | outputPaths = ( 276 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MotionToastView.framework", 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | shellPath = /bin/sh; 280 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-frameworks.sh\"\n"; 281 | showEnvVarsInLog = 0; 282 | }; 283 | 9B31C59D93AE545834D8FA87 /* [CP] Check Pods Manifest.lock */ = { 284 | isa = PBXShellScriptBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | ); 288 | inputFileListPaths = ( 289 | ); 290 | inputPaths = ( 291 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 292 | "${PODS_ROOT}/Manifest.lock", 293 | ); 294 | name = "[CP] Check Pods Manifest.lock"; 295 | outputFileListPaths = ( 296 | ); 297 | outputPaths = ( 298 | "$(DERIVED_FILE_DIR)/Pods-MotionToastView_Example-checkManifestLockResult.txt", 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | shellPath = /bin/sh; 302 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 303 | showEnvVarsInLog = 0; 304 | }; 305 | ABAACE76D2DB9E2BE52D7C70 /* [CP] Check Pods Manifest.lock */ = { 306 | isa = PBXShellScriptBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | inputFileListPaths = ( 311 | ); 312 | inputPaths = ( 313 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 314 | "${PODS_ROOT}/Manifest.lock", 315 | ); 316 | name = "[CP] Check Pods Manifest.lock"; 317 | outputFileListPaths = ( 318 | ); 319 | outputPaths = ( 320 | "$(DERIVED_FILE_DIR)/Pods-MotionToastView_Tests-checkManifestLockResult.txt", 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | /* End PBXShellScriptBuildPhase section */ 328 | 329 | /* Begin PBXSourcesBuildPhase section */ 330 | 607FACCC1AFB9204008FA782 /* Sources */ = { 331 | isa = PBXSourcesBuildPhase; 332 | buildActionMask = 2147483647; 333 | files = ( 334 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 335 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | 607FACE11AFB9204008FA782 /* Sources */ = { 340 | isa = PBXSourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | /* End PBXSourcesBuildPhase section */ 348 | 349 | /* Begin PBXTargetDependency section */ 350 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 351 | isa = PBXTargetDependency; 352 | target = 607FACCF1AFB9204008FA782 /* MotionToastView_Example */; 353 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 354 | }; 355 | /* End PBXTargetDependency section */ 356 | 357 | /* Begin PBXVariantGroup section */ 358 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 359 | isa = PBXVariantGroup; 360 | children = ( 361 | 607FACDA1AFB9204008FA782 /* Base */, 362 | ); 363 | name = Main.storyboard; 364 | sourceTree = ""; 365 | }; 366 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 367 | isa = PBXVariantGroup; 368 | children = ( 369 | 607FACDF1AFB9204008FA782 /* Base */, 370 | ); 371 | name = LaunchScreen.xib; 372 | sourceTree = ""; 373 | }; 374 | /* End PBXVariantGroup section */ 375 | 376 | /* Begin XCBuildConfiguration section */ 377 | 607FACED1AFB9204008FA782 /* Debug */ = { 378 | isa = XCBuildConfiguration; 379 | buildSettings = { 380 | ALWAYS_SEARCH_USER_PATHS = NO; 381 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 382 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 383 | CLANG_CXX_LIBRARY = "libc++"; 384 | CLANG_ENABLE_MODULES = YES; 385 | CLANG_ENABLE_OBJC_ARC = YES; 386 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 387 | CLANG_WARN_BOOL_CONVERSION = YES; 388 | CLANG_WARN_COMMA = YES; 389 | CLANG_WARN_CONSTANT_CONVERSION = YES; 390 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 391 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 392 | CLANG_WARN_EMPTY_BODY = YES; 393 | CLANG_WARN_ENUM_CONVERSION = YES; 394 | CLANG_WARN_INFINITE_RECURSION = YES; 395 | CLANG_WARN_INT_CONVERSION = YES; 396 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 397 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 398 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 399 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 400 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 401 | CLANG_WARN_STRICT_PROTOTYPES = YES; 402 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 403 | CLANG_WARN_UNREACHABLE_CODE = YES; 404 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 405 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 406 | COPY_PHASE_STRIP = NO; 407 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 408 | ENABLE_STRICT_OBJC_MSGSEND = YES; 409 | ENABLE_TESTABILITY = YES; 410 | GCC_C_LANGUAGE_STANDARD = gnu99; 411 | GCC_DYNAMIC_NO_PIC = NO; 412 | GCC_NO_COMMON_BLOCKS = YES; 413 | GCC_OPTIMIZATION_LEVEL = 0; 414 | GCC_PREPROCESSOR_DEFINITIONS = ( 415 | "DEBUG=1", 416 | "$(inherited)", 417 | ); 418 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 419 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 420 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 421 | GCC_WARN_UNDECLARED_SELECTOR = YES; 422 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 423 | GCC_WARN_UNUSED_FUNCTION = YES; 424 | GCC_WARN_UNUSED_VARIABLE = YES; 425 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 426 | MTL_ENABLE_DEBUG_INFO = YES; 427 | ONLY_ACTIVE_ARCH = YES; 428 | SDKROOT = iphoneos; 429 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 430 | SWIFT_VERSION = 5.0; 431 | }; 432 | name = Debug; 433 | }; 434 | 607FACEE1AFB9204008FA782 /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | buildSettings = { 437 | ALWAYS_SEARCH_USER_PATHS = NO; 438 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 439 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 440 | CLANG_CXX_LIBRARY = "libc++"; 441 | CLANG_ENABLE_MODULES = YES; 442 | CLANG_ENABLE_OBJC_ARC = YES; 443 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 444 | CLANG_WARN_BOOL_CONVERSION = YES; 445 | CLANG_WARN_COMMA = YES; 446 | CLANG_WARN_CONSTANT_CONVERSION = YES; 447 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 448 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 449 | CLANG_WARN_EMPTY_BODY = YES; 450 | CLANG_WARN_ENUM_CONVERSION = YES; 451 | CLANG_WARN_INFINITE_RECURSION = YES; 452 | CLANG_WARN_INT_CONVERSION = YES; 453 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 454 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 455 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 456 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 457 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 458 | CLANG_WARN_STRICT_PROTOTYPES = YES; 459 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 460 | CLANG_WARN_UNREACHABLE_CODE = YES; 461 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 462 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 463 | COPY_PHASE_STRIP = NO; 464 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 465 | ENABLE_NS_ASSERTIONS = NO; 466 | ENABLE_STRICT_OBJC_MSGSEND = YES; 467 | GCC_C_LANGUAGE_STANDARD = gnu99; 468 | GCC_NO_COMMON_BLOCKS = YES; 469 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 470 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 471 | GCC_WARN_UNDECLARED_SELECTOR = YES; 472 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 473 | GCC_WARN_UNUSED_FUNCTION = YES; 474 | GCC_WARN_UNUSED_VARIABLE = YES; 475 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 476 | MTL_ENABLE_DEBUG_INFO = NO; 477 | SDKROOT = iphoneos; 478 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 479 | SWIFT_VERSION = 5.0; 480 | VALIDATE_PRODUCT = YES; 481 | }; 482 | name = Release; 483 | }; 484 | 607FACF01AFB9204008FA782 /* Debug */ = { 485 | isa = XCBuildConfiguration; 486 | baseConfigurationReference = 78A5FE4D9A7DF331BD5A663F /* Pods-MotionToastView_Example.debug.xcconfig */; 487 | buildSettings = { 488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 489 | DEVELOPMENT_TEAM = GY8LXNR38D; 490 | INFOPLIST_FILE = MotionToastView/Info.plist; 491 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 492 | MODULE_NAME = ExampleApp; 493 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 494 | PRODUCT_NAME = "$(TARGET_NAME)"; 495 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 496 | SWIFT_VERSION = 5.0; 497 | }; 498 | name = Debug; 499 | }; 500 | 607FACF11AFB9204008FA782 /* Release */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 425C8C17A40C1432000BE593 /* Pods-MotionToastView_Example.release.xcconfig */; 503 | buildSettings = { 504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 505 | DEVELOPMENT_TEAM = GY8LXNR38D; 506 | INFOPLIST_FILE = MotionToastView/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 508 | MODULE_NAME = ExampleApp; 509 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 510 | PRODUCT_NAME = "$(TARGET_NAME)"; 511 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 512 | SWIFT_VERSION = 5.0; 513 | }; 514 | name = Release; 515 | }; 516 | 607FACF31AFB9204008FA782 /* Debug */ = { 517 | isa = XCBuildConfiguration; 518 | baseConfigurationReference = 9DA742C2DE612A5712C05683 /* Pods-MotionToastView_Tests.debug.xcconfig */; 519 | buildSettings = { 520 | FRAMEWORK_SEARCH_PATHS = ( 521 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 522 | "$(inherited)", 523 | ); 524 | GCC_PREPROCESSOR_DEFINITIONS = ( 525 | "DEBUG=1", 526 | "$(inherited)", 527 | ); 528 | INFOPLIST_FILE = Tests/Info.plist; 529 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 530 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 531 | PRODUCT_NAME = "$(TARGET_NAME)"; 532 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 533 | SWIFT_VERSION = 5.0; 534 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MotionToastView_Example.app/MotionToastView_Example"; 535 | }; 536 | name = Debug; 537 | }; 538 | 607FACF41AFB9204008FA782 /* Release */ = { 539 | isa = XCBuildConfiguration; 540 | baseConfigurationReference = 52A2F0EFC9F95055449D42DC /* Pods-MotionToastView_Tests.release.xcconfig */; 541 | buildSettings = { 542 | FRAMEWORK_SEARCH_PATHS = ( 543 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 544 | "$(inherited)", 545 | ); 546 | INFOPLIST_FILE = Tests/Info.plist; 547 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 548 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 549 | PRODUCT_NAME = "$(TARGET_NAME)"; 550 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 551 | SWIFT_VERSION = 5.0; 552 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MotionToastView_Example.app/MotionToastView_Example"; 553 | }; 554 | name = Release; 555 | }; 556 | /* End XCBuildConfiguration section */ 557 | 558 | /* Begin XCConfigurationList section */ 559 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "MotionToastView" */ = { 560 | isa = XCConfigurationList; 561 | buildConfigurations = ( 562 | 607FACED1AFB9204008FA782 /* Debug */, 563 | 607FACEE1AFB9204008FA782 /* Release */, 564 | ); 565 | defaultConfigurationIsVisible = 0; 566 | defaultConfigurationName = Release; 567 | }; 568 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MotionToastView_Example" */ = { 569 | isa = XCConfigurationList; 570 | buildConfigurations = ( 571 | 607FACF01AFB9204008FA782 /* Debug */, 572 | 607FACF11AFB9204008FA782 /* Release */, 573 | ); 574 | defaultConfigurationIsVisible = 0; 575 | defaultConfigurationName = Release; 576 | }; 577 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MotionToastView_Tests" */ = { 578 | isa = XCConfigurationList; 579 | buildConfigurations = ( 580 | 607FACF31AFB9204008FA782 /* Debug */, 581 | 607FACF41AFB9204008FA782 /* Release */, 582 | ); 583 | defaultConfigurationIsVisible = 0; 584 | defaultConfigurationName = Release; 585 | }; 586 | /* End XCConfigurationList section */ 587 | }; 588 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 589 | } 590 | -------------------------------------------------------------------------------- /Example/MotionToastView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/MotionToastView.xcodeproj/xcshareddata/xcschemes/MotionToastView-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 76 | 78 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Example/MotionToastView.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/MotionToastView.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/MotionToastView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // MotionToastView 4 | // 5 | // Created by sameersyd on 08/11/2020. 6 | // Copyright (c) 2020 sameersyd. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/MotionToastView/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/MotionToastView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 39 | 54 | 69 | 84 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | -------------------------------------------------------------------------------- /Example/MotionToastView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/MotionToastView/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Example/MotionToastView/Images.xcassets/apple.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "filename" : "android.png", 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/MotionToastView/Images.xcassets/apple.imageset/android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/Example/MotionToastView/Images.xcassets/apple.imageset/android.png -------------------------------------------------------------------------------- /Example/MotionToastView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/MotionToastView/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // MotionToastView 4 | // 5 | // Created by sameersyd on 08/11/2020. 6 | // Copyright (c) 2020 sameersyd. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MotionToastView 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | // Do any additional setup after loading the view, typically from a nib. 17 | } 18 | 19 | @IBAction func successButt(_ sender: UIButton) { 20 | MotionToast(message: "You have successfully completed the trip", toastType: .success) 21 | } 22 | 23 | @IBAction func errorButt(_ sender: UIButton) { 24 | MotionToast(message: "You have failed to complete the trip", toastType: .error, toastCornerRadius: 12) 25 | } 26 | 27 | @IBAction func warningButt(_ sender: UIButton) { 28 | MotionToast(message: "You are not in the location. Try again", toastType: .warning, duration: .long, toastStyle: .style_pale, toastGravity: .centre, pulseEffect: false) 29 | } 30 | 31 | @IBAction func infoButt(_ sender: UIButton) { 32 | MotionToast(message: "You have failed to complete the trip", toastType: .info, duration: .long, toastStyle: .style_pale, toastGravity: .top) 33 | } 34 | 35 | @IBAction func customToastButt(_ sender: UIButton) { 36 | MotionToast_Customisation(header: "Custom Toast", message: "It gives you more customisation options.", 37 | headerColor: UIColor(red: 255.0, green: 255.0, blue: 255.0, alpha: 1.0), 38 | messageColor: UIColor(red: 239.0, green: 239.0, blue: 239.0, alpha: 0.7), 39 | primary_color: UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.5), 40 | secondary_color: UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0), 41 | icon_image: UIImage(named: "apple")!, duration: .long, toastStyle: .style_pale, 42 | toastGravity: .bottom, toastCornerRadius: 12, pulseEffect: true) 43 | } 44 | 45 | override func didReceiveMemoryWarning() { 46 | super.didReceiveMemoryWarning() 47 | // Dispose of any resources that can be recreated. 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'MotionToastView_Example' do 4 | pod 'MotionToastView', :path => '../' 5 | 6 | target 'MotionToastView_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MotionToastView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - MotionToastView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MotionToastView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MotionToastView: 7cc1b9eb09dba856dcdc12e55c97269f20602c57 13 | 14 | PODFILE CHECKSUM: 44561815f7e0cfda2d58a3b6e754de654be55e2e 15 | 16 | COCOAPODS: 1.9.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/MotionToastView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MotionToastView", 3 | "version": "0.1.0", 4 | "summary": "A short description of MotionToastView.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/sameersyd/MotionToastView", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "sameersyd": "sameer.nwaz@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/sameersyd/MotionToastView.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "MotionToastView/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MotionToastView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - MotionToastView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MotionToastView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MotionToastView: 7cc1b9eb09dba856dcdc12e55c97269f20602c57 13 | 14 | PODFILE CHECKSUM: 44561815f7e0cfda2d58a3b6e754de654be55e2e 15 | 16 | COCOAPODS: 1.9.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 02DED371D739CE8F05497AF7BF843B13 /* MotionToastView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A6E18C2F206F39FE69CFFDABBC00335E /* MotionToastView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 37F9ADE848554FE29F16F5C06C150312 /* Pods-MotionToastView_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9EBE7D0B134E4BE87CC93DBF06378FD4 /* Pods-MotionToastView_Example-dummy.m */; }; 12 | 51A0FC883931E7C4462DEF1E736394DA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 13 | 73B33FE224E2D04000A31B71 /* Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73B33FDC24E2D04000A31B71 /* Extension.swift */; }; 14 | 73B33FE324E2D04000A31B71 /* MTPale.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73B33FDE24E2D04000A31B71 /* MTPale.swift */; }; 15 | 73B33FE524E2D04000A31B71 /* MTVibrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73B33FE024E2D04000A31B71 /* MTVibrant.swift */; }; 16 | 73B33FF124E2EC1500A31B71 /* MTPale.xib in Resources */ = {isa = PBXBuildFile; fileRef = 73B33FEF24E2EC1500A31B71 /* MTPale.xib */; }; 17 | 73B33FF224E2EC1500A31B71 /* MTVibrant.xib in Resources */ = {isa = PBXBuildFile; fileRef = 73B33FF024E2EC1500A31B71 /* MTVibrant.xib */; }; 18 | 73E53B4024E45EA700D33441 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 73E53B3F24E45EA700D33441 /* Assets.xcassets */; }; 19 | A654D997E6191124E1C813518B66BF9C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 20 | B3E0502A15C5F1BCE3EC50EFD5EDAFE4 /* Pods-MotionToastView_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A0884BDA40E854D4F6FEE47C2967218 /* Pods-MotionToastView_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | B48F65AC554EAA4AAA279B602E6E69A9 /* Pods-MotionToastView_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DBE7885F63671799B1C2441F8992FB9C /* Pods-MotionToastView_Tests-dummy.m */; }; 22 | BC883FC42CA1979898809A132FC2B6B2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 23 | BFE03579E051E2E0AEB5AEA61CE875FB /* Pods-MotionToastView_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = EF5776D2842F02C0EF153277AF67872F /* Pods-MotionToastView_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 24 | D5053594044BD524B10DF5A9B7D12A60 /* MotionToastView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C816EBCFF35E98B6B9F099C9797625DC /* MotionToastView-dummy.m */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 59A5E4E4E401EA86056806F9A5D4283F /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 60116FFC3985DAAAB09C03BD5B3D0E6D; 33 | remoteInfo = "Pods-MotionToastView_Example"; 34 | }; 35 | 5DFFE75ED15FA98F600596C17A009AA7 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = CD0C8392CE9553EFD7B2D911F805A8AE; 40 | remoteInfo = MotionToastView; 41 | }; 42 | /* End PBXContainerItemProxy section */ 43 | 44 | /* Begin PBXFileReference section */ 45 | 0419D937C32235E777771A9339CE70A6 /* Pods-MotionToastView_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MotionToastView_Tests-Info.plist"; sourceTree = ""; }; 46 | 078209C791AD1FD37E74872CA35041C2 /* Pods-MotionToastView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MotionToastView_Example.debug.xcconfig"; sourceTree = ""; }; 47 | 1CCBA19D6837AEF4CCBA7B2544E15C4B /* MotionToastView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = MotionToastView.modulemap; sourceTree = ""; }; 48 | 245F5E6052CFF22C79ECD561E2B53BA9 /* Pods-MotionToastView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MotionToastView_Example.release.xcconfig"; sourceTree = ""; }; 49 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 50 | 36262E12B307C9E8C6CB8F92B95009C2 /* MotionToastView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "MotionToastView-Info.plist"; sourceTree = ""; }; 51 | 38949DF622015B9A8C7DB2DD58EC4F41 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 52 | 3A0884BDA40E854D4F6FEE47C2967218 /* Pods-MotionToastView_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MotionToastView_Example-umbrella.h"; sourceTree = ""; }; 53 | 3CD47CC56AB30A6CA2F70DD8DFFA98E3 /* Pods-MotionToastView_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MotionToastView_Example-Info.plist"; sourceTree = ""; }; 54 | 448740457A66D530C716E215CFA29D09 /* Pods-MotionToastView_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-MotionToastView_Example.modulemap"; sourceTree = ""; }; 55 | 4FD9093ABA28C24C0D87D4925FB0D434 /* Pods-MotionToastView_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MotionToastView_Example-acknowledgements.plist"; sourceTree = ""; }; 56 | 63556D3F9B78112AB0F6F8F4951E50E5 /* Pods-MotionToastView_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MotionToastView_Tests-acknowledgements.plist"; sourceTree = ""; }; 57 | 672DA88812BC5D56846BDAC0CA5EEE9B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 58 | 6A49FE31F4FED1ED792315C8CEEC845B /* MotionToastView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MotionToastView-prefix.pch"; sourceTree = ""; }; 59 | 73B33FDC24E2D04000A31B71 /* Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extension.swift; sourceTree = ""; }; 60 | 73B33FDE24E2D04000A31B71 /* MTPale.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MTPale.swift; sourceTree = ""; }; 61 | 73B33FE024E2D04000A31B71 /* MTVibrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MTVibrant.swift; sourceTree = ""; }; 62 | 73B33FEF24E2EC1500A31B71 /* MTPale.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MTPale.xib; sourceTree = ""; }; 63 | 73B33FF024E2EC1500A31B71 /* MTVibrant.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MTVibrant.xib; sourceTree = ""; }; 64 | 73E53B3F24E45EA700D33441 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = MotionToastView/Assets.xcassets; sourceTree = ""; }; 65 | 75AAAAE2F4076B21425008E76A889A4F /* Pods_MotionToastView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MotionToastView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 780A31969A189690A2AD7A7533511818 /* Pods-MotionToastView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MotionToastView_Tests.debug.xcconfig"; sourceTree = ""; }; 67 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 68 | 9EBE7D0B134E4BE87CC93DBF06378FD4 /* Pods-MotionToastView_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MotionToastView_Example-dummy.m"; sourceTree = ""; }; 69 | A6E18C2F206F39FE69CFFDABBC00335E /* MotionToastView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MotionToastView-umbrella.h"; sourceTree = ""; }; 70 | A9CC327590FE7B635B9F47AD0F003B65 /* MotionToastView.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MotionToastView.debug.xcconfig; sourceTree = ""; }; 71 | BAD556380728939919275BA69393F4BE /* Pods-MotionToastView_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MotionToastView_Example-acknowledgements.markdown"; sourceTree = ""; }; 72 | BF703DAE6FB1D1E47E83F8A40935147B /* MotionToastView.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = MotionToastView.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 73 | C2DB8587F9EA840BFDA0B46D6A6E6F4A /* Pods_MotionToastView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MotionToastView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | C66FDF296BFF272D578C8D43CF733FA8 /* MotionToastView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MotionToastView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 75 | C76596112BBB93C679D05587632718DC /* Pods-MotionToastView_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-MotionToastView_Tests.modulemap"; sourceTree = ""; }; 76 | C816EBCFF35E98B6B9F099C9797625DC /* MotionToastView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "MotionToastView-dummy.m"; sourceTree = ""; }; 77 | CFFD3B490BA5BC87DEFA5F13A29506B3 /* Pods-MotionToastView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MotionToastView_Tests.release.xcconfig"; sourceTree = ""; }; 78 | D8702293267199DE379F719391473ED4 /* Pods-MotionToastView_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MotionToastView_Example-frameworks.sh"; sourceTree = ""; }; 79 | DBE7885F63671799B1C2441F8992FB9C /* Pods-MotionToastView_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MotionToastView_Tests-dummy.m"; sourceTree = ""; }; 80 | EF5776D2842F02C0EF153277AF67872F /* Pods-MotionToastView_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MotionToastView_Tests-umbrella.h"; sourceTree = ""; }; 81 | F37B8B38EFBFACAC18E6E74F1657BF0A /* Pods-MotionToastView_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MotionToastView_Tests-acknowledgements.markdown"; sourceTree = ""; }; 82 | FF8AC92E2D3F2057CEA068E05974C3FE /* MotionToastView.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MotionToastView.release.xcconfig; sourceTree = ""; }; 83 | /* End PBXFileReference section */ 84 | 85 | /* Begin PBXFrameworksBuildPhase section */ 86 | A2EB3AF5309837ACD8DF297D7FF92398 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | A654D997E6191124E1C813518B66BF9C /* Foundation.framework in Frameworks */, 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | AA7274027950D84C8412A1DC2D02C3B6 /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | BC883FC42CA1979898809A132FC2B6B2 /* Foundation.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | E6EDEC090FE80F6650F7A46D924025BE /* Frameworks */ = { 103 | isa = PBXFrameworksBuildPhase; 104 | buildActionMask = 2147483647; 105 | files = ( 106 | 51A0FC883931E7C4462DEF1E736394DA /* Foundation.framework in Frameworks */, 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | /* End PBXFrameworksBuildPhase section */ 111 | 112 | /* Begin PBXGroup section */ 113 | 136804D438AD5235E023290CB5BEE7C4 /* Products */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | C66FDF296BFF272D578C8D43CF733FA8 /* MotionToastView.framework */, 117 | 75AAAAE2F4076B21425008E76A889A4F /* Pods_MotionToastView_Example.framework */, 118 | C2DB8587F9EA840BFDA0B46D6A6E6F4A /* Pods_MotionToastView_Tests.framework */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | 2864BEBBCD986AB27C240AD0692CDE6B /* Targets Support Files */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | A8EE8808A9D85CC562DC24E0759E48E2 /* Pods-MotionToastView_Example */, 127 | 321C653651A3F21FB5F00F51E78EDCB3 /* Pods-MotionToastView_Tests */, 128 | ); 129 | name = "Targets Support Files"; 130 | sourceTree = ""; 131 | }; 132 | 321C653651A3F21FB5F00F51E78EDCB3 /* Pods-MotionToastView_Tests */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | C76596112BBB93C679D05587632718DC /* Pods-MotionToastView_Tests.modulemap */, 136 | F37B8B38EFBFACAC18E6E74F1657BF0A /* Pods-MotionToastView_Tests-acknowledgements.markdown */, 137 | 63556D3F9B78112AB0F6F8F4951E50E5 /* Pods-MotionToastView_Tests-acknowledgements.plist */, 138 | DBE7885F63671799B1C2441F8992FB9C /* Pods-MotionToastView_Tests-dummy.m */, 139 | 0419D937C32235E777771A9339CE70A6 /* Pods-MotionToastView_Tests-Info.plist */, 140 | EF5776D2842F02C0EF153277AF67872F /* Pods-MotionToastView_Tests-umbrella.h */, 141 | 780A31969A189690A2AD7A7533511818 /* Pods-MotionToastView_Tests.debug.xcconfig */, 142 | CFFD3B490BA5BC87DEFA5F13A29506B3 /* Pods-MotionToastView_Tests.release.xcconfig */, 143 | ); 144 | name = "Pods-MotionToastView_Tests"; 145 | path = "Target Support Files/Pods-MotionToastView_Tests"; 146 | sourceTree = ""; 147 | }; 148 | 73B33FDB24E2CF7100A31B71 /* Source */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | 73B33FDC24E2D04000A31B71 /* Extension.swift */, 152 | 73B33FDD24E2D04000A31B71 /* MotionToastStyles */, 153 | ); 154 | path = Source; 155 | sourceTree = ""; 156 | }; 157 | 73B33FDD24E2D04000A31B71 /* MotionToastStyles */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 73B33FEF24E2EC1500A31B71 /* MTPale.xib */, 161 | 73B33FF024E2EC1500A31B71 /* MTVibrant.xib */, 162 | 73B33FDE24E2D04000A31B71 /* MTPale.swift */, 163 | 73B33FE024E2D04000A31B71 /* MTVibrant.swift */, 164 | ); 165 | path = MotionToastStyles; 166 | sourceTree = ""; 167 | }; 168 | 7A1142684E9B36FED548DA7A47DC5888 /* Pod */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 38949DF622015B9A8C7DB2DD58EC4F41 /* LICENSE */, 172 | BF703DAE6FB1D1E47E83F8A40935147B /* MotionToastView.podspec */, 173 | 672DA88812BC5D56846BDAC0CA5EEE9B /* README.md */, 174 | ); 175 | name = Pod; 176 | sourceTree = ""; 177 | }; 178 | A8EE8808A9D85CC562DC24E0759E48E2 /* Pods-MotionToastView_Example */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 448740457A66D530C716E215CFA29D09 /* Pods-MotionToastView_Example.modulemap */, 182 | BAD556380728939919275BA69393F4BE /* Pods-MotionToastView_Example-acknowledgements.markdown */, 183 | 4FD9093ABA28C24C0D87D4925FB0D434 /* Pods-MotionToastView_Example-acknowledgements.plist */, 184 | 9EBE7D0B134E4BE87CC93DBF06378FD4 /* Pods-MotionToastView_Example-dummy.m */, 185 | D8702293267199DE379F719391473ED4 /* Pods-MotionToastView_Example-frameworks.sh */, 186 | 3CD47CC56AB30A6CA2F70DD8DFFA98E3 /* Pods-MotionToastView_Example-Info.plist */, 187 | 3A0884BDA40E854D4F6FEE47C2967218 /* Pods-MotionToastView_Example-umbrella.h */, 188 | 078209C791AD1FD37E74872CA35041C2 /* Pods-MotionToastView_Example.debug.xcconfig */, 189 | 245F5E6052CFF22C79ECD561E2B53BA9 /* Pods-MotionToastView_Example.release.xcconfig */, 190 | ); 191 | name = "Pods-MotionToastView_Example"; 192 | path = "Target Support Files/Pods-MotionToastView_Example"; 193 | sourceTree = ""; 194 | }; 195 | BC08722EE89834BC7BF67CB4C2958AF2 /* Support Files */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | 1CCBA19D6837AEF4CCBA7B2544E15C4B /* MotionToastView.modulemap */, 199 | C816EBCFF35E98B6B9F099C9797625DC /* MotionToastView-dummy.m */, 200 | 36262E12B307C9E8C6CB8F92B95009C2 /* MotionToastView-Info.plist */, 201 | 6A49FE31F4FED1ED792315C8CEEC845B /* MotionToastView-prefix.pch */, 202 | A6E18C2F206F39FE69CFFDABBC00335E /* MotionToastView-umbrella.h */, 203 | A9CC327590FE7B635B9F47AD0F003B65 /* MotionToastView.debug.xcconfig */, 204 | FF8AC92E2D3F2057CEA068E05974C3FE /* MotionToastView.release.xcconfig */, 205 | ); 206 | name = "Support Files"; 207 | path = "Example/Pods/Target Support Files/MotionToastView"; 208 | sourceTree = ""; 209 | }; 210 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 214 | ); 215 | name = iOS; 216 | sourceTree = ""; 217 | }; 218 | C1C732750304EB2E26DD82FD7571D297 /* Development Pods */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | D7E1FAFAB5CC3B87DE77E227E67126C3 /* MotionToastView */, 222 | ); 223 | name = "Development Pods"; 224 | sourceTree = ""; 225 | }; 226 | CF1408CF629C7361332E53B88F7BD30C = { 227 | isa = PBXGroup; 228 | children = ( 229 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 230 | C1C732750304EB2E26DD82FD7571D297 /* Development Pods */, 231 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 232 | 136804D438AD5235E023290CB5BEE7C4 /* Products */, 233 | 2864BEBBCD986AB27C240AD0692CDE6B /* Targets Support Files */, 234 | ); 235 | sourceTree = ""; 236 | }; 237 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 238 | isa = PBXGroup; 239 | children = ( 240 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 241 | ); 242 | name = Frameworks; 243 | sourceTree = ""; 244 | }; 245 | D7E1FAFAB5CC3B87DE77E227E67126C3 /* MotionToastView */ = { 246 | isa = PBXGroup; 247 | children = ( 248 | 73E53B3F24E45EA700D33441 /* Assets.xcassets */, 249 | 73B33FDB24E2CF7100A31B71 /* Source */, 250 | 7A1142684E9B36FED548DA7A47DC5888 /* Pod */, 251 | BC08722EE89834BC7BF67CB4C2958AF2 /* Support Files */, 252 | ); 253 | name = MotionToastView; 254 | path = ../..; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXGroup section */ 258 | 259 | /* Begin PBXHeadersBuildPhase section */ 260 | AAB2717959B7628AD34F9F699CA6D6B0 /* Headers */ = { 261 | isa = PBXHeadersBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | BFE03579E051E2E0AEB5AEA61CE875FB /* Pods-MotionToastView_Tests-umbrella.h in Headers */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | F4841CF5B6BBAEA0726BFAC6C11B523F /* Headers */ = { 269 | isa = PBXHeadersBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | 02DED371D739CE8F05497AF7BF843B13 /* MotionToastView-umbrella.h in Headers */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | FBD7D8968D5FF0798AFB9C7CAD0164FD /* Headers */ = { 277 | isa = PBXHeadersBuildPhase; 278 | buildActionMask = 2147483647; 279 | files = ( 280 | B3E0502A15C5F1BCE3EC50EFD5EDAFE4 /* Pods-MotionToastView_Example-umbrella.h in Headers */, 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | }; 284 | /* End PBXHeadersBuildPhase section */ 285 | 286 | /* Begin PBXNativeTarget section */ 287 | 5335DB9DF0CF4168712E5933D5C7CCFA /* Pods-MotionToastView_Tests */ = { 288 | isa = PBXNativeTarget; 289 | buildConfigurationList = 3D5E42462BC730F8F525AA01C13A8375 /* Build configuration list for PBXNativeTarget "Pods-MotionToastView_Tests" */; 290 | buildPhases = ( 291 | AAB2717959B7628AD34F9F699CA6D6B0 /* Headers */, 292 | 251BCD37853BAD3854C2294C0FD9AD27 /* Sources */, 293 | E6EDEC090FE80F6650F7A46D924025BE /* Frameworks */, 294 | F257A85FD2BF0B42A9FA8A382FCEAA41 /* Resources */, 295 | ); 296 | buildRules = ( 297 | ); 298 | dependencies = ( 299 | 17D99FB9148AA6E4931449FA2BDC52F5 /* PBXTargetDependency */, 300 | ); 301 | name = "Pods-MotionToastView_Tests"; 302 | productName = "Pods-MotionToastView_Tests"; 303 | productReference = C2DB8587F9EA840BFDA0B46D6A6E6F4A /* Pods_MotionToastView_Tests.framework */; 304 | productType = "com.apple.product-type.framework"; 305 | }; 306 | 60116FFC3985DAAAB09C03BD5B3D0E6D /* Pods-MotionToastView_Example */ = { 307 | isa = PBXNativeTarget; 308 | buildConfigurationList = B53699DD46CE9F2B38FA31F30F7DC2CD /* Build configuration list for PBXNativeTarget "Pods-MotionToastView_Example" */; 309 | buildPhases = ( 310 | FBD7D8968D5FF0798AFB9C7CAD0164FD /* Headers */, 311 | 79D6CCCDD76DA412317C6B8F92B6819E /* Sources */, 312 | A2EB3AF5309837ACD8DF297D7FF92398 /* Frameworks */, 313 | 9858CFB1EA3A85E628822ADB0DACB420 /* Resources */, 314 | ); 315 | buildRules = ( 316 | ); 317 | dependencies = ( 318 | 41AAA473BAB91A555715BE08AEA0B89D /* PBXTargetDependency */, 319 | ); 320 | name = "Pods-MotionToastView_Example"; 321 | productName = "Pods-MotionToastView_Example"; 322 | productReference = 75AAAAE2F4076B21425008E76A889A4F /* Pods_MotionToastView_Example.framework */; 323 | productType = "com.apple.product-type.framework"; 324 | }; 325 | CD0C8392CE9553EFD7B2D911F805A8AE /* MotionToastView */ = { 326 | isa = PBXNativeTarget; 327 | buildConfigurationList = 42B68E1452E98F66AB49A1EC722B31F3 /* Build configuration list for PBXNativeTarget "MotionToastView" */; 328 | buildPhases = ( 329 | F4841CF5B6BBAEA0726BFAC6C11B523F /* Headers */, 330 | 115D084A434F4938C5A81CF6F31517E6 /* Sources */, 331 | AA7274027950D84C8412A1DC2D02C3B6 /* Frameworks */, 332 | FA34E39EF1AE525A991CC59671F4CE63 /* Resources */, 333 | ); 334 | buildRules = ( 335 | ); 336 | dependencies = ( 337 | ); 338 | name = MotionToastView; 339 | productName = MotionToastView; 340 | productReference = C66FDF296BFF272D578C8D43CF733FA8 /* MotionToastView.framework */; 341 | productType = "com.apple.product-type.framework"; 342 | }; 343 | /* End PBXNativeTarget section */ 344 | 345 | /* Begin PBXProject section */ 346 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 347 | isa = PBXProject; 348 | attributes = { 349 | LastSwiftUpdateCheck = 1100; 350 | LastUpgradeCheck = 1100; 351 | TargetAttributes = { 352 | CD0C8392CE9553EFD7B2D911F805A8AE = { 353 | LastSwiftMigration = 1150; 354 | }; 355 | }; 356 | }; 357 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 358 | compatibilityVersion = "Xcode 3.2"; 359 | developmentRegion = en; 360 | hasScannedForEncodings = 0; 361 | knownRegions = ( 362 | en, 363 | Base, 364 | ); 365 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 366 | productRefGroup = 136804D438AD5235E023290CB5BEE7C4 /* Products */; 367 | projectDirPath = ""; 368 | projectRoot = ""; 369 | targets = ( 370 | CD0C8392CE9553EFD7B2D911F805A8AE /* MotionToastView */, 371 | 60116FFC3985DAAAB09C03BD5B3D0E6D /* Pods-MotionToastView_Example */, 372 | 5335DB9DF0CF4168712E5933D5C7CCFA /* Pods-MotionToastView_Tests */, 373 | ); 374 | }; 375 | /* End PBXProject section */ 376 | 377 | /* Begin PBXResourcesBuildPhase section */ 378 | 9858CFB1EA3A85E628822ADB0DACB420 /* Resources */ = { 379 | isa = PBXResourcesBuildPhase; 380 | buildActionMask = 2147483647; 381 | files = ( 382 | ); 383 | runOnlyForDeploymentPostprocessing = 0; 384 | }; 385 | F257A85FD2BF0B42A9FA8A382FCEAA41 /* Resources */ = { 386 | isa = PBXResourcesBuildPhase; 387 | buildActionMask = 2147483647; 388 | files = ( 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | FA34E39EF1AE525A991CC59671F4CE63 /* Resources */ = { 393 | isa = PBXResourcesBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | 73B33FF124E2EC1500A31B71 /* MTPale.xib in Resources */, 397 | 73E53B4024E45EA700D33441 /* Assets.xcassets in Resources */, 398 | 73B33FF224E2EC1500A31B71 /* MTVibrant.xib in Resources */, 399 | ); 400 | runOnlyForDeploymentPostprocessing = 0; 401 | }; 402 | /* End PBXResourcesBuildPhase section */ 403 | 404 | /* Begin PBXSourcesBuildPhase section */ 405 | 115D084A434F4938C5A81CF6F31517E6 /* Sources */ = { 406 | isa = PBXSourcesBuildPhase; 407 | buildActionMask = 2147483647; 408 | files = ( 409 | 73B33FE324E2D04000A31B71 /* MTPale.swift in Sources */, 410 | 73B33FE524E2D04000A31B71 /* MTVibrant.swift in Sources */, 411 | D5053594044BD524B10DF5A9B7D12A60 /* MotionToastView-dummy.m in Sources */, 412 | 73B33FE224E2D04000A31B71 /* Extension.swift in Sources */, 413 | ); 414 | runOnlyForDeploymentPostprocessing = 0; 415 | }; 416 | 251BCD37853BAD3854C2294C0FD9AD27 /* Sources */ = { 417 | isa = PBXSourcesBuildPhase; 418 | buildActionMask = 2147483647; 419 | files = ( 420 | B48F65AC554EAA4AAA279B602E6E69A9 /* Pods-MotionToastView_Tests-dummy.m in Sources */, 421 | ); 422 | runOnlyForDeploymentPostprocessing = 0; 423 | }; 424 | 79D6CCCDD76DA412317C6B8F92B6819E /* Sources */ = { 425 | isa = PBXSourcesBuildPhase; 426 | buildActionMask = 2147483647; 427 | files = ( 428 | 37F9ADE848554FE29F16F5C06C150312 /* Pods-MotionToastView_Example-dummy.m in Sources */, 429 | ); 430 | runOnlyForDeploymentPostprocessing = 0; 431 | }; 432 | /* End PBXSourcesBuildPhase section */ 433 | 434 | /* Begin PBXTargetDependency section */ 435 | 17D99FB9148AA6E4931449FA2BDC52F5 /* PBXTargetDependency */ = { 436 | isa = PBXTargetDependency; 437 | name = "Pods-MotionToastView_Example"; 438 | target = 60116FFC3985DAAAB09C03BD5B3D0E6D /* Pods-MotionToastView_Example */; 439 | targetProxy = 59A5E4E4E401EA86056806F9A5D4283F /* PBXContainerItemProxy */; 440 | }; 441 | 41AAA473BAB91A555715BE08AEA0B89D /* PBXTargetDependency */ = { 442 | isa = PBXTargetDependency; 443 | name = MotionToastView; 444 | target = CD0C8392CE9553EFD7B2D911F805A8AE /* MotionToastView */; 445 | targetProxy = 5DFFE75ED15FA98F600596C17A009AA7 /* PBXContainerItemProxy */; 446 | }; 447 | /* End PBXTargetDependency section */ 448 | 449 | /* Begin XCBuildConfiguration section */ 450 | 2480905CFA71F27D3D572D067A4025F0 /* Debug */ = { 451 | isa = XCBuildConfiguration; 452 | baseConfigurationReference = 078209C791AD1FD37E74872CA35041C2 /* Pods-MotionToastView_Example.debug.xcconfig */; 453 | buildSettings = { 454 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 455 | CODE_SIGN_IDENTITY = ""; 456 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 457 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 458 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 459 | CURRENT_PROJECT_VERSION = 1; 460 | DEFINES_MODULE = YES; 461 | DYLIB_COMPATIBILITY_VERSION = 1; 462 | DYLIB_CURRENT_VERSION = 1; 463 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 464 | INFOPLIST_FILE = "Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-Info.plist"; 465 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 466 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 467 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 468 | MACH_O_TYPE = staticlib; 469 | MODULEMAP_FILE = "Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example.modulemap"; 470 | OTHER_LDFLAGS = ""; 471 | OTHER_LIBTOOLFLAGS = ""; 472 | PODS_ROOT = "$(SRCROOT)"; 473 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 474 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 475 | SDKROOT = iphoneos; 476 | SKIP_INSTALL = YES; 477 | TARGETED_DEVICE_FAMILY = "1,2"; 478 | VERSIONING_SYSTEM = "apple-generic"; 479 | VERSION_INFO_PREFIX = ""; 480 | }; 481 | name = Debug; 482 | }; 483 | 3C3C6B13273A0D839F94443F59E7E681 /* Release */ = { 484 | isa = XCBuildConfiguration; 485 | baseConfigurationReference = CFFD3B490BA5BC87DEFA5F13A29506B3 /* Pods-MotionToastView_Tests.release.xcconfig */; 486 | buildSettings = { 487 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 488 | CODE_SIGN_IDENTITY = ""; 489 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 490 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 491 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 492 | CURRENT_PROJECT_VERSION = 1; 493 | DEFINES_MODULE = YES; 494 | DYLIB_COMPATIBILITY_VERSION = 1; 495 | DYLIB_CURRENT_VERSION = 1; 496 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 497 | INFOPLIST_FILE = "Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests-Info.plist"; 498 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 499 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 500 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 501 | MACH_O_TYPE = staticlib; 502 | MODULEMAP_FILE = "Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests.modulemap"; 503 | OTHER_LDFLAGS = ""; 504 | OTHER_LIBTOOLFLAGS = ""; 505 | PODS_ROOT = "$(SRCROOT)"; 506 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 507 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 508 | SDKROOT = iphoneos; 509 | SKIP_INSTALL = YES; 510 | TARGETED_DEVICE_FAMILY = "1,2"; 511 | VALIDATE_PRODUCT = YES; 512 | VERSIONING_SYSTEM = "apple-generic"; 513 | VERSION_INFO_PREFIX = ""; 514 | }; 515 | name = Release; 516 | }; 517 | 6773CC74ACAE1BA9E3D694D533B08240 /* Release */ = { 518 | isa = XCBuildConfiguration; 519 | baseConfigurationReference = FF8AC92E2D3F2057CEA068E05974C3FE /* MotionToastView.release.xcconfig */; 520 | buildSettings = { 521 | CLANG_ENABLE_MODULES = YES; 522 | CODE_SIGN_IDENTITY = ""; 523 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 524 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 525 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 526 | CURRENT_PROJECT_VERSION = 1; 527 | DEFINES_MODULE = YES; 528 | DYLIB_COMPATIBILITY_VERSION = 1; 529 | DYLIB_CURRENT_VERSION = 1; 530 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 531 | GCC_PREFIX_HEADER = "Target Support Files/MotionToastView/MotionToastView-prefix.pch"; 532 | INFOPLIST_FILE = "Target Support Files/MotionToastView/MotionToastView-Info.plist"; 533 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 534 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 535 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 536 | MODULEMAP_FILE = "Target Support Files/MotionToastView/MotionToastView.modulemap"; 537 | PRODUCT_MODULE_NAME = MotionToastView; 538 | PRODUCT_NAME = MotionToastView; 539 | SDKROOT = iphoneos; 540 | SKIP_INSTALL = YES; 541 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 542 | SWIFT_VERSION = 5.0; 543 | TARGETED_DEVICE_FAMILY = "1,2"; 544 | VALIDATE_PRODUCT = YES; 545 | VERSIONING_SYSTEM = "apple-generic"; 546 | VERSION_INFO_PREFIX = ""; 547 | }; 548 | name = Release; 549 | }; 550 | A14960BC4FF41E14C1E8127E33BEB074 /* Release */ = { 551 | isa = XCBuildConfiguration; 552 | baseConfigurationReference = 245F5E6052CFF22C79ECD561E2B53BA9 /* Pods-MotionToastView_Example.release.xcconfig */; 553 | buildSettings = { 554 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 555 | CODE_SIGN_IDENTITY = ""; 556 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 557 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 558 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 559 | CURRENT_PROJECT_VERSION = 1; 560 | DEFINES_MODULE = YES; 561 | DYLIB_COMPATIBILITY_VERSION = 1; 562 | DYLIB_CURRENT_VERSION = 1; 563 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 564 | INFOPLIST_FILE = "Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-Info.plist"; 565 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 566 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 567 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 568 | MACH_O_TYPE = staticlib; 569 | MODULEMAP_FILE = "Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example.modulemap"; 570 | OTHER_LDFLAGS = ""; 571 | OTHER_LIBTOOLFLAGS = ""; 572 | PODS_ROOT = "$(SRCROOT)"; 573 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 574 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 575 | SDKROOT = iphoneos; 576 | SKIP_INSTALL = YES; 577 | TARGETED_DEVICE_FAMILY = "1,2"; 578 | VALIDATE_PRODUCT = YES; 579 | VERSIONING_SYSTEM = "apple-generic"; 580 | VERSION_INFO_PREFIX = ""; 581 | }; 582 | name = Release; 583 | }; 584 | B0087CB4594321EF41619F3181FE120E /* Release */ = { 585 | isa = XCBuildConfiguration; 586 | buildSettings = { 587 | ALWAYS_SEARCH_USER_PATHS = NO; 588 | CLANG_ANALYZER_NONNULL = YES; 589 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 590 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 591 | CLANG_CXX_LIBRARY = "libc++"; 592 | CLANG_ENABLE_MODULES = YES; 593 | CLANG_ENABLE_OBJC_ARC = YES; 594 | CLANG_ENABLE_OBJC_WEAK = YES; 595 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 596 | CLANG_WARN_BOOL_CONVERSION = YES; 597 | CLANG_WARN_COMMA = YES; 598 | CLANG_WARN_CONSTANT_CONVERSION = YES; 599 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 600 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 601 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 602 | CLANG_WARN_EMPTY_BODY = YES; 603 | CLANG_WARN_ENUM_CONVERSION = YES; 604 | CLANG_WARN_INFINITE_RECURSION = YES; 605 | CLANG_WARN_INT_CONVERSION = YES; 606 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 607 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 608 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 609 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 610 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 611 | CLANG_WARN_STRICT_PROTOTYPES = YES; 612 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 613 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 614 | CLANG_WARN_UNREACHABLE_CODE = YES; 615 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 616 | COPY_PHASE_STRIP = NO; 617 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 618 | ENABLE_NS_ASSERTIONS = NO; 619 | ENABLE_STRICT_OBJC_MSGSEND = YES; 620 | GCC_C_LANGUAGE_STANDARD = gnu11; 621 | GCC_NO_COMMON_BLOCKS = YES; 622 | GCC_PREPROCESSOR_DEFINITIONS = ( 623 | "POD_CONFIGURATION_RELEASE=1", 624 | "$(inherited)", 625 | ); 626 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 627 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 628 | GCC_WARN_UNDECLARED_SELECTOR = YES; 629 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 630 | GCC_WARN_UNUSED_FUNCTION = YES; 631 | GCC_WARN_UNUSED_VARIABLE = YES; 632 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 633 | MTL_ENABLE_DEBUG_INFO = NO; 634 | MTL_FAST_MATH = YES; 635 | PRODUCT_NAME = "$(TARGET_NAME)"; 636 | STRIP_INSTALLED_PRODUCT = NO; 637 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 638 | SWIFT_VERSION = 5.0; 639 | SYMROOT = "${SRCROOT}/../build"; 640 | }; 641 | name = Release; 642 | }; 643 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */ = { 644 | isa = XCBuildConfiguration; 645 | buildSettings = { 646 | ALWAYS_SEARCH_USER_PATHS = NO; 647 | CLANG_ANALYZER_NONNULL = YES; 648 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 649 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 650 | CLANG_CXX_LIBRARY = "libc++"; 651 | CLANG_ENABLE_MODULES = YES; 652 | CLANG_ENABLE_OBJC_ARC = YES; 653 | CLANG_ENABLE_OBJC_WEAK = YES; 654 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 655 | CLANG_WARN_BOOL_CONVERSION = YES; 656 | CLANG_WARN_COMMA = YES; 657 | CLANG_WARN_CONSTANT_CONVERSION = YES; 658 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 659 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 660 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 661 | CLANG_WARN_EMPTY_BODY = YES; 662 | CLANG_WARN_ENUM_CONVERSION = YES; 663 | CLANG_WARN_INFINITE_RECURSION = YES; 664 | CLANG_WARN_INT_CONVERSION = YES; 665 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 666 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 667 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 668 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 669 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 670 | CLANG_WARN_STRICT_PROTOTYPES = YES; 671 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 672 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 673 | CLANG_WARN_UNREACHABLE_CODE = YES; 674 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 675 | COPY_PHASE_STRIP = NO; 676 | DEBUG_INFORMATION_FORMAT = dwarf; 677 | ENABLE_STRICT_OBJC_MSGSEND = YES; 678 | ENABLE_TESTABILITY = YES; 679 | GCC_C_LANGUAGE_STANDARD = gnu11; 680 | GCC_DYNAMIC_NO_PIC = NO; 681 | GCC_NO_COMMON_BLOCKS = YES; 682 | GCC_OPTIMIZATION_LEVEL = 0; 683 | GCC_PREPROCESSOR_DEFINITIONS = ( 684 | "POD_CONFIGURATION_DEBUG=1", 685 | "DEBUG=1", 686 | "$(inherited)", 687 | ); 688 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 689 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 690 | GCC_WARN_UNDECLARED_SELECTOR = YES; 691 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 692 | GCC_WARN_UNUSED_FUNCTION = YES; 693 | GCC_WARN_UNUSED_VARIABLE = YES; 694 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 695 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 696 | MTL_FAST_MATH = YES; 697 | ONLY_ACTIVE_ARCH = YES; 698 | PRODUCT_NAME = "$(TARGET_NAME)"; 699 | STRIP_INSTALLED_PRODUCT = NO; 700 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 701 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 702 | SWIFT_VERSION = 5.0; 703 | SYMROOT = "${SRCROOT}/../build"; 704 | }; 705 | name = Debug; 706 | }; 707 | E28694C2647A8E1D8ECDE2E814127837 /* Debug */ = { 708 | isa = XCBuildConfiguration; 709 | baseConfigurationReference = 780A31969A189690A2AD7A7533511818 /* Pods-MotionToastView_Tests.debug.xcconfig */; 710 | buildSettings = { 711 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 712 | CODE_SIGN_IDENTITY = ""; 713 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 714 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 715 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 716 | CURRENT_PROJECT_VERSION = 1; 717 | DEFINES_MODULE = YES; 718 | DYLIB_COMPATIBILITY_VERSION = 1; 719 | DYLIB_CURRENT_VERSION = 1; 720 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 721 | INFOPLIST_FILE = "Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests-Info.plist"; 722 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 723 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 724 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 725 | MACH_O_TYPE = staticlib; 726 | MODULEMAP_FILE = "Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests.modulemap"; 727 | OTHER_LDFLAGS = ""; 728 | OTHER_LIBTOOLFLAGS = ""; 729 | PODS_ROOT = "$(SRCROOT)"; 730 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 731 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 732 | SDKROOT = iphoneos; 733 | SKIP_INSTALL = YES; 734 | TARGETED_DEVICE_FAMILY = "1,2"; 735 | VERSIONING_SYSTEM = "apple-generic"; 736 | VERSION_INFO_PREFIX = ""; 737 | }; 738 | name = Debug; 739 | }; 740 | FBBFB3CC834170F02003310834A77987 /* Debug */ = { 741 | isa = XCBuildConfiguration; 742 | baseConfigurationReference = A9CC327590FE7B635B9F47AD0F003B65 /* MotionToastView.debug.xcconfig */; 743 | buildSettings = { 744 | CLANG_ENABLE_MODULES = YES; 745 | CODE_SIGN_IDENTITY = ""; 746 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 747 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 748 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 749 | CURRENT_PROJECT_VERSION = 1; 750 | DEFINES_MODULE = YES; 751 | DYLIB_COMPATIBILITY_VERSION = 1; 752 | DYLIB_CURRENT_VERSION = 1; 753 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 754 | GCC_PREFIX_HEADER = "Target Support Files/MotionToastView/MotionToastView-prefix.pch"; 755 | INFOPLIST_FILE = "Target Support Files/MotionToastView/MotionToastView-Info.plist"; 756 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 757 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 758 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 759 | MODULEMAP_FILE = "Target Support Files/MotionToastView/MotionToastView.modulemap"; 760 | PRODUCT_MODULE_NAME = MotionToastView; 761 | PRODUCT_NAME = MotionToastView; 762 | SDKROOT = iphoneos; 763 | SKIP_INSTALL = YES; 764 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 765 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 766 | SWIFT_VERSION = 5.0; 767 | TARGETED_DEVICE_FAMILY = "1,2"; 768 | VERSIONING_SYSTEM = "apple-generic"; 769 | VERSION_INFO_PREFIX = ""; 770 | }; 771 | name = Debug; 772 | }; 773 | /* End XCBuildConfiguration section */ 774 | 775 | /* Begin XCConfigurationList section */ 776 | 3D5E42462BC730F8F525AA01C13A8375 /* Build configuration list for PBXNativeTarget "Pods-MotionToastView_Tests" */ = { 777 | isa = XCConfigurationList; 778 | buildConfigurations = ( 779 | E28694C2647A8E1D8ECDE2E814127837 /* Debug */, 780 | 3C3C6B13273A0D839F94443F59E7E681 /* Release */, 781 | ); 782 | defaultConfigurationIsVisible = 0; 783 | defaultConfigurationName = Release; 784 | }; 785 | 42B68E1452E98F66AB49A1EC722B31F3 /* Build configuration list for PBXNativeTarget "MotionToastView" */ = { 786 | isa = XCConfigurationList; 787 | buildConfigurations = ( 788 | FBBFB3CC834170F02003310834A77987 /* Debug */, 789 | 6773CC74ACAE1BA9E3D694D533B08240 /* Release */, 790 | ); 791 | defaultConfigurationIsVisible = 0; 792 | defaultConfigurationName = Release; 793 | }; 794 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 795 | isa = XCConfigurationList; 796 | buildConfigurations = ( 797 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */, 798 | B0087CB4594321EF41619F3181FE120E /* Release */, 799 | ); 800 | defaultConfigurationIsVisible = 0; 801 | defaultConfigurationName = Release; 802 | }; 803 | B53699DD46CE9F2B38FA31F30F7DC2CD /* Build configuration list for PBXNativeTarget "Pods-MotionToastView_Example" */ = { 804 | isa = XCConfigurationList; 805 | buildConfigurations = ( 806 | 2480905CFA71F27D3D572D067A4025F0 /* Debug */, 807 | A14960BC4FF41E14C1E8127E33BEB074 /* Release */, 808 | ); 809 | defaultConfigurationIsVisible = 0; 810 | defaultConfigurationName = Release; 811 | }; 812 | /* End XCConfigurationList section */ 813 | }; 814 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 815 | } 816 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MotionToastView/MotionToastView-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MotionToastView/MotionToastView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MotionToastView : NSObject 3 | @end 4 | @implementation PodsDummy_MotionToastView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MotionToastView/MotionToastView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MotionToastView/MotionToastView-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double MotionToastViewVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char MotionToastViewVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MotionToastView/MotionToastView.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MotionToastView/MotionToastView.modulemap: -------------------------------------------------------------------------------- 1 | framework module MotionToastView { 2 | umbrella header "MotionToastView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MotionToastView/MotionToastView.release.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## MotionToastView 5 | 6 | Copyright (c) 2020 sameersyd 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2020 sameersyd <sameer.nwaz@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | MotionToastView 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MotionToastView_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MotionToastView_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | warn_missing_arch=${2:-true} 88 | if [ -r "$source" ]; then 89 | # Copy the dSYM into the targets temp dir. 90 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 91 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 92 | 93 | local basename 94 | basename="$(basename -s .dSYM "$source")" 95 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 96 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 97 | 98 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 99 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 100 | strip_invalid_archs "$binary" "$warn_missing_arch" 101 | fi 102 | 103 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 104 | # Move the stripped file into its final destination. 105 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 106 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 107 | else 108 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 109 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 110 | fi 111 | fi 112 | } 113 | 114 | # Copies the bcsymbolmap files of a vendored framework 115 | install_bcsymbolmap() { 116 | local bcsymbolmap_path="$1" 117 | local destination="${BUILT_PRODUCTS_DIR}" 118 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 119 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 120 | } 121 | 122 | # Signs a framework with the provided identity 123 | code_sign_if_enabled() { 124 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 125 | # Use the current code_sign_identity 126 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 127 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 128 | 129 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 130 | code_sign_cmd="$code_sign_cmd &" 131 | fi 132 | echo "$code_sign_cmd" 133 | eval "$code_sign_cmd" 134 | fi 135 | } 136 | 137 | # Strip invalid architectures 138 | strip_invalid_archs() { 139 | binary="$1" 140 | warn_missing_arch=${2:-true} 141 | # Get architectures for current target binary 142 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 143 | # Intersect them with the architectures we are building for 144 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 145 | # If there are no archs supported by this binary then warn the user 146 | if [[ -z "$intersected_archs" ]]; then 147 | if [[ "$warn_missing_arch" == "true" ]]; then 148 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 149 | fi 150 | STRIP_BINARY_RETVAL=0 151 | return 152 | fi 153 | stripped="" 154 | for arch in $binary_archs; do 155 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 156 | # Strip non-valid architectures in-place 157 | lipo -remove "$arch" -output "$binary" "$binary" 158 | stripped="$stripped $arch" 159 | fi 160 | done 161 | if [[ "$stripped" ]]; then 162 | echo "Stripped $binary of architectures:$stripped" 163 | fi 164 | STRIP_BINARY_RETVAL=1 165 | } 166 | 167 | install_artifact() { 168 | artifact="$1" 169 | base="$(basename "$artifact")" 170 | case $base in 171 | *.framework) 172 | install_framework "$artifact" 173 | ;; 174 | *.dSYM) 175 | # Suppress arch warnings since XCFrameworks will include many dSYM files 176 | install_dsym "$artifact" "false" 177 | ;; 178 | *.bcsymbolmap) 179 | install_bcsymbolmap "$artifact" 180 | ;; 181 | *) 182 | echo "error: Unrecognized artifact "$artifact"" 183 | ;; 184 | esac 185 | } 186 | 187 | copy_artifacts() { 188 | file_list="$1" 189 | while read artifact; do 190 | install_artifact "$artifact" 191 | done <$file_list 192 | } 193 | 194 | ARTIFACT_LIST_FILE="${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt" 195 | if [ -r "${ARTIFACT_LIST_FILE}" ]; then 196 | copy_artifacts "${ARTIFACT_LIST_FILE}" 197 | fi 198 | 199 | if [[ "$CONFIGURATION" == "Debug" ]]; then 200 | install_framework "${BUILT_PRODUCTS_DIR}/MotionToastView/MotionToastView.framework" 201 | fi 202 | if [[ "$CONFIGURATION" == "Release" ]]; then 203 | install_framework "${BUILT_PRODUCTS_DIR}/MotionToastView/MotionToastView.framework" 204 | fi 205 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 206 | wait 207 | fi 208 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_MotionToastView_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MotionToastView_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView/MotionToastView.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "MotionToastView" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MotionToastView_Example { 2 | umbrella header "Pods-MotionToastView_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Example/Pods-MotionToastView_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView/MotionToastView.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "MotionToastView" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MotionToastView_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MotionToastView_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_MotionToastView_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MotionToastView_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView/MotionToastView.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "MotionToastView" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MotionToastView_Tests { 2 | umbrella header "Pods-MotionToastView_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MotionToastView_Tests/Pods-MotionToastView_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MotionToastView/MotionToastView.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "MotionToastView" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import MotionToastView 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Sameer Nawaz 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /MotionToastView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint MotionToastView.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'MotionToastView' 11 | s.version = '0.1.10' 12 | s.summary = 'A Beautiful Toast Library for iOS using Swift' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | 'A Beautiful Motion Toast Library for iOS using Swift' 22 | DESC 23 | 24 | s.homepage = 'https://github.com/sameersyd/MotionToastView' 25 | s.license = { :type => 'MIT', :file => 'LICENSE' } 26 | s.author = { 'sameersyd' => 'sameer.nwaz@gmail.com' } 27 | s.source = { :git => 'https://github.com/sameersyd/MotionToastView.git', :tag => s.version.to_s } 28 | s.social_media_url = 'https://www.linkedin.com/in/sameer-nawaz-linked/' 29 | 30 | s.ios.deployment_target = '13.0' 31 | 32 | s.source_files = 'Source/**/**' 33 | s.swift_version = '5.0' 34 | s.platforms = { 35 | "ios": "13.0" 36 | } 37 | 38 | s.resource_bundles = { 39 | 'MotionToastView' => ['MotionToastView/**'] 40 | } 41 | 42 | # s.public_header_files = 'Pod/Classes/**/*.h' 43 | # s.frameworks = 'UIKit', 'MapKit' 44 | # s.dependency 'AFNetworking', '~> 2.3' 45 | end 46 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/alpha_blue_dark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "0.200", 8 | "blue" : "0xED", 9 | "green" : "0x80", 10 | "red" : "0x2F" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "0.200", 26 | "blue" : "0x32", 27 | "green" : "0x30", 28 | "red" : "0x2F" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/alpha_green_dark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "0.200", 8 | "blue" : "0x97", 9 | "green" : "0xCF", 10 | "red" : "0x6F" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "0.200", 26 | "blue" : "0.196", 27 | "green" : "0.188", 28 | "red" : "0.184" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/alpha_red_dark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "0.200", 8 | "blue" : "0.341", 9 | "green" : "0.341", 10 | "red" : "0.922" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "0.200", 26 | "blue" : "0.196", 27 | "green" : "0.188", 28 | "red" : "0.184" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/alpha_yellow_dark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "0.200", 8 | "blue" : "0.298", 9 | "green" : "0.788", 10 | "red" : "0.949" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "0.200", 26 | "blue" : "0.196", 27 | "green" : "0.188", 28 | "red" : "0.184" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/black_white.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x00", 9 | "green" : "0x00", 10 | "red" : "0x00" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0xFF", 27 | "green" : "0xFF", 28 | "red" : "0xFF" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/blue_dark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0xED", 9 | "green" : "0x80", 10 | "red" : "0x2F" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.196", 27 | "green" : "0.188", 28 | "red" : "0.184" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/green_dark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.592", 9 | "green" : "0.812", 10 | "red" : "0.435" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.196", 27 | "green" : "0.188", 28 | "red" : "0.184" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/red_dark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.341", 9 | "green" : "0.341", 10 | "red" : "0.922" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.196", 27 | "green" : "0.188", 28 | "red" : "0.184" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/white_blue.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0xFF", 9 | "green" : "0xFF", 10 | "red" : "0xFF" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0xED", 27 | "green" : "0x80", 28 | "red" : "0x2F" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/white_green.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0xFF", 9 | "green" : "0xFF", 10 | "red" : "0xFF" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0x97", 27 | "green" : "0xCF", 28 | "red" : "0x6F" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/white_red.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0xFF", 9 | "green" : "0xFF", 10 | "red" : "0xFF" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0x57", 27 | "green" : "0x57", 28 | "red" : "0xEB" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/white_yellow.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0xFF", 9 | "green" : "0xFF", 10 | "red" : "0xFF" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0x4C", 27 | "green" : "0xC9", 28 | "red" : "0xF2" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Color set/yellow_dark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x4C", 9 | "green" : "0xC9", 10 | "red" : "0xF2" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.196", 27 | "green" : "0.188", 28 | "red" : "0.184" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/error_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Group 10.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Group 10@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Group 10@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/error_icon.imageset/Group 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/error_icon.imageset/Group 10.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/error_icon.imageset/Group 10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/error_icon.imageset/Group 10@2x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/error_icon.imageset/Group 10@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/error_icon.imageset/Group 10@3x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/error_icon_white.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Group 10.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Group 10@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Group 10@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/error_icon_white.imageset/Group 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/error_icon_white.imageset/Group 10.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/error_icon_white.imageset/Group 10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/error_icon_white.imageset/Group 10@2x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/error_icon_white.imageset/Group 10@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/error_icon_white.imageset/Group 10@3x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/info_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Group 10.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Group 10@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Group 10@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/info_icon.imageset/Group 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/info_icon.imageset/Group 10.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/info_icon.imageset/Group 10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/info_icon.imageset/Group 10@2x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/info_icon.imageset/Group 10@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/info_icon.imageset/Group 10@3x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/info_icon_white.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Group 10.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Group 10@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Group 10@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/info_icon_white.imageset/Group 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/info_icon_white.imageset/Group 10.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/info_icon_white.imageset/Group 10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/info_icon_white.imageset/Group 10@2x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/info_icon_white.imageset/Group 10@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/info_icon_white.imageset/Group 10@3x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/success_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Group 10.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Group 10@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Group 10@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/success_icon.imageset/Group 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/success_icon.imageset/Group 10.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/success_icon.imageset/Group 10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/success_icon.imageset/Group 10@2x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/success_icon.imageset/Group 10@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/success_icon.imageset/Group 10@3x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/success_icon_white.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Group 10.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Group 10@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Group 10@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/success_icon_white.imageset/Group 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/success_icon_white.imageset/Group 10.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/success_icon_white.imageset/Group 10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/success_icon_white.imageset/Group 10@2x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/success_icon_white.imageset/Group 10@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/success_icon_white.imageset/Group 10@3x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/warning_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Group 10.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Group 10@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Group 10@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/warning_icon.imageset/Group 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/warning_icon.imageset/Group 10.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/warning_icon.imageset/Group 10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/warning_icon.imageset/Group 10@2x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/warning_icon.imageset/Group 10@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/warning_icon.imageset/Group 10@3x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/warning_icon_white.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Group 10.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Group 10@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Group 10@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/warning_icon_white.imageset/Group 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/warning_icon_white.imageset/Group 10.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/warning_icon_white.imageset/Group 10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/warning_icon_white.imageset/Group 10@2x.png -------------------------------------------------------------------------------- /MotionToastView/Assets.xcassets/Icons/warning_icon_white.imageset/Group 10@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets.xcassets/Icons/warning_icon_white.imageset/Group 10@3x.png -------------------------------------------------------------------------------- /MotionToastView/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Assets/.gitkeep -------------------------------------------------------------------------------- /MotionToastView/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameersyd/MotionToastView/193d393be8fe1add5e38416576e4421e06779d8a/MotionToastView/Classes/.gitkeep -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MotionToastView - A Beautiful Toast Library for iOS Swift 2 | 3 | [![CI Status](https://img.shields.io/travis/sameersyd/MotionToastView.svg?style=flat)](https://travis-ci.org/sameersyd/MotionToastView) 4 | [![Version](https://img.shields.io/cocoapods/v/MotionToastView.svg?style=flat)](https://cocoapods.org/pods/MotionToastView) 5 | [![License](https://img.shields.io/cocoapods/l/MotionToastView.svg?style=flat)](https://cocoapods.org/pods/MotionToastView) 6 | [![Platform](https://img.shields.io/cocoapods/p/MotionToastView.svg?style=flat)](https://cocoapods.org/pods/MotionToastView) 7 | 8 | 9 | A Beautiful Multipurpose Motion Toast Library in iOS using Swift 😍 10 | 11 | ![GitHub Cards Preview](https://github.com/sameersyd/templates/blob/master/_github_card_.png) 12 | 13 | ## Preview - Vibrant Toast 🌈 14 | ![gif](https://github.com/sameersyd/templates/blob/master/vibnt.gif) 15 | 16 | ## Preview - Pale Toast 🌟 17 | ![gif](https://github.com/sameersyd/templates/blob/master/pale_light_.png) 18 | 19 | ## Preview - Dark Vibrant Toast 🌈 20 | ![gif](https://github.com/sameersyd/templates/blob/master/vibrant_dark.png) 21 | 22 | ## Preview - Dark Pale Toast 🌈 23 | ![gif](https://github.com/sameersyd/templates/blob/master/pale_dark_.png) 24 | 25 | 26 | # Types of Toast Style ❤️ 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 |
1. Pale Toast 2. Vibrant Toast3. Dark Pale Toast 4. Dark Vibrant Toast
43 | 44 | ## About 45 | 46 | A Beautiful Multipurpose Motion Toast View in iOS using Swift with full customisation options. The library is developed using Swift 5. 47 | 48 | ## Example 49 | 50 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 51 | 52 | ## Installation 53 | 54 | MotionToastView is available through [CocoaPods](https://cocoapods.org). To install 55 | it, simply add the following line to your Podfile: 56 | 57 | ```ruby 58 | pod 'MotionToastView' 59 | ``` 60 | 61 | Import MotionToastView in your class 62 | ```ruby 63 | import MotionToastView 64 | ``` 65 | 66 | ## 4️⃣ Toast types 67 | ``` 68 | 1 .success 69 | 2 .error 70 | 3 .warning 71 | 4 .info 72 | ``` 73 | 74 | ## ✌🏻 Toast styles 75 | ``` 76 | 1 .style_vibrant 77 | 2 .style_pale 78 | ``` 79 | 80 | ## ⌛️ Toast duration 81 | ``` 82 | 1 .short // 2 Seconds 83 | 2 .long // 4 Seconds 84 | ``` 85 | 86 | # Usage 87 | 88 | ## Sample Code for - Motion Toast View 🌟 89 | 90 | ### Success Toast 91 | (Basic) 92 | ``` 93 | MotionToast(message: "You have successfully completed the trip", toastType: .success) 94 | ``` 95 | 96 | ### Error Toast 97 | (with corner radius) 98 | ``` 99 | MotionToast(message: "You have failed to complete the trip", toastType: .error, toastCornerRadius: 12) 100 | ``` 101 | 102 | ### Warning Toast 103 | (with duration, style, gravity, pulseEffect) 104 | ``` 105 | MotionToast(message: "You are not in the location. Try again", toastType: .warning, duration: .long, 106 | toastStyle: .style_pale, toastGravity: .centre, pulseEffect: false) 107 | ``` 108 | 109 | ### Info Toast 110 | (with duration, style, gravity) 111 | ``` 112 | MotionToast(message: "You have failed to complete the trip", toastType: .info, 113 | duration: .long, toastStyle: .style_pale, toastGravity: .top) 114 | ``` 115 | 116 | ## Note: 117 | #### Light and Dark mode are set using system preference 118 | #### toastCornerRadius parameter is only for toast style - vibrant 119 | 120 | ## Motion Toast View 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 |
ParameterOptionalDefault ValueTypeValues Available
messagefalsenilStringcustom
toastTypefalsenilenum[.success, .error, .warning, .info]
durationtrue.shortenum[.short, .long]
toastStyletrue.style_vibrantenum[.style_vibrant, .style_pale]
toastGravitytrue.bottomenum[.top, .centre, .bottom]
toastCornerRadiustrue0Intcustom
pulseEffecttruetrueBool[true, false]
179 | 180 | ## ✍🏻 Want More Customisation? 181 | ``` 182 | MotionToast_Customisation(header: "Custom Toast", message: "It gives you more customisation options.", 183 | headerColor: UIColor(red: 255.0, green: 255.0, blue: 255.0, alpha: 1.0), 184 | messageColor: UIColor(red: 239.0, green: 239.0, blue: 239.0, alpha: 0.7), 185 | primary_color: UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.5), 186 | secondary_color: UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0), 187 | icon_image: UIImage(named: "apple")!, duration: .long, toastStyle: .style_pale, 188 | toastGravity: .bottom, toastCornerRadius: 12, pulseEffect: true) 189 | ``` 190 | 191 | ## Checkout Android version of this library Motion Toast 192 | #### Design Inspired from @Spikeysanju 193 | 194 | ## Donation 195 | If this project helped you reduce time to develop, you can buy me a cup of coffee :) 196 | 197 | Buy Me A Coffee 198 | 199 | ## Author 200 | 201 | Sameer Nawaz, sameer.nwaz@gmail.com 202 | 203 | ## License 204 | 205 | MotionToastView is available under the MIT license. See the LICENSE file for more info. 206 | -------------------------------------------------------------------------------- /Source/Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Extension.swift 3 | // MotionToast 4 | // 5 | // Created by Sameer Nawaz on 10/08/20. 6 | // Copyright © 2020 Femargent Inc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public enum ToastType { 12 | case success 13 | case error 14 | case warning 15 | case info 16 | } 17 | 18 | public enum ToastDuration { 19 | case short 20 | case long 21 | } 22 | 23 | public enum ToastGravity { 24 | case top 25 | case centre 26 | case bottom 27 | } 28 | 29 | public enum ToastStyle { 30 | case style_vibrant 31 | case style_pale 32 | } 33 | 34 | extension UIViewController { 35 | 36 | public func MotionToast(message: String, toastType: ToastType, duration: ToastDuration? = .short, toastStyle: ToastStyle? = .style_vibrant, toastGravity: ToastGravity? = .bottom, toastCornerRadius: Int? = 0, pulseEffect: Bool? = true) { 37 | 38 | guard let window = UIApplication.shared.connectedScenes.filter({$0.activationState == .foregroundActive}).map({$0 as? UIWindowScene}) 39 | .compactMap({$0}).first?.windows.filter({$0.isKeyWindow}).first else { return } 40 | 41 | var toastDuration = 2.0 42 | switch duration { 43 | case .short: toastDuration = 2.0;break 44 | case .long: toastDuration = 4.0;break 45 | case .none: break 46 | } 47 | 48 | var toastView: UIView? 49 | switch toastStyle { 50 | case .style_vibrant: toastView = toastStyle_vibrant(message: message, toastType: toastType, toastGravity: toastGravity!, toastCornerRadius: toastCornerRadius!, view: view, pulseEffect: pulseEffect!);break 51 | case .style_pale: toastView = toastStyle_pale(message: message, toastType: toastType, toastGravity: toastGravity!, view: view, pulseEffect: pulseEffect!);break 52 | case .none: break 53 | } 54 | 55 | window.addSubview(toastView!) 56 | 57 | UIView.animate(withDuration: 1.0, delay: toastDuration, animations: { 58 | toastView!.alpha = 0 59 | }) { (_) in 60 | toastView!.removeFromSuperview() 61 | } 62 | } 63 | 64 | public func MotionToast_Customisation(header: String, message: String, headerColor: UIColor, messageColor: UIColor, 65 | primary_color: UIColor, secondary_color: UIColor, icon_image: UIImage, 66 | duration: ToastDuration? = .short, toastStyle: ToastStyle? = .style_vibrant, 67 | toastGravity: ToastGravity? = .bottom, toastCornerRadius: Int? = 0, pulseEffect: Bool? = true) { 68 | 69 | guard let window = UIApplication.shared.connectedScenes.filter({$0.activationState == .foregroundActive}).map({$0 as? UIWindowScene}) 70 | .compactMap({$0}).first?.windows.filter({$0.isKeyWindow}).first else { return } 71 | 72 | var toastDuration = 2.0 73 | switch duration { 74 | case .short: toastDuration = 2.0;break 75 | case .long: toastDuration = 4.0;break 76 | case .none: break 77 | } 78 | 79 | var toastUIView: UIView? 80 | switch toastStyle { 81 | case .style_vibrant: 82 | 83 | var gravity = CGRect(x: 0.0, y: view.frame.height - 130.0, width: view.frame.width, height: 83.0) 84 | switch toastGravity! { 85 | case .top: gravity = CGRect(x: 0.0, y: 80.0, width: view.frame.width, height: 83.0);break 86 | case .centre: gravity = CGRect(x: 0.0, y: ((view.frame.height / 2) - 41) , width: view.frame.width, height: 83.0);break 87 | case .bottom: gravity = CGRect(x: 0.0, y: view.frame.height - 130.0, width: view.frame.width, height: 83.0);break 88 | } 89 | 90 | let toastView = MTVibrant(frame: gravity) 91 | if pulseEffect! { toastView.addPulseEffect() } 92 | toastView.toastView.layer.cornerRadius = CGFloat(toastCornerRadius!) 93 | 94 | toastView.headLabel.text = header 95 | toastView.headLabel.textColor = headerColor 96 | toastView.msgLabel.text = message 97 | toastView.msgLabel.textColor = messageColor 98 | toastView.circleImg.image = icon_image 99 | toastView.toastView.backgroundColor = primary_color 100 | toastView.circleView.backgroundColor = secondary_color 101 | toastUIView = toastView 102 | break 103 | 104 | case .style_pale: 105 | 106 | var gravity = CGRect(x: 0.0, y: view.frame.height - 130.0, width: view.frame.width, height: 83.0) 107 | switch toastGravity! { 108 | case .top: gravity = CGRect(x: 0.0, y: 80.0, width: view.frame.width, height: 83.0);break 109 | case .centre: gravity = CGRect(x: 0.0, y: ((view.frame.height / 2) - 41) , width: view.frame.width, height: 83.0);break 110 | case .bottom: gravity = CGRect(x: 0.0, y: view.frame.height - 130.0, width: view.frame.width, height: 83.0);break 111 | } 112 | 113 | let toastView = MTPale(frame: gravity) 114 | if pulseEffect! { toastView.addPulseEffect() } 115 | toastView.toastView.layer.cornerRadius = CGFloat(toastCornerRadius!) 116 | 117 | toastView.headLabel.text = header 118 | toastView.headLabel.textColor = headerColor 119 | toastView.msgLabel.text = message 120 | toastView.msgLabel.textColor = messageColor 121 | toastView.circleImg.image = icon_image 122 | toastView.toastView.backgroundColor = primary_color 123 | toastView.circleView.backgroundColor = secondary_color 124 | toastView.sideBarView.backgroundColor = secondary_color 125 | toastUIView = toastView 126 | break 127 | case .none: break 128 | } 129 | 130 | window.addSubview(toastUIView!) 131 | 132 | UIView.animate(withDuration: 1.0, delay: toastDuration, animations: { 133 | toastUIView!.alpha = 0 134 | }) { (_) in 135 | toastUIView!.removeFromSuperview() 136 | } 137 | } 138 | } 139 | 140 | func toastStyle_vibrant(message: String, toastType: ToastType, toastGravity: ToastGravity, toastCornerRadius: Int, view: UIView, pulseEffect: Bool) -> MTVibrant { 141 | 142 | var gravity = CGRect(x: 0.0, y: view.frame.height - 130.0, width: view.frame.width, height: 83.0) 143 | switch toastGravity { 144 | case .top: gravity = CGRect(x: 0.0, y: 80.0, width: view.frame.width, height: 83.0);break 145 | case .centre: gravity = CGRect(x: 0.0, y: ((view.frame.height / 2) - 41) , width: view.frame.width, height: 83.0);break 146 | case .bottom: gravity = CGRect(x: 0.0, y: view.frame.height - 130.0, width: view.frame.width, height: 83.0);break 147 | } 148 | 149 | let toastView = MTVibrant(frame: gravity) 150 | toastView.setupViews(toastType: toastType) 151 | if pulseEffect { toastView.addPulseEffect() } 152 | toastView.msgLabel.text = message 153 | toastView.toastView.layer.cornerRadius = CGFloat(toastCornerRadius) 154 | return toastView 155 | } 156 | 157 | func toastStyle_pale(message: String, toastType: ToastType, toastGravity: ToastGravity, view: UIView, pulseEffect: Bool) -> MTPale { 158 | 159 | var gravity = CGRect(x: 0.0, y: view.frame.height - 130.0, width: view.frame.width, height: 83.0) 160 | switch toastGravity { 161 | case .top: gravity = CGRect(x: 0.0, y: 80.0, width: view.frame.width, height: 83.0);break 162 | case .centre: gravity = CGRect(x: 0.0, y: ((view.frame.height / 2) - 41) , width: view.frame.width, height: 83.0);break 163 | case .bottom: gravity = CGRect(x: 0.0, y: view.frame.height - 130.0, width: view.frame.width, height: 83.0);break 164 | } 165 | 166 | let toastView = MTPale(frame: gravity) 167 | toastView.setupViews(toastType: toastType) 168 | if pulseEffect { toastView.addPulseEffect() } 169 | toastView.msgLabel.text = message 170 | return toastView 171 | } 172 | -------------------------------------------------------------------------------- /Source/MotionToastStyles/MTPale.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MTPale.swift 3 | // MotionToast 4 | // 5 | // Created by Sameer Nawaz on 10/08/20. 6 | // Copyright © 2020 Femargent Inc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class MTPale: UIView { 12 | 13 | @IBOutlet weak var headLabel: UILabel! 14 | @IBOutlet weak var msgLabel: UILabel! 15 | @IBOutlet weak var circleView: UIView! 16 | @IBOutlet weak var circleImg: UIImageView! 17 | @IBOutlet weak var toastView: UIView! 18 | @IBOutlet weak var sideBarView: UIView! 19 | 20 | override init(frame: CGRect) { 21 | super.init(frame: frame) 22 | commonInit() 23 | sideBarView.layer.cornerRadius = 3 24 | toastView.layer.cornerRadius = 12 25 | circleView.layer.cornerRadius = circleView.bounds.size.width/2 26 | } 27 | 28 | required init?(coder: NSCoder) { 29 | super.init(coder: coder) 30 | commonInit() 31 | } 32 | 33 | func commonInit() { 34 | let bundle = Bundle(for: MTPale.self) 35 | let viewFromXib = bundle.loadNibNamed("MTPale", owner: self, options: nil)![0] as! UIView 36 | viewFromXib.frame = self.bounds 37 | addSubview(viewFromXib) 38 | } 39 | 40 | func addPulseEffect() { 41 | let pulseAnimation = CABasicAnimation(keyPath: "transform.scale") 42 | pulseAnimation.duration = 1 43 | pulseAnimation.fromValue = 0.7 44 | pulseAnimation.toValue = 1 45 | pulseAnimation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) 46 | pulseAnimation.autoreverses = true 47 | pulseAnimation.repeatCount = .greatestFiniteMagnitude 48 | circleImg.layer.add(pulseAnimation, forKey: "animateOpacity") 49 | } 50 | 51 | func setupViews(toastType: ToastType) { 52 | switch toastType { 53 | case .success: 54 | headLabel.text = "Success" 55 | circleImg.image = loadImage(name: "success_icon_white") 56 | sideBarView.backgroundColor = UIColor(red: 242.0, green: 201.0, blue: 76.0, alpha: 1.0) 57 | circleView.backgroundColor = UIColor(red: 242.0, green: 201.0, blue: 76.0, alpha: 1.0) 58 | toastView.backgroundColor = loadColor(name: "alpha_green_dark") 59 | break 60 | case .error: 61 | headLabel.text = "Error" 62 | circleImg.image = loadImage(name: "error_icon_white") 63 | sideBarView.backgroundColor = UIColor(red: 235.0, green: 87.0, blue: 87.0, alpha: 1.0) 64 | circleView.backgroundColor = UIColor(red: 235.0, green: 87.0, blue: 87.0, alpha: 1.0) 65 | toastView.backgroundColor = loadColor(name: "alpha_red_dark") 66 | break 67 | case .warning: 68 | headLabel.text = "Warning" 69 | circleImg.image = loadImage(name: "warning_icon_white") 70 | sideBarView.backgroundColor = UIColor(red: 242.0, green: 201.0, blue: 76.0, alpha: 1.0) 71 | circleView.backgroundColor = UIColor(red: 242.0, green: 201.0, blue: 76.0, alpha: 1.0) 72 | toastView.backgroundColor = loadColor(name: "alpha_yellow_dark") 73 | break 74 | case .info: 75 | headLabel.text = "Info" 76 | circleImg.image = loadImage(name: "info_icon_white") 77 | sideBarView.backgroundColor = UIColor(red: 47.0, green: 128.0, blue: 237.0, alpha: 1.0) 78 | circleView.backgroundColor = UIColor(red: 47.0, green: 128.0, blue: 237.0, alpha: 1.0) 79 | toastView.backgroundColor = loadColor(name: "alpha_blue_dark") 80 | break 81 | } 82 | } 83 | 84 | func loadImage(name: String) -> UIImage? { 85 | let podBundle = Bundle(for: MTPale.self) 86 | if let url = podBundle.url(forResource: "MotionToastView", withExtension: "bundle") { 87 | let bundle = Bundle(url: url) 88 | return UIImage(named: name, in: bundle, compatibleWith: nil) 89 | } 90 | return nil 91 | } 92 | 93 | func loadColor(name: String) -> UIColor? { 94 | let podBundle = Bundle(for: MTPale.self) 95 | if let url = podBundle.url(forResource: "MotionToastView", withExtension: "bundle") { 96 | let bundle = Bundle(url: url) 97 | return UIColor(named: name, in: bundle, compatibleWith: nil) 98 | } 99 | return nil 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /Source/MotionToastStyles/MTPale.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 38 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /Source/MotionToastStyles/MTVibrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MotionToastView.swift 3 | // MotionToast 4 | // 5 | // Created by Sameer Nawaz on 10/08/20. 6 | // Copyright © 2020 Femargent Inc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class MTVibrant: UIView { 12 | 13 | @IBOutlet weak var headLabel: UILabel! 14 | @IBOutlet weak var msgLabel: UILabel! 15 | @IBOutlet weak var circleImg: UIImageView! 16 | @IBOutlet weak var toastView: UIView! 17 | @IBOutlet weak var circleView: UIView! 18 | 19 | override init(frame: CGRect) { 20 | super.init(frame: frame) 21 | commonInit() 22 | circleView.layer.cornerRadius = circleView.bounds.size.width/2 23 | } 24 | 25 | required init?(coder: NSCoder) { 26 | super.init(coder: coder) 27 | commonInit() 28 | } 29 | 30 | func commonInit() { 31 | let bundle = Bundle(for: MTVibrant.self) 32 | let viewFromXib = bundle.loadNibNamed("MTVibrant", owner: self, options: nil)![0] as! UIView 33 | viewFromXib.frame = self.bounds 34 | addSubview(viewFromXib) 35 | } 36 | 37 | func addPulseEffect() { 38 | let pulseAnimation = CABasicAnimation(keyPath: "transform.scale") 39 | pulseAnimation.duration = 1 40 | pulseAnimation.fromValue = 0.7 41 | pulseAnimation.toValue = 1 42 | pulseAnimation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) 43 | pulseAnimation.autoreverses = true 44 | pulseAnimation.repeatCount = .greatestFiniteMagnitude 45 | circleImg.layer.add(pulseAnimation, forKey: "animateOpacity") 46 | } 47 | 48 | func setupViews(toastType: ToastType) { 49 | switch toastType { 50 | case .success: 51 | headLabel.text = "Success" 52 | headLabel.textColor = loadColor(name: "white_green") 53 | circleImg.image = loadImage(name: "success_icon") 54 | toastView.backgroundColor = loadColor(name: "green_dark") 55 | break 56 | case .error: 57 | headLabel.text = "Error" 58 | headLabel.textColor = loadColor(name: "white_red") 59 | circleImg.image = loadImage(name: "error_icon") 60 | toastView.backgroundColor = loadColor(name: "red_dark") 61 | break 62 | case .warning: 63 | headLabel.text = "Warning" 64 | headLabel.textColor = loadColor(name: "white_yellow") 65 | circleImg.image = loadImage(name: "warning_icon") 66 | toastView.backgroundColor = loadColor(name: "yellow_dark") 67 | break 68 | case .info: 69 | headLabel.text = "Info" 70 | headLabel.textColor = loadColor(name: "white_blue") 71 | circleImg.image = loadImage(name: "info_icon") 72 | toastView.backgroundColor = loadColor(name: "blue_dark") 73 | break 74 | } 75 | } 76 | 77 | func loadImage(name: String) -> UIImage? { 78 | let podBundle = Bundle(for: MTVibrant.self) 79 | if let url = podBundle.url(forResource: "MotionToastView", withExtension: "bundle") { 80 | let bundle = Bundle(url: url) 81 | return UIImage(named: name, in: bundle, compatibleWith: nil) 82 | } 83 | return nil 84 | } 85 | 86 | func loadColor(name: String) -> UIColor? { 87 | let podBundle = Bundle(for: MTVibrant.self) 88 | if let url = podBundle.url(forResource: "MotionToastView", withExtension: "bundle") { 89 | let bundle = Bundle(url: url) 90 | return UIColor(named: name, in: bundle, compatibleWith: nil) 91 | } 92 | return nil 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /Source/MotionToastStyles/MTVibrant.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------