├── .gitignore ├── .travis.yml ├── CustomToastView-swift.podspec ├── CustomToastView-swift ├── Assets │ └── .gitkeep └── Classes │ └── .gitkeep ├── Example ├── CustomToastView-swift.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── CustomToastView-swift-Example.xcscheme ├── CustomToastView-swift.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── CustomToastView-swift │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── check.imageset │ │ │ ├── Contents.json │ │ │ └── check.svg │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── CustomToastView-swift.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── CustomToastView-swift │ │ ├── CustomToastView-swift-Info.plist │ │ ├── CustomToastView-swift-dummy.m │ │ ├── CustomToastView-swift-prefix.pch │ │ ├── CustomToastView-swift-umbrella.h │ │ ├── CustomToastView-swift.debug.xcconfig │ │ ├── CustomToastView-swift.modulemap │ │ └── CustomToastView-swift.release.xcconfig │ │ ├── Pods-CustomToastView-swift_Example │ │ ├── Pods-CustomToastView-swift_Example-Info.plist │ │ ├── Pods-CustomToastView-swift_Example-acknowledgements.markdown │ │ ├── Pods-CustomToastView-swift_Example-acknowledgements.plist │ │ ├── Pods-CustomToastView-swift_Example-dummy.m │ │ ├── Pods-CustomToastView-swift_Example-frameworks.sh │ │ ├── Pods-CustomToastView-swift_Example-umbrella.h │ │ ├── Pods-CustomToastView-swift_Example.debug.xcconfig │ │ ├── Pods-CustomToastView-swift_Example.modulemap │ │ └── Pods-CustomToastView-swift_Example.release.xcconfig │ │ └── Pods-CustomToastView-swift_Tests │ │ ├── Pods-CustomToastView-swift_Tests-Info.plist │ │ ├── Pods-CustomToastView-swift_Tests-acknowledgements.markdown │ │ ├── Pods-CustomToastView-swift_Tests-acknowledgements.plist │ │ ├── Pods-CustomToastView-swift_Tests-dummy.m │ │ ├── Pods-CustomToastView-swift_Tests-umbrella.h │ │ ├── Pods-CustomToastView-swift_Tests.debug.xcconfig │ │ ├── Pods-CustomToastView-swift_Tests.modulemap │ │ └── Pods-CustomToastView-swift_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── Source ├── CustomToastView.swift ├── CustomToastView.xib ├── CustomToastViewExtension.swift ├── NSObjectExtension.swift ├── Toast.swift └── ToastData.swift ├── _Pods.xcodeproj ├── libraryUsage.gif └── rightActionExample.png /.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/CustomToastView-swift.xcworkspace -scheme CustomToastView-swift-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /CustomToastView-swift.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint CustomToastView-swift.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 = 'CustomToastView-swift' 11 | s.version = '0.1.5' 12 | s.summary = 'A small framework to display toast messages in 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 | CustomToastView is a small and lightweight Swift framework that allows you to display custom toast messages in an super-easy way! 22 | DESC 23 | 24 | s.homepage = 'https://github.com/leticiarod/CustomToastView-swift' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'leticiamrgs@gmail.com' => 'leticiamrgs@gmail.com' } 28 | s.source = { :git => 'https://github.com/leticiarod/CustomToastView-swift.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '9.0' 32 | 33 | s.source_files = 'Source/*.{swift,xib}' 34 | 35 | s.swift_version = "5.0" 36 | # s.resource_bundles = { 37 | # 'CustomToastView-swift' => ['CustomToastView-swift/Assets/*.png'] 38 | # } 39 | 40 | # s.public_header_files = 'Pod/Classes/**/*.h' 41 | # s.frameworks = 'UIKit', 'MapKit' 42 | # s.dependency 'AFNetworking', '~> 2.3' 43 | end 44 | -------------------------------------------------------------------------------- /CustomToastView-swift/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leticiarod/CustomToastView-swift/f79ea5773bf6da6ebc672e6e7023d9cc37a75e44/CustomToastView-swift/Assets/.gitkeep -------------------------------------------------------------------------------- /CustomToastView-swift/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leticiarod/CustomToastView-swift/f79ea5773bf6da6ebc672e6e7023d9cc37a75e44/CustomToastView-swift/Classes/.gitkeep -------------------------------------------------------------------------------- /Example/CustomToastView-swift.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00474DEE7C6D88BDD2061BCE /* Pods_CustomToastView_swift_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F25CC0B3EED02FD54DA2D54E /* Pods_CustomToastView_swift_Tests.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | B8E45E80C77D564B4EB52C36 /* Pods_CustomToastView_swift_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BDF31CF7657B1223C855C00F /* Pods_CustomToastView_swift_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 = "CustomToastView-swift"; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 607FACD01AFB9204008FA782 /* CustomToastView-swift_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CustomToastView-swift_Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 34 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 35 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 36 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 37 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 38 | 607FACE51AFB9204008FA782 /* CustomToastView-swift_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "CustomToastView-swift_Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 41 | 65371A58807AB0B132AEB54E /* CustomToastView-swift.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = "CustomToastView-swift.podspec"; path = "../CustomToastView-swift.podspec"; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 42 | 86DB1F8EC9C5E557244A9AC0 /* Pods-CustomToastView-swift_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CustomToastView-swift_Example.release.xcconfig"; path = "Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example.release.xcconfig"; sourceTree = ""; }; 43 | 88A5655D64246BB1C9C54FBD /* Pods-CustomToastView-swift_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CustomToastView-swift_Example.debug.xcconfig"; path = "Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example.debug.xcconfig"; sourceTree = ""; }; 44 | 9F5311B450DB63A17E17FFF0 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 45 | A75BB482229A4C0BC23EE0C1 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 46 | BDF31CF7657B1223C855C00F /* Pods_CustomToastView_swift_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CustomToastView_swift_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | CAB6E82378B8449F86EC0D26 /* Pods-CustomToastView-swift_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CustomToastView-swift_Tests.debug.xcconfig"; path = "Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests.debug.xcconfig"; sourceTree = ""; }; 48 | E59D5773D1F2C1094339207A /* Pods-CustomToastView-swift_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CustomToastView-swift_Tests.release.xcconfig"; path = "Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests.release.xcconfig"; sourceTree = ""; }; 49 | F25CC0B3EED02FD54DA2D54E /* Pods_CustomToastView_swift_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CustomToastView_swift_Tests.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 | B8E45E80C77D564B4EB52C36 /* Pods_CustomToastView_swift_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 00474DEE7C6D88BDD2061BCE /* Pods_CustomToastView_swift_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 04C3BC000B27795CB3D81D16 /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | BDF31CF7657B1223C855C00F /* Pods_CustomToastView_swift_Example.framework */, 76 | F25CC0B3EED02FD54DA2D54E /* Pods_CustomToastView_swift_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 1670E9EF94C60DFBE1301AF4 /* Pods */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 88A5655D64246BB1C9C54FBD /* Pods-CustomToastView-swift_Example.debug.xcconfig */, 85 | 86DB1F8EC9C5E557244A9AC0 /* Pods-CustomToastView-swift_Example.release.xcconfig */, 86 | CAB6E82378B8449F86EC0D26 /* Pods-CustomToastView-swift_Tests.debug.xcconfig */, 87 | E59D5773D1F2C1094339207A /* Pods-CustomToastView-swift_Tests.release.xcconfig */, 88 | ); 89 | path = Pods; 90 | sourceTree = ""; 91 | }; 92 | 607FACC71AFB9204008FA782 = { 93 | isa = PBXGroup; 94 | children = ( 95 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 96 | 607FACD21AFB9204008FA782 /* Example for CustomToastView-swift */, 97 | 607FACE81AFB9204008FA782 /* Tests */, 98 | 607FACD11AFB9204008FA782 /* Products */, 99 | 1670E9EF94C60DFBE1301AF4 /* Pods */, 100 | 04C3BC000B27795CB3D81D16 /* Frameworks */, 101 | ); 102 | sourceTree = ""; 103 | }; 104 | 607FACD11AFB9204008FA782 /* Products */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 607FACD01AFB9204008FA782 /* CustomToastView-swift_Example.app */, 108 | 607FACE51AFB9204008FA782 /* CustomToastView-swift_Tests.xctest */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 607FACD21AFB9204008FA782 /* Example for CustomToastView-swift */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 117 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 118 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 119 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 120 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 121 | 607FACD31AFB9204008FA782 /* Supporting Files */, 122 | ); 123 | name = "Example for CustomToastView-swift"; 124 | path = "CustomToastView-swift"; 125 | sourceTree = ""; 126 | }; 127 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 607FACD41AFB9204008FA782 /* Info.plist */, 131 | ); 132 | name = "Supporting Files"; 133 | sourceTree = ""; 134 | }; 135 | 607FACE81AFB9204008FA782 /* Tests */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 139 | 607FACE91AFB9204008FA782 /* Supporting Files */, 140 | ); 141 | path = Tests; 142 | sourceTree = ""; 143 | }; 144 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 607FACEA1AFB9204008FA782 /* Info.plist */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 65371A58807AB0B132AEB54E /* CustomToastView-swift.podspec */, 156 | 9F5311B450DB63A17E17FFF0 /* README.md */, 157 | A75BB482229A4C0BC23EE0C1 /* LICENSE */, 158 | ); 159 | name = "Podspec Metadata"; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* CustomToastView-swift_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CustomToastView-swift_Example" */; 168 | buildPhases = ( 169 | E247BCEF05E138A364AA11B6 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 1045F55718309676993C3BA9 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = "CustomToastView-swift_Example"; 180 | productName = "CustomToastView-swift"; 181 | productReference = 607FACD01AFB9204008FA782 /* CustomToastView-swift_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* CustomToastView-swift_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CustomToastView-swift_Tests" */; 187 | buildPhases = ( 188 | 21659BC38B25C61146A06214 /* [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 = "CustomToastView-swift_Tests"; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* CustomToastView-swift_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 = 0830; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | LastSwiftMigration = 0900; 216 | }; 217 | 607FACE41AFB9204008FA782 = { 218 | CreatedOnToolsVersion = 6.3.1; 219 | LastSwiftMigration = 0900; 220 | TestTargetID = 607FACCF1AFB9204008FA782; 221 | }; 222 | }; 223 | }; 224 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CustomToastView-swift" */; 225 | compatibilityVersion = "Xcode 3.2"; 226 | developmentRegion = English; 227 | hasScannedForEncodings = 0; 228 | knownRegions = ( 229 | English, 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* CustomToastView-swift_Example */, 239 | 607FACE41AFB9204008FA782 /* CustomToastView-swift_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 | 1045F55718309676993C3BA9 /* [CP] Embed Pods Frameworks */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | "${PODS_ROOT}/Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example-frameworks.sh", 272 | "${BUILT_PRODUCTS_DIR}/CustomToastView-swift/CustomToastView_swift.framework", 273 | ); 274 | name = "[CP] Embed Pods Frameworks"; 275 | outputPaths = ( 276 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CustomToastView_swift.framework", 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | shellPath = /bin/sh; 280 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example-frameworks.sh\"\n"; 281 | showEnvVarsInLog = 0; 282 | }; 283 | 21659BC38B25C61146A06214 /* [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-CustomToastView-swift_Tests-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 | E247BCEF05E138A364AA11B6 /* [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-CustomToastView-swift_Example-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 /* CustomToastView-swift_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_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 386 | CLANG_WARN_BOOL_CONVERSION = YES; 387 | CLANG_WARN_COMMA = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 390 | CLANG_WARN_EMPTY_BODY = YES; 391 | CLANG_WARN_ENUM_CONVERSION = YES; 392 | CLANG_WARN_INFINITE_RECURSION = YES; 393 | CLANG_WARN_INT_CONVERSION = YES; 394 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 395 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 397 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 398 | CLANG_WARN_STRICT_PROTOTYPES = YES; 399 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 400 | CLANG_WARN_UNREACHABLE_CODE = YES; 401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 403 | COPY_PHASE_STRIP = NO; 404 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 405 | ENABLE_STRICT_OBJC_MSGSEND = YES; 406 | ENABLE_TESTABILITY = YES; 407 | GCC_C_LANGUAGE_STANDARD = gnu99; 408 | GCC_DYNAMIC_NO_PIC = NO; 409 | GCC_NO_COMMON_BLOCKS = YES; 410 | GCC_OPTIMIZATION_LEVEL = 0; 411 | GCC_PREPROCESSOR_DEFINITIONS = ( 412 | "DEBUG=1", 413 | "$(inherited)", 414 | ); 415 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 418 | GCC_WARN_UNDECLARED_SELECTOR = YES; 419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 420 | GCC_WARN_UNUSED_FUNCTION = YES; 421 | GCC_WARN_UNUSED_VARIABLE = YES; 422 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 423 | MTL_ENABLE_DEBUG_INFO = YES; 424 | ONLY_ACTIVE_ARCH = YES; 425 | SDKROOT = iphoneos; 426 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 427 | }; 428 | name = Debug; 429 | }; 430 | 607FACEE1AFB9204008FA782 /* Release */ = { 431 | isa = XCBuildConfiguration; 432 | buildSettings = { 433 | ALWAYS_SEARCH_USER_PATHS = NO; 434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 435 | CLANG_CXX_LIBRARY = "libc++"; 436 | CLANG_ENABLE_MODULES = YES; 437 | CLANG_ENABLE_OBJC_ARC = YES; 438 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 439 | CLANG_WARN_BOOL_CONVERSION = YES; 440 | CLANG_WARN_COMMA = YES; 441 | CLANG_WARN_CONSTANT_CONVERSION = YES; 442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 443 | CLANG_WARN_EMPTY_BODY = YES; 444 | CLANG_WARN_ENUM_CONVERSION = YES; 445 | CLANG_WARN_INFINITE_RECURSION = YES; 446 | CLANG_WARN_INT_CONVERSION = YES; 447 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 448 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 450 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 451 | CLANG_WARN_STRICT_PROTOTYPES = YES; 452 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 453 | CLANG_WARN_UNREACHABLE_CODE = YES; 454 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 455 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 456 | COPY_PHASE_STRIP = NO; 457 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 458 | ENABLE_NS_ASSERTIONS = NO; 459 | ENABLE_STRICT_OBJC_MSGSEND = YES; 460 | GCC_C_LANGUAGE_STANDARD = gnu99; 461 | GCC_NO_COMMON_BLOCKS = YES; 462 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 463 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 464 | GCC_WARN_UNDECLARED_SELECTOR = YES; 465 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 466 | GCC_WARN_UNUSED_FUNCTION = YES; 467 | GCC_WARN_UNUSED_VARIABLE = YES; 468 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 469 | MTL_ENABLE_DEBUG_INFO = NO; 470 | SDKROOT = iphoneos; 471 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 472 | VALIDATE_PRODUCT = YES; 473 | }; 474 | name = Release; 475 | }; 476 | 607FACF01AFB9204008FA782 /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | baseConfigurationReference = 88A5655D64246BB1C9C54FBD /* Pods-CustomToastView-swift_Example.debug.xcconfig */; 479 | buildSettings = { 480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 481 | INFOPLIST_FILE = "CustomToastView-swift/Info.plist"; 482 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 483 | MODULE_NAME = ExampleApp; 484 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 487 | SWIFT_VERSION = 4.0; 488 | }; 489 | name = Debug; 490 | }; 491 | 607FACF11AFB9204008FA782 /* Release */ = { 492 | isa = XCBuildConfiguration; 493 | baseConfigurationReference = 86DB1F8EC9C5E557244A9AC0 /* Pods-CustomToastView-swift_Example.release.xcconfig */; 494 | buildSettings = { 495 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 496 | INFOPLIST_FILE = "CustomToastView-swift/Info.plist"; 497 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 498 | MODULE_NAME = ExampleApp; 499 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 500 | PRODUCT_NAME = "$(TARGET_NAME)"; 501 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 502 | SWIFT_VERSION = 4.0; 503 | }; 504 | name = Release; 505 | }; 506 | 607FACF31AFB9204008FA782 /* Debug */ = { 507 | isa = XCBuildConfiguration; 508 | baseConfigurationReference = CAB6E82378B8449F86EC0D26 /* Pods-CustomToastView-swift_Tests.debug.xcconfig */; 509 | buildSettings = { 510 | FRAMEWORK_SEARCH_PATHS = ( 511 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 512 | "$(inherited)", 513 | ); 514 | GCC_PREPROCESSOR_DEFINITIONS = ( 515 | "DEBUG=1", 516 | "$(inherited)", 517 | ); 518 | INFOPLIST_FILE = Tests/Info.plist; 519 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 520 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 521 | PRODUCT_NAME = "$(TARGET_NAME)"; 522 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 523 | SWIFT_VERSION = 4.0; 524 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CustomToastView-swift_Example.app/CustomToastView-swift_Example"; 525 | }; 526 | name = Debug; 527 | }; 528 | 607FACF41AFB9204008FA782 /* Release */ = { 529 | isa = XCBuildConfiguration; 530 | baseConfigurationReference = E59D5773D1F2C1094339207A /* Pods-CustomToastView-swift_Tests.release.xcconfig */; 531 | buildSettings = { 532 | FRAMEWORK_SEARCH_PATHS = ( 533 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 534 | "$(inherited)", 535 | ); 536 | INFOPLIST_FILE = Tests/Info.plist; 537 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 538 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 539 | PRODUCT_NAME = "$(TARGET_NAME)"; 540 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 541 | SWIFT_VERSION = 4.0; 542 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CustomToastView-swift_Example.app/CustomToastView-swift_Example"; 543 | }; 544 | name = Release; 545 | }; 546 | /* End XCBuildConfiguration section */ 547 | 548 | /* Begin XCConfigurationList section */ 549 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CustomToastView-swift" */ = { 550 | isa = XCConfigurationList; 551 | buildConfigurations = ( 552 | 607FACED1AFB9204008FA782 /* Debug */, 553 | 607FACEE1AFB9204008FA782 /* Release */, 554 | ); 555 | defaultConfigurationIsVisible = 0; 556 | defaultConfigurationName = Release; 557 | }; 558 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CustomToastView-swift_Example" */ = { 559 | isa = XCConfigurationList; 560 | buildConfigurations = ( 561 | 607FACF01AFB9204008FA782 /* Debug */, 562 | 607FACF11AFB9204008FA782 /* Release */, 563 | ); 564 | defaultConfigurationIsVisible = 0; 565 | defaultConfigurationName = Release; 566 | }; 567 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CustomToastView-swift_Tests" */ = { 568 | isa = XCConfigurationList; 569 | buildConfigurations = ( 570 | 607FACF31AFB9204008FA782 /* Debug */, 571 | 607FACF41AFB9204008FA782 /* Release */, 572 | ); 573 | defaultConfigurationIsVisible = 0; 574 | defaultConfigurationName = Release; 575 | }; 576 | /* End XCConfigurationList section */ 577 | }; 578 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 579 | } 580 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift.xcodeproj/xcshareddata/xcschemes/CustomToastView-swift-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CustomToastView-swift 4 | // 5 | // Created by lrodriguez@codigodelsur.com on 05/29/2021. 6 | // Copyright (c) 2021 lrodriguez@codigodelsur.com. 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: [UIApplicationLaunchOptionsKey: 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/CustomToastView-swift/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/CustomToastView-swift/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 | 25 | 31 | 49 | 64 | 79 | 94 | 109 | 124 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift/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/CustomToastView-swift/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift/Images.xcassets/check.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "check.svg", 5 | "idiom" : "universal" 6 | } 7 | ], 8 | "info" : { 9 | "author" : "xcode", 10 | "version" : 1 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift/Images.xcassets/check.imageset/check.svg: -------------------------------------------------------------------------------- 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 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Example/CustomToastView-swift/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/CustomToastView-swift/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CustomToastView-swift 4 | // 5 | // Created by lrodriguez@codigodelsur.com on 05/29/2021. 6 | // Copyright (c) 2021 lrodriguez@codigodelsur.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CustomToastView_swift 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 | override func didReceiveMemoryWarning() { 20 | super.didReceiveMemoryWarning() 21 | // Dispose of any resources that can be recreated. 22 | } 23 | 24 | @IBAction func bottomToTopTapped(_ sender: Any) { 25 | Toast.Builder() 26 | .font(UIFont.systemFont(ofSize: 12, weight: .medium)) 27 | .backgroundColor(.blue) 28 | .textColor(.white) 29 | .title("Hello! I'm a toast") 30 | .build() 31 | .show(on: self) 32 | } 33 | 34 | @IBAction func topToBottomTapped(_ sender: Any) { 35 | Toast.Builder() 36 | .font(UIFont.systemFont(ofSize: 12, weight: .medium)) 37 | .backgroundColor(.magenta) 38 | .textColor(.white) 39 | .title("Hello! I'm a toast") 40 | .orientation(.topToBottom) 41 | .rightActionText("UNDO") 42 | .actionFont(UIFont.systemFont(ofSize: 12, weight: .medium)) 43 | .actionTextColor(.white) 44 | .build() 45 | .show(on: self, actionCompletion: { 46 | print("UNDO action tapped") 47 | }) 48 | } 49 | 50 | @IBAction func leftToRightTapped(_ sender: Any) { 51 | Toast.Builder() 52 | .font(UIFont.systemFont(ofSize: 18, weight: .medium)) 53 | .backgroundColor(.customRed) 54 | .textColor(.white) 55 | .title("Possible error message!") 56 | .orientation(.leftToRight) 57 | .verticalPosition(150) 58 | .toastHeight(100) 59 | .build() 60 | .show(on: self) 61 | } 62 | 63 | @IBAction func rightToLeftTapped(_ sender: Any) { 64 | Toast.Builder() 65 | .font(UIFont.systemFont(ofSize: 18, weight: .semibold)) 66 | .backgroundColor(.success) 67 | .showLeftIcon(UIImage(named: "check")) 68 | .textColor(.white) 69 | .title("Possible success message!") 70 | .verticalPosition(600) 71 | .toastHeight(80) 72 | .orientation(.rightToLeft) 73 | .textAlignment(.left) 74 | .build() 75 | .show(on: self) 76 | } 77 | 78 | @IBAction func fadeInTapped(_ sender: Any) { 79 | Toast.Builder() 80 | .font(UIFont.systemFont(ofSize: 12, weight: .semibold)) 81 | .backgroundColor(.brown) 82 | .textColor(.white) 83 | .title("Hello! I'm a toast") 84 | .verticalPosition(500) 85 | .orientation(.fadeIn) 86 | .textAlignment(.left) 87 | .build() 88 | .show(on: self) 89 | } 90 | 91 | @IBAction func fadeOutTapped(_ sender: Any) { 92 | Toast.Builder() 93 | .font(UIFont.systemFont(ofSize: 12, weight: .semibold)) 94 | .backgroundColor(.orange) 95 | .textColor(.white) 96 | .title("Hello! I'm a toast") 97 | .orientation(.fadeOut) 98 | .verticalPosition(400) 99 | .textAlignment(.right) 100 | .timeDismissal(1) 101 | .build() 102 | .show(on: self) 103 | } 104 | 105 | @IBAction func dismissByTapping(_ sender: Any) { 106 | Toast.Builder() 107 | .font(UIFont.systemFont(ofSize: 12, weight: .medium)) 108 | .backgroundColor(.blue) 109 | .textColor(.white) 110 | .title("Hello! I'm a toast") 111 | .shouldDismissAfterPresenting(false) 112 | .build() 113 | .show(on: self) { toast in 114 | toast.hide() 115 | } 116 | } 117 | } 118 | 119 | extension UIColor { 120 | static let customRed = UIColor(red: 1.00, green: 0.21, blue: 0.33, alpha: 1.00) 121 | static let success = UIColor(red: 0.07, green: 0.74, blue: 0.22, alpha: 1.00) 122 | } 123 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '9.0' 4 | 5 | target 'CustomToastView-swift_Example' do 6 | pod 'CustomToastView-swift' 7 | 8 | target 'CustomToastView-swift_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CustomToastView-swift (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - CustomToastView-swift (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CustomToastView-swift: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CustomToastView-swift: 0f60548771fc8c9b85148ae452865b25494316df 13 | 14 | PODFILE CHECKSUM: 591de387feb46aa7e2b04d771e597e8ce61b6e2d 15 | 16 | COCOAPODS: 1.9.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/CustomToastView-swift.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CustomToastView-swift", 3 | "version": "0.1.0", 4 | "summary": "A short description of CustomToastView-swift.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/lrodriguez@codigodelsur.com/CustomToastView-swift", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "lrodriguez@codigodelsur.com": "lrodriguez@codigodelsur.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/lrodriguez@codigodelsur.com/CustomToastView-swift.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "9.0" 20 | }, 21 | "source_files": "CustomToastView-swift/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CustomToastView-swift (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - CustomToastView-swift (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CustomToastView-swift: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CustomToastView-swift: 0f60548771fc8c9b85148ae452865b25494316df 13 | 14 | PODFILE CHECKSUM: 591de387feb46aa7e2b04d771e597e8ce61b6e2d 15 | 16 | COCOAPODS: 1.9.3 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 | 0677F9915FD3DE6D8334D23A555D94A8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 11 | 1A9BA7B7B833803A90672DA1DF70A967 /* Pods-CustomToastView-swift_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AFDA72EA55C9394B697429D89C427D40 /* Pods-CustomToastView-swift_Tests-dummy.m */; }; 12 | 1F1DD55E6FE418D0CCC0703B9C5F0036 /* Pods-CustomToastView-swift_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8F87FA7572A0F2D94B0AF355F97D3E56 /* Pods-CustomToastView-swift_Example-dummy.m */; }; 13 | 36B71B6BD4D02B13EBCBEDDDCEBDCFE8 /* CustomToastView-swift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E3D39047EE22661735929EB371C8F18B /* CustomToastView-swift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 4AFFFFC78B28B0DBCCEDE784D897398B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 15 | 6045EB8AF4E3266B861802EB0E154747 /* Pods-CustomToastView-swift_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D978B44B944E43522D839136C87F5EE /* Pods-CustomToastView-swift_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | 6AA1A4456231838A0053C05A6671014C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 17 | 74DD1F31961D15BB049A06903E977132 /* CustomToastView-swift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 15932746B72E5E1A01EFC51EA191066E /* CustomToastView-swift-dummy.m */; }; 18 | 9754A5DF2663313B007D83F7 /* CustomToastView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9754A5DA2663313B007D83F7 /* CustomToastView.xib */; }; 19 | 9754A5E02663313B007D83F7 /* NSObjectExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9754A5DB2663313B007D83F7 /* NSObjectExtension.swift */; }; 20 | 9754A5E12663313B007D83F7 /* CustomToastView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9754A5DC2663313B007D83F7 /* CustomToastView.swift */; }; 21 | 9754A5E32663313B007D83F7 /* CustomToastViewExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9754A5DE2663313B007D83F7 /* CustomToastViewExtension.swift */; }; 22 | 978048D426657811009B00D7 /* ToastData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 978048D326657811009B00D7 /* ToastData.swift */; }; 23 | 978048D92665782D009B00D7 /* Toast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 978048D82665782D009B00D7 /* Toast.swift */; }; 24 | B2DE07FAF7B93B0F1C5030480B2EC7AC /* Pods-CustomToastView-swift_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 29951F810388CBBCB0EF74AF4914E5DA /* Pods-CustomToastView-swift_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 0D4C56DD55230E5E2E5040742B68AE4E /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 8AB71702DF75727FC93D122EF2982A9D; 33 | remoteInfo = "Pods-CustomToastView-swift_Example"; 34 | }; 35 | F7B1D719BCD070D59BD2ABEEE035B965 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = 02946B774A9C9EE74E8922C4F155D27A; 40 | remoteInfo = "CustomToastView-swift"; 41 | }; 42 | /* End PBXContainerItemProxy section */ 43 | 44 | /* Begin PBXFileReference section */ 45 | 0E346759B5975CE6DF56D2FC5646C4FA /* CustomToastView-swift.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = "CustomToastView-swift.podspec"; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 46 | 15932746B72E5E1A01EFC51EA191066E /* CustomToastView-swift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "CustomToastView-swift-dummy.m"; sourceTree = ""; }; 47 | 185E033D7527F7BEFAE80926A99C27E1 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 48 | 1D7121FF601D2E50E3357888DDDA3F09 /* Pods-CustomToastView-swift_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CustomToastView-swift_Tests-acknowledgements.plist"; sourceTree = ""; }; 49 | 1E6B622161BB99A3727ED3B11FEAAA90 /* Pods-CustomToastView-swift_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CustomToastView-swift_Example-acknowledgements.markdown"; sourceTree = ""; }; 50 | 2398145F39E5C4EDF0BA001750CD866A /* CustomToastView-swift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "CustomToastView-swift.modulemap"; sourceTree = ""; }; 51 | 29951F810388CBBCB0EF74AF4914E5DA /* Pods-CustomToastView-swift_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CustomToastView-swift_Tests-umbrella.h"; sourceTree = ""; }; 52 | 2BD137FA73B36A9B363C6025CB13FC9A /* Pods-CustomToastView-swift_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CustomToastView-swift_Tests-acknowledgements.markdown"; sourceTree = ""; }; 53 | 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; }; 54 | 339383BCC77C1FCBE23B5C6FDD92CCA6 /* Pods-CustomToastView-swift_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CustomToastView-swift_Example-acknowledgements.plist"; sourceTree = ""; }; 55 | 3A1220108ECC054AC6DC98871EFB64C6 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 56 | 3CD92F24E68CC3D5100CFE0B72CFC5A8 /* Pods-CustomToastView-swift_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CustomToastView-swift_Example-frameworks.sh"; sourceTree = ""; }; 57 | 4553E228917620694E63412939AB20F5 /* CustomToastView-swift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "CustomToastView-swift-Info.plist"; sourceTree = ""; }; 58 | 4827124748309FA6A4994F06468ED223 /* Pods-CustomToastView-swift_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CustomToastView-swift_Example.modulemap"; sourceTree = ""; }; 59 | 593FE4FBE560EDA70AF972A27A5F9DED /* Pods-CustomToastView-swift_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CustomToastView-swift_Tests-Info.plist"; sourceTree = ""; }; 60 | 5D978B44B944E43522D839136C87F5EE /* Pods-CustomToastView-swift_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CustomToastView-swift_Example-umbrella.h"; sourceTree = ""; }; 61 | 656DF0921F5CF2850B2F42EC076EE11D /* Pods-CustomToastView-swift_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CustomToastView-swift_Example.debug.xcconfig"; sourceTree = ""; }; 62 | 6ADED8A0F0EC49680B58CA3FA941079F /* Pods-CustomToastView-swift_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CustomToastView-swift_Tests.modulemap"; sourceTree = ""; }; 63 | 8E274FC99A0C1CFD70A1B6795EC83701 /* CustomToastView-swift-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CustomToastView-swift-prefix.pch"; sourceTree = ""; }; 64 | 8F87FA7572A0F2D94B0AF355F97D3E56 /* Pods-CustomToastView-swift_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CustomToastView-swift_Example-dummy.m"; sourceTree = ""; }; 65 | 9754A5DA2663313B007D83F7 /* CustomToastView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CustomToastView.xib; sourceTree = ""; }; 66 | 9754A5DB2663313B007D83F7 /* NSObjectExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSObjectExtension.swift; sourceTree = ""; }; 67 | 9754A5DC2663313B007D83F7 /* CustomToastView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomToastView.swift; sourceTree = ""; }; 68 | 9754A5DE2663313B007D83F7 /* CustomToastViewExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomToastViewExtension.swift; sourceTree = ""; }; 69 | 978048D326657811009B00D7 /* ToastData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ToastData.swift; sourceTree = ""; }; 70 | 978048D82665782D009B00D7 /* Toast.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Toast.swift; sourceTree = ""; }; 71 | 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; }; 72 | AFDA72EA55C9394B697429D89C427D40 /* Pods-CustomToastView-swift_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CustomToastView-swift_Tests-dummy.m"; sourceTree = ""; }; 73 | C023D4153CFDDC4EE3A407A67D656A90 /* Pods-CustomToastView-swift_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CustomToastView-swift_Tests.debug.xcconfig"; sourceTree = ""; }; 74 | CE5B0AAE72A2CBD2BE281E67E12DD86C /* Pods_CustomToastView_swift_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CustomToastView_swift_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 75 | D17945C6C9B64A4F5857305540524A55 /* Pods_CustomToastView_swift_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CustomToastView_swift_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 76 | D37F7633C9736C4BAFC8E32A607D1B4A /* CustomToastView_swift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CustomToastView_swift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 77 | D4E40CC1EC3BBFB3DAFD3B0FB658FFE3 /* CustomToastView-swift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "CustomToastView-swift.debug.xcconfig"; sourceTree = ""; }; 78 | DF73C3F2CAFE467D50A77E0CB3C4D827 /* CustomToastView-swift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "CustomToastView-swift.release.xcconfig"; sourceTree = ""; }; 79 | E3D39047EE22661735929EB371C8F18B /* CustomToastView-swift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CustomToastView-swift-umbrella.h"; sourceTree = ""; }; 80 | E9D96A537F429694ACA5FEF99E169B80 /* Pods-CustomToastView-swift_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CustomToastView-swift_Tests.release.xcconfig"; sourceTree = ""; }; 81 | F2B95A0462B71ABDB730D86883C8A6D9 /* Pods-CustomToastView-swift_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CustomToastView-swift_Example.release.xcconfig"; sourceTree = ""; }; 82 | F985E2B92B7B0D7F7D28C8EE95FBEAAD /* Pods-CustomToastView-swift_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CustomToastView-swift_Example-Info.plist"; sourceTree = ""; }; 83 | /* End PBXFileReference section */ 84 | 85 | /* Begin PBXFrameworksBuildPhase section */ 86 | 128B2990284F1C85332EED5E1180DFA3 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | 4AFFFFC78B28B0DBCCEDE784D897398B /* Foundation.framework in Frameworks */, 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | 8C092D7E7A3B9AB28FF3B881F530702B /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | 0677F9915FD3DE6D8334D23A555D94A8 /* Foundation.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | A750B914D5EBC2EE6B5941268BA7E8FB /* Frameworks */ = { 103 | isa = PBXFrameworksBuildPhase; 104 | buildActionMask = 2147483647; 105 | files = ( 106 | 6AA1A4456231838A0053C05A6671014C /* Foundation.framework in Frameworks */, 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | /* End PBXFrameworksBuildPhase section */ 111 | 112 | /* Begin PBXGroup section */ 113 | 14D6A2F795AC01F8A547A9FA0D222757 /* Targets Support Files */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | B20F22BC91B938C1BB95667ADA3185EC /* Pods-CustomToastView-swift_Example */, 117 | 747F1765181C3E5C2E45BF630DF0E79A /* Pods-CustomToastView-swift_Tests */, 118 | ); 119 | name = "Targets Support Files"; 120 | sourceTree = ""; 121 | }; 122 | 436AE6F92EEEDC02D8A0FE0D1E1AD7A1 /* CustomToastView-swift */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 9754A6F72663D6D4007D83F7 /* Source */, 126 | 54FE120095C702F00231F5703DCD6E80 /* Pod */, 127 | 8DD80ACF664DAED2BC3210662E4CC711 /* Support Files */, 128 | ); 129 | name = "CustomToastView-swift"; 130 | path = ../..; 131 | sourceTree = ""; 132 | }; 133 | 54FE120095C702F00231F5703DCD6E80 /* Pod */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 0E346759B5975CE6DF56D2FC5646C4FA /* CustomToastView-swift.podspec */, 137 | 3A1220108ECC054AC6DC98871EFB64C6 /* LICENSE */, 138 | 185E033D7527F7BEFAE80926A99C27E1 /* README.md */, 139 | ); 140 | name = Pod; 141 | sourceTree = ""; 142 | }; 143 | 5FF00F5BCA80C35B22E579DD1A477560 /* Products */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | D37F7633C9736C4BAFC8E32A607D1B4A /* CustomToastView_swift.framework */, 147 | CE5B0AAE72A2CBD2BE281E67E12DD86C /* Pods_CustomToastView_swift_Example.framework */, 148 | D17945C6C9B64A4F5857305540524A55 /* Pods_CustomToastView_swift_Tests.framework */, 149 | ); 150 | name = Products; 151 | sourceTree = ""; 152 | }; 153 | 747F1765181C3E5C2E45BF630DF0E79A /* Pods-CustomToastView-swift_Tests */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 6ADED8A0F0EC49680B58CA3FA941079F /* Pods-CustomToastView-swift_Tests.modulemap */, 157 | 2BD137FA73B36A9B363C6025CB13FC9A /* Pods-CustomToastView-swift_Tests-acknowledgements.markdown */, 158 | 1D7121FF601D2E50E3357888DDDA3F09 /* Pods-CustomToastView-swift_Tests-acknowledgements.plist */, 159 | AFDA72EA55C9394B697429D89C427D40 /* Pods-CustomToastView-swift_Tests-dummy.m */, 160 | 593FE4FBE560EDA70AF972A27A5F9DED /* Pods-CustomToastView-swift_Tests-Info.plist */, 161 | 29951F810388CBBCB0EF74AF4914E5DA /* Pods-CustomToastView-swift_Tests-umbrella.h */, 162 | C023D4153CFDDC4EE3A407A67D656A90 /* Pods-CustomToastView-swift_Tests.debug.xcconfig */, 163 | E9D96A537F429694ACA5FEF99E169B80 /* Pods-CustomToastView-swift_Tests.release.xcconfig */, 164 | ); 165 | name = "Pods-CustomToastView-swift_Tests"; 166 | path = "Target Support Files/Pods-CustomToastView-swift_Tests"; 167 | sourceTree = ""; 168 | }; 169 | 8DD80ACF664DAED2BC3210662E4CC711 /* Support Files */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 2398145F39E5C4EDF0BA001750CD866A /* CustomToastView-swift.modulemap */, 173 | 15932746B72E5E1A01EFC51EA191066E /* CustomToastView-swift-dummy.m */, 174 | 4553E228917620694E63412939AB20F5 /* CustomToastView-swift-Info.plist */, 175 | 8E274FC99A0C1CFD70A1B6795EC83701 /* CustomToastView-swift-prefix.pch */, 176 | E3D39047EE22661735929EB371C8F18B /* CustomToastView-swift-umbrella.h */, 177 | D4E40CC1EC3BBFB3DAFD3B0FB658FFE3 /* CustomToastView-swift.debug.xcconfig */, 178 | DF73C3F2CAFE467D50A77E0CB3C4D827 /* CustomToastView-swift.release.xcconfig */, 179 | ); 180 | name = "Support Files"; 181 | path = "Example/Pods/Target Support Files/CustomToastView-swift"; 182 | sourceTree = ""; 183 | }; 184 | 9754A6F72663D6D4007D83F7 /* Source */ = { 185 | isa = PBXGroup; 186 | children = ( 187 | 9754A5DC2663313B007D83F7 /* CustomToastView.swift */, 188 | 9754A5DA2663313B007D83F7 /* CustomToastView.xib */, 189 | 9754A5DE2663313B007D83F7 /* CustomToastViewExtension.swift */, 190 | 9754A5DB2663313B007D83F7 /* NSObjectExtension.swift */, 191 | 978048D326657811009B00D7 /* ToastData.swift */, 192 | 978048D82665782D009B00D7 /* Toast.swift */, 193 | ); 194 | path = Source; 195 | sourceTree = ""; 196 | }; 197 | 9DBE25C435BE3121F9DD6164A7A6256F /* Development Pods */ = { 198 | isa = PBXGroup; 199 | children = ( 200 | 436AE6F92EEEDC02D8A0FE0D1E1AD7A1 /* CustomToastView-swift */, 201 | ); 202 | name = "Development Pods"; 203 | sourceTree = ""; 204 | }; 205 | B20F22BC91B938C1BB95667ADA3185EC /* Pods-CustomToastView-swift_Example */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 4827124748309FA6A4994F06468ED223 /* Pods-CustomToastView-swift_Example.modulemap */, 209 | 1E6B622161BB99A3727ED3B11FEAAA90 /* Pods-CustomToastView-swift_Example-acknowledgements.markdown */, 210 | 339383BCC77C1FCBE23B5C6FDD92CCA6 /* Pods-CustomToastView-swift_Example-acknowledgements.plist */, 211 | 8F87FA7572A0F2D94B0AF355F97D3E56 /* Pods-CustomToastView-swift_Example-dummy.m */, 212 | 3CD92F24E68CC3D5100CFE0B72CFC5A8 /* Pods-CustomToastView-swift_Example-frameworks.sh */, 213 | F985E2B92B7B0D7F7D28C8EE95FBEAAD /* Pods-CustomToastView-swift_Example-Info.plist */, 214 | 5D978B44B944E43522D839136C87F5EE /* Pods-CustomToastView-swift_Example-umbrella.h */, 215 | 656DF0921F5CF2850B2F42EC076EE11D /* Pods-CustomToastView-swift_Example.debug.xcconfig */, 216 | F2B95A0462B71ABDB730D86883C8A6D9 /* Pods-CustomToastView-swift_Example.release.xcconfig */, 217 | ); 218 | name = "Pods-CustomToastView-swift_Example"; 219 | path = "Target Support Files/Pods-CustomToastView-swift_Example"; 220 | sourceTree = ""; 221 | }; 222 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 223 | isa = PBXGroup; 224 | children = ( 225 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 226 | ); 227 | name = iOS; 228 | sourceTree = ""; 229 | }; 230 | CF1408CF629C7361332E53B88F7BD30C = { 231 | isa = PBXGroup; 232 | children = ( 233 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 234 | 9DBE25C435BE3121F9DD6164A7A6256F /* Development Pods */, 235 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 236 | 5FF00F5BCA80C35B22E579DD1A477560 /* Products */, 237 | 14D6A2F795AC01F8A547A9FA0D222757 /* Targets Support Files */, 238 | ); 239 | sourceTree = ""; 240 | }; 241 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 242 | isa = PBXGroup; 243 | children = ( 244 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 245 | ); 246 | name = Frameworks; 247 | sourceTree = ""; 248 | }; 249 | /* End PBXGroup section */ 250 | 251 | /* Begin PBXHeadersBuildPhase section */ 252 | 25793D76EBBA121CB781D918B2990642 /* Headers */ = { 253 | isa = PBXHeadersBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | 6045EB8AF4E3266B861802EB0E154747 /* Pods-CustomToastView-swift_Example-umbrella.h in Headers */, 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | }; 260 | 504D213AA28850528A86B0FED1F72FF3 /* Headers */ = { 261 | isa = PBXHeadersBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | B2DE07FAF7B93B0F1C5030480B2EC7AC /* Pods-CustomToastView-swift_Tests-umbrella.h in Headers */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | D26D5BF1A1A18FB20FDABC53DD3BC710 /* Headers */ = { 269 | isa = PBXHeadersBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | 36B71B6BD4D02B13EBCBEDDDCEBDCFE8 /* CustomToastView-swift-umbrella.h in Headers */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXHeadersBuildPhase section */ 277 | 278 | /* Begin PBXNativeTarget section */ 279 | 02946B774A9C9EE74E8922C4F155D27A /* CustomToastView-swift */ = { 280 | isa = PBXNativeTarget; 281 | buildConfigurationList = 516E92610B5F13C7EC30D566DF3A1E17 /* Build configuration list for PBXNativeTarget "CustomToastView-swift" */; 282 | buildPhases = ( 283 | D26D5BF1A1A18FB20FDABC53DD3BC710 /* Headers */, 284 | 6990DAE421BAA8D691559BCF7DE66BDC /* Sources */, 285 | 128B2990284F1C85332EED5E1180DFA3 /* Frameworks */, 286 | 7D4C2D3D4E268A695E325EA483F72C5E /* Resources */, 287 | ); 288 | buildRules = ( 289 | ); 290 | dependencies = ( 291 | ); 292 | name = "CustomToastView-swift"; 293 | productName = "CustomToastView-swift"; 294 | productReference = D37F7633C9736C4BAFC8E32A607D1B4A /* CustomToastView_swift.framework */; 295 | productType = "com.apple.product-type.framework"; 296 | }; 297 | 43DBD96EEA4BA49A529144A2E071FAC7 /* Pods-CustomToastView-swift_Tests */ = { 298 | isa = PBXNativeTarget; 299 | buildConfigurationList = 1E29871E8737AE29FD7E03E1353C0E0A /* Build configuration list for PBXNativeTarget "Pods-CustomToastView-swift_Tests" */; 300 | buildPhases = ( 301 | 504D213AA28850528A86B0FED1F72FF3 /* Headers */, 302 | E08A160831C800F2F0243A0A914DC957 /* Sources */, 303 | A750B914D5EBC2EE6B5941268BA7E8FB /* Frameworks */, 304 | FE5E95CFCC5CFA9042F1026C07132BA5 /* Resources */, 305 | ); 306 | buildRules = ( 307 | ); 308 | dependencies = ( 309 | 9D106C7430DC82FC16E70A1D5C18EFED /* PBXTargetDependency */, 310 | ); 311 | name = "Pods-CustomToastView-swift_Tests"; 312 | productName = "Pods-CustomToastView-swift_Tests"; 313 | productReference = D17945C6C9B64A4F5857305540524A55 /* Pods_CustomToastView_swift_Tests.framework */; 314 | productType = "com.apple.product-type.framework"; 315 | }; 316 | 8AB71702DF75727FC93D122EF2982A9D /* Pods-CustomToastView-swift_Example */ = { 317 | isa = PBXNativeTarget; 318 | buildConfigurationList = E92C91D91EE6E638C4BE6151CF5B0FD6 /* Build configuration list for PBXNativeTarget "Pods-CustomToastView-swift_Example" */; 319 | buildPhases = ( 320 | 25793D76EBBA121CB781D918B2990642 /* Headers */, 321 | 9504050A8735E715B40FC2D04BCB93B8 /* Sources */, 322 | 8C092D7E7A3B9AB28FF3B881F530702B /* Frameworks */, 323 | D92D05415720EAE19E369547045A7CA2 /* Resources */, 324 | ); 325 | buildRules = ( 326 | ); 327 | dependencies = ( 328 | 90FEECA2460C1C6D7448CBB1FCD5074E /* PBXTargetDependency */, 329 | ); 330 | name = "Pods-CustomToastView-swift_Example"; 331 | productName = "Pods-CustomToastView-swift_Example"; 332 | productReference = CE5B0AAE72A2CBD2BE281E67E12DD86C /* Pods_CustomToastView_swift_Example.framework */; 333 | productType = "com.apple.product-type.framework"; 334 | }; 335 | /* End PBXNativeTarget section */ 336 | 337 | /* Begin PBXProject section */ 338 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 339 | isa = PBXProject; 340 | attributes = { 341 | LastSwiftUpdateCheck = 1100; 342 | LastUpgradeCheck = 1100; 343 | }; 344 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 345 | compatibilityVersion = "Xcode 3.2"; 346 | developmentRegion = en; 347 | hasScannedForEncodings = 0; 348 | knownRegions = ( 349 | en, 350 | Base, 351 | ); 352 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 353 | productRefGroup = 5FF00F5BCA80C35B22E579DD1A477560 /* Products */; 354 | projectDirPath = ""; 355 | projectRoot = ""; 356 | targets = ( 357 | 02946B774A9C9EE74E8922C4F155D27A /* CustomToastView-swift */, 358 | 8AB71702DF75727FC93D122EF2982A9D /* Pods-CustomToastView-swift_Example */, 359 | 43DBD96EEA4BA49A529144A2E071FAC7 /* Pods-CustomToastView-swift_Tests */, 360 | ); 361 | }; 362 | /* End PBXProject section */ 363 | 364 | /* Begin PBXResourcesBuildPhase section */ 365 | 7D4C2D3D4E268A695E325EA483F72C5E /* Resources */ = { 366 | isa = PBXResourcesBuildPhase; 367 | buildActionMask = 2147483647; 368 | files = ( 369 | 9754A5DF2663313B007D83F7 /* CustomToastView.xib in Resources */, 370 | ); 371 | runOnlyForDeploymentPostprocessing = 0; 372 | }; 373 | D92D05415720EAE19E369547045A7CA2 /* Resources */ = { 374 | isa = PBXResourcesBuildPhase; 375 | buildActionMask = 2147483647; 376 | files = ( 377 | ); 378 | runOnlyForDeploymentPostprocessing = 0; 379 | }; 380 | FE5E95CFCC5CFA9042F1026C07132BA5 /* Resources */ = { 381 | isa = PBXResourcesBuildPhase; 382 | buildActionMask = 2147483647; 383 | files = ( 384 | ); 385 | runOnlyForDeploymentPostprocessing = 0; 386 | }; 387 | /* End PBXResourcesBuildPhase section */ 388 | 389 | /* Begin PBXSourcesBuildPhase section */ 390 | 6990DAE421BAA8D691559BCF7DE66BDC /* Sources */ = { 391 | isa = PBXSourcesBuildPhase; 392 | buildActionMask = 2147483647; 393 | files = ( 394 | 74DD1F31961D15BB049A06903E977132 /* CustomToastView-swift-dummy.m in Sources */, 395 | 978048D92665782D009B00D7 /* Toast.swift in Sources */, 396 | 9754A5E12663313B007D83F7 /* CustomToastView.swift in Sources */, 397 | 978048D426657811009B00D7 /* ToastData.swift in Sources */, 398 | 9754A5E02663313B007D83F7 /* NSObjectExtension.swift in Sources */, 399 | 9754A5E32663313B007D83F7 /* CustomToastViewExtension.swift in Sources */, 400 | ); 401 | runOnlyForDeploymentPostprocessing = 0; 402 | }; 403 | 9504050A8735E715B40FC2D04BCB93B8 /* Sources */ = { 404 | isa = PBXSourcesBuildPhase; 405 | buildActionMask = 2147483647; 406 | files = ( 407 | 1F1DD55E6FE418D0CCC0703B9C5F0036 /* Pods-CustomToastView-swift_Example-dummy.m in Sources */, 408 | ); 409 | runOnlyForDeploymentPostprocessing = 0; 410 | }; 411 | E08A160831C800F2F0243A0A914DC957 /* Sources */ = { 412 | isa = PBXSourcesBuildPhase; 413 | buildActionMask = 2147483647; 414 | files = ( 415 | 1A9BA7B7B833803A90672DA1DF70A967 /* Pods-CustomToastView-swift_Tests-dummy.m in Sources */, 416 | ); 417 | runOnlyForDeploymentPostprocessing = 0; 418 | }; 419 | /* End PBXSourcesBuildPhase section */ 420 | 421 | /* Begin PBXTargetDependency section */ 422 | 90FEECA2460C1C6D7448CBB1FCD5074E /* PBXTargetDependency */ = { 423 | isa = PBXTargetDependency; 424 | name = "CustomToastView-swift"; 425 | target = 02946B774A9C9EE74E8922C4F155D27A /* CustomToastView-swift */; 426 | targetProxy = F7B1D719BCD070D59BD2ABEEE035B965 /* PBXContainerItemProxy */; 427 | }; 428 | 9D106C7430DC82FC16E70A1D5C18EFED /* PBXTargetDependency */ = { 429 | isa = PBXTargetDependency; 430 | name = "Pods-CustomToastView-swift_Example"; 431 | target = 8AB71702DF75727FC93D122EF2982A9D /* Pods-CustomToastView-swift_Example */; 432 | targetProxy = 0D4C56DD55230E5E2E5040742B68AE4E /* PBXContainerItemProxy */; 433 | }; 434 | /* End PBXTargetDependency section */ 435 | 436 | /* Begin XCBuildConfiguration section */ 437 | 24131CDA6F4D9050421D5576441D42F0 /* Debug */ = { 438 | isa = XCBuildConfiguration; 439 | baseConfigurationReference = D4E40CC1EC3BBFB3DAFD3B0FB658FFE3 /* CustomToastView-swift.debug.xcconfig */; 440 | buildSettings = { 441 | CODE_SIGN_IDENTITY = ""; 442 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 443 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 444 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 445 | CURRENT_PROJECT_VERSION = 1; 446 | DEFINES_MODULE = YES; 447 | DYLIB_COMPATIBILITY_VERSION = 1; 448 | DYLIB_CURRENT_VERSION = 1; 449 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 450 | GCC_PREFIX_HEADER = "Target Support Files/CustomToastView-swift/CustomToastView-swift-prefix.pch"; 451 | INFOPLIST_FILE = "Target Support Files/CustomToastView-swift/CustomToastView-swift-Info.plist"; 452 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 453 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 454 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 455 | MARKETING_VERSION = 0.1.5; 456 | MODULEMAP_FILE = "Target Support Files/CustomToastView-swift/CustomToastView-swift.modulemap"; 457 | PRODUCT_MODULE_NAME = CustomToastView_swift; 458 | PRODUCT_NAME = CustomToastView_swift; 459 | SDKROOT = iphoneos; 460 | SKIP_INSTALL = YES; 461 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 462 | SWIFT_VERSION = 4.0; 463 | TARGETED_DEVICE_FAMILY = "1,2"; 464 | VERSIONING_SYSTEM = "apple-generic"; 465 | VERSION_INFO_PREFIX = ""; 466 | }; 467 | name = Debug; 468 | }; 469 | 30DCAB95332E35DEF0695105A91921C0 /* Debug */ = { 470 | isa = XCBuildConfiguration; 471 | baseConfigurationReference = 656DF0921F5CF2850B2F42EC076EE11D /* Pods-CustomToastView-swift_Example.debug.xcconfig */; 472 | buildSettings = { 473 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 474 | CODE_SIGN_IDENTITY = ""; 475 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 476 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 477 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 478 | CURRENT_PROJECT_VERSION = 1; 479 | DEFINES_MODULE = YES; 480 | DYLIB_COMPATIBILITY_VERSION = 1; 481 | DYLIB_CURRENT_VERSION = 1; 482 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 483 | INFOPLIST_FILE = "Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example-Info.plist"; 484 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 485 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 486 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 487 | MACH_O_TYPE = staticlib; 488 | MODULEMAP_FILE = "Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example.modulemap"; 489 | OTHER_LDFLAGS = ""; 490 | OTHER_LIBTOOLFLAGS = ""; 491 | PODS_ROOT = "$(SRCROOT)"; 492 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 493 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 494 | SDKROOT = iphoneos; 495 | SKIP_INSTALL = YES; 496 | TARGETED_DEVICE_FAMILY = "1,2"; 497 | VERSIONING_SYSTEM = "apple-generic"; 498 | VERSION_INFO_PREFIX = ""; 499 | }; 500 | name = Debug; 501 | }; 502 | 4D03B6B5DCF1B42C06206DF2BBEF39B9 /* Debug */ = { 503 | isa = XCBuildConfiguration; 504 | baseConfigurationReference = C023D4153CFDDC4EE3A407A67D656A90 /* Pods-CustomToastView-swift_Tests.debug.xcconfig */; 505 | buildSettings = { 506 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 507 | CODE_SIGN_IDENTITY = ""; 508 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 509 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 510 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 511 | CURRENT_PROJECT_VERSION = 1; 512 | DEFINES_MODULE = YES; 513 | DYLIB_COMPATIBILITY_VERSION = 1; 514 | DYLIB_CURRENT_VERSION = 1; 515 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 516 | INFOPLIST_FILE = "Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests-Info.plist"; 517 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 518 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 519 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 520 | MACH_O_TYPE = staticlib; 521 | MODULEMAP_FILE = "Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests.modulemap"; 522 | OTHER_LDFLAGS = ""; 523 | OTHER_LIBTOOLFLAGS = ""; 524 | PODS_ROOT = "$(SRCROOT)"; 525 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 526 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 527 | SDKROOT = iphoneos; 528 | SKIP_INSTALL = YES; 529 | TARGETED_DEVICE_FAMILY = "1,2"; 530 | VERSIONING_SYSTEM = "apple-generic"; 531 | VERSION_INFO_PREFIX = ""; 532 | }; 533 | name = Debug; 534 | }; 535 | 8F17DC3A99F99FBAD606CE6963886315 /* Release */ = { 536 | isa = XCBuildConfiguration; 537 | buildSettings = { 538 | ALWAYS_SEARCH_USER_PATHS = NO; 539 | CLANG_ANALYZER_NONNULL = YES; 540 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 541 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 542 | CLANG_CXX_LIBRARY = "libc++"; 543 | CLANG_ENABLE_MODULES = YES; 544 | CLANG_ENABLE_OBJC_ARC = YES; 545 | CLANG_ENABLE_OBJC_WEAK = YES; 546 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 547 | CLANG_WARN_BOOL_CONVERSION = YES; 548 | CLANG_WARN_COMMA = YES; 549 | CLANG_WARN_CONSTANT_CONVERSION = YES; 550 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 551 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 552 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 553 | CLANG_WARN_EMPTY_BODY = YES; 554 | CLANG_WARN_ENUM_CONVERSION = YES; 555 | CLANG_WARN_INFINITE_RECURSION = YES; 556 | CLANG_WARN_INT_CONVERSION = YES; 557 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 558 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 559 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 560 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 561 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 562 | CLANG_WARN_STRICT_PROTOTYPES = YES; 563 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 564 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 565 | CLANG_WARN_UNREACHABLE_CODE = YES; 566 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 567 | COPY_PHASE_STRIP = NO; 568 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 569 | ENABLE_NS_ASSERTIONS = NO; 570 | ENABLE_STRICT_OBJC_MSGSEND = YES; 571 | GCC_C_LANGUAGE_STANDARD = gnu11; 572 | GCC_NO_COMMON_BLOCKS = YES; 573 | GCC_PREPROCESSOR_DEFINITIONS = ( 574 | "POD_CONFIGURATION_RELEASE=1", 575 | "$(inherited)", 576 | ); 577 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 578 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 579 | GCC_WARN_UNDECLARED_SELECTOR = YES; 580 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 581 | GCC_WARN_UNUSED_FUNCTION = YES; 582 | GCC_WARN_UNUSED_VARIABLE = YES; 583 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 584 | MTL_ENABLE_DEBUG_INFO = NO; 585 | MTL_FAST_MATH = YES; 586 | PRODUCT_NAME = "$(TARGET_NAME)"; 587 | STRIP_INSTALLED_PRODUCT = NO; 588 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 589 | SWIFT_VERSION = 5.0; 590 | SYMROOT = "${SRCROOT}/../build"; 591 | }; 592 | name = Release; 593 | }; 594 | 916E0404255105F480DC4950B7625F7A /* Debug */ = { 595 | isa = XCBuildConfiguration; 596 | buildSettings = { 597 | ALWAYS_SEARCH_USER_PATHS = NO; 598 | CLANG_ANALYZER_NONNULL = YES; 599 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 600 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 601 | CLANG_CXX_LIBRARY = "libc++"; 602 | CLANG_ENABLE_MODULES = YES; 603 | CLANG_ENABLE_OBJC_ARC = YES; 604 | CLANG_ENABLE_OBJC_WEAK = YES; 605 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 606 | CLANG_WARN_BOOL_CONVERSION = YES; 607 | CLANG_WARN_COMMA = YES; 608 | CLANG_WARN_CONSTANT_CONVERSION = YES; 609 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 610 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 611 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 612 | CLANG_WARN_EMPTY_BODY = YES; 613 | CLANG_WARN_ENUM_CONVERSION = YES; 614 | CLANG_WARN_INFINITE_RECURSION = YES; 615 | CLANG_WARN_INT_CONVERSION = YES; 616 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 617 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 618 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 619 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 620 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 621 | CLANG_WARN_STRICT_PROTOTYPES = YES; 622 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 623 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 624 | CLANG_WARN_UNREACHABLE_CODE = YES; 625 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 626 | COPY_PHASE_STRIP = NO; 627 | DEBUG_INFORMATION_FORMAT = dwarf; 628 | ENABLE_STRICT_OBJC_MSGSEND = YES; 629 | ENABLE_TESTABILITY = YES; 630 | GCC_C_LANGUAGE_STANDARD = gnu11; 631 | GCC_DYNAMIC_NO_PIC = NO; 632 | GCC_NO_COMMON_BLOCKS = YES; 633 | GCC_OPTIMIZATION_LEVEL = 0; 634 | GCC_PREPROCESSOR_DEFINITIONS = ( 635 | "POD_CONFIGURATION_DEBUG=1", 636 | "DEBUG=1", 637 | "$(inherited)", 638 | ); 639 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 640 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 641 | GCC_WARN_UNDECLARED_SELECTOR = YES; 642 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 643 | GCC_WARN_UNUSED_FUNCTION = YES; 644 | GCC_WARN_UNUSED_VARIABLE = YES; 645 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 646 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 647 | MTL_FAST_MATH = YES; 648 | ONLY_ACTIVE_ARCH = YES; 649 | PRODUCT_NAME = "$(TARGET_NAME)"; 650 | STRIP_INSTALLED_PRODUCT = NO; 651 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 652 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 653 | SWIFT_VERSION = 5.0; 654 | SYMROOT = "${SRCROOT}/../build"; 655 | }; 656 | name = Debug; 657 | }; 658 | C6DB759463C5D26B02546F5D334108D1 /* Release */ = { 659 | isa = XCBuildConfiguration; 660 | baseConfigurationReference = DF73C3F2CAFE467D50A77E0CB3C4D827 /* CustomToastView-swift.release.xcconfig */; 661 | buildSettings = { 662 | CODE_SIGN_IDENTITY = ""; 663 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 664 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 665 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 666 | CURRENT_PROJECT_VERSION = 1; 667 | DEFINES_MODULE = YES; 668 | DYLIB_COMPATIBILITY_VERSION = 1; 669 | DYLIB_CURRENT_VERSION = 1; 670 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 671 | GCC_PREFIX_HEADER = "Target Support Files/CustomToastView-swift/CustomToastView-swift-prefix.pch"; 672 | INFOPLIST_FILE = "Target Support Files/CustomToastView-swift/CustomToastView-swift-Info.plist"; 673 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 674 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 675 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 676 | MARKETING_VERSION = 0.1.5; 677 | MODULEMAP_FILE = "Target Support Files/CustomToastView-swift/CustomToastView-swift.modulemap"; 678 | PRODUCT_MODULE_NAME = CustomToastView_swift; 679 | PRODUCT_NAME = CustomToastView_swift; 680 | SDKROOT = iphoneos; 681 | SKIP_INSTALL = YES; 682 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 683 | SWIFT_VERSION = 4.0; 684 | TARGETED_DEVICE_FAMILY = "1,2"; 685 | VALIDATE_PRODUCT = YES; 686 | VERSIONING_SYSTEM = "apple-generic"; 687 | VERSION_INFO_PREFIX = ""; 688 | }; 689 | name = Release; 690 | }; 691 | CDEFE3E71DB69027C84DCE27807D2221 /* Release */ = { 692 | isa = XCBuildConfiguration; 693 | baseConfigurationReference = E9D96A537F429694ACA5FEF99E169B80 /* Pods-CustomToastView-swift_Tests.release.xcconfig */; 694 | buildSettings = { 695 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 696 | CODE_SIGN_IDENTITY = ""; 697 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 698 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 699 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 700 | CURRENT_PROJECT_VERSION = 1; 701 | DEFINES_MODULE = YES; 702 | DYLIB_COMPATIBILITY_VERSION = 1; 703 | DYLIB_CURRENT_VERSION = 1; 704 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 705 | INFOPLIST_FILE = "Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests-Info.plist"; 706 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 707 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 708 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 709 | MACH_O_TYPE = staticlib; 710 | MODULEMAP_FILE = "Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests.modulemap"; 711 | OTHER_LDFLAGS = ""; 712 | OTHER_LIBTOOLFLAGS = ""; 713 | PODS_ROOT = "$(SRCROOT)"; 714 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 715 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 716 | SDKROOT = iphoneos; 717 | SKIP_INSTALL = YES; 718 | TARGETED_DEVICE_FAMILY = "1,2"; 719 | VALIDATE_PRODUCT = YES; 720 | VERSIONING_SYSTEM = "apple-generic"; 721 | VERSION_INFO_PREFIX = ""; 722 | }; 723 | name = Release; 724 | }; 725 | DA3E7ED290BE421791D3B80417AEE046 /* Release */ = { 726 | isa = XCBuildConfiguration; 727 | baseConfigurationReference = F2B95A0462B71ABDB730D86883C8A6D9 /* Pods-CustomToastView-swift_Example.release.xcconfig */; 728 | buildSettings = { 729 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 730 | CODE_SIGN_IDENTITY = ""; 731 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 732 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 733 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 734 | CURRENT_PROJECT_VERSION = 1; 735 | DEFINES_MODULE = YES; 736 | DYLIB_COMPATIBILITY_VERSION = 1; 737 | DYLIB_CURRENT_VERSION = 1; 738 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 739 | INFOPLIST_FILE = "Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example-Info.plist"; 740 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 741 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 742 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 743 | MACH_O_TYPE = staticlib; 744 | MODULEMAP_FILE = "Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example.modulemap"; 745 | OTHER_LDFLAGS = ""; 746 | OTHER_LIBTOOLFLAGS = ""; 747 | PODS_ROOT = "$(SRCROOT)"; 748 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 749 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 750 | SDKROOT = iphoneos; 751 | SKIP_INSTALL = YES; 752 | TARGETED_DEVICE_FAMILY = "1,2"; 753 | VALIDATE_PRODUCT = YES; 754 | VERSIONING_SYSTEM = "apple-generic"; 755 | VERSION_INFO_PREFIX = ""; 756 | }; 757 | name = Release; 758 | }; 759 | /* End XCBuildConfiguration section */ 760 | 761 | /* Begin XCConfigurationList section */ 762 | 1E29871E8737AE29FD7E03E1353C0E0A /* Build configuration list for PBXNativeTarget "Pods-CustomToastView-swift_Tests" */ = { 763 | isa = XCConfigurationList; 764 | buildConfigurations = ( 765 | 4D03B6B5DCF1B42C06206DF2BBEF39B9 /* Debug */, 766 | CDEFE3E71DB69027C84DCE27807D2221 /* Release */, 767 | ); 768 | defaultConfigurationIsVisible = 0; 769 | defaultConfigurationName = Release; 770 | }; 771 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 772 | isa = XCConfigurationList; 773 | buildConfigurations = ( 774 | 916E0404255105F480DC4950B7625F7A /* Debug */, 775 | 8F17DC3A99F99FBAD606CE6963886315 /* Release */, 776 | ); 777 | defaultConfigurationIsVisible = 0; 778 | defaultConfigurationName = Release; 779 | }; 780 | 516E92610B5F13C7EC30D566DF3A1E17 /* Build configuration list for PBXNativeTarget "CustomToastView-swift" */ = { 781 | isa = XCConfigurationList; 782 | buildConfigurations = ( 783 | 24131CDA6F4D9050421D5576441D42F0 /* Debug */, 784 | C6DB759463C5D26B02546F5D334108D1 /* Release */, 785 | ); 786 | defaultConfigurationIsVisible = 0; 787 | defaultConfigurationName = Release; 788 | }; 789 | E92C91D91EE6E638C4BE6151CF5B0FD6 /* Build configuration list for PBXNativeTarget "Pods-CustomToastView-swift_Example" */ = { 790 | isa = XCConfigurationList; 791 | buildConfigurations = ( 792 | 30DCAB95332E35DEF0695105A91921C0 /* Debug */, 793 | DA3E7ED290BE421791D3B80417AEE046 /* Release */, 794 | ); 795 | defaultConfigurationIsVisible = 0; 796 | defaultConfigurationName = Release; 797 | }; 798 | /* End XCConfigurationList section */ 799 | }; 800 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 801 | } 802 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CustomToastView-swift/CustomToastView-swift-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 | $(MARKETING_VERSION) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CustomToastView-swift/CustomToastView-swift-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_CustomToastView_swift : NSObject 3 | @end 4 | @implementation PodsDummy_CustomToastView_swift 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CustomToastView-swift/CustomToastView-swift-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/CustomToastView-swift/CustomToastView-swift-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 CustomToastView_swiftVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char CustomToastView_swiftVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CustomToastView-swift/CustomToastView-swift.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift 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/CustomToastView-swift/CustomToastView-swift.modulemap: -------------------------------------------------------------------------------- 1 | framework module CustomToastView_swift { 2 | umbrella header "CustomToastView-swift-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CustomToastView-swift/CustomToastView-swift.release.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift 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-CustomToastView-swift_Example/Pods-CustomToastView-swift_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-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## CustomToastView-swift 5 | 6 | Copyright (c) 2021 lrodriguez@codigodelsur.com 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-CustomToastView-swift_Example/Pods-CustomToastView-swift_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) 2021 lrodriguez@codigodelsur.com <lrodriguez@codigodelsur.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 | CustomToastView-swift 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-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CustomToastView_swift_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CustomToastView_swift_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_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}/CustomToastView-swift/CustomToastView_swift.framework" 201 | fi 202 | if [[ "$CONFIGURATION" == "Release" ]]; then 203 | install_framework "${BUILT_PRODUCTS_DIR}/CustomToastView-swift/CustomToastView_swift.framework" 204 | fi 205 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 206 | wait 207 | fi 208 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_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_CustomToastView_swift_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_CustomToastView_swift_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift/CustomToastView_swift.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "CustomToastView_swift" 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-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CustomToastView_swift_Example { 2 | umbrella header "Pods-CustomToastView-swift_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CustomToastView-swift_Example/Pods-CustomToastView-swift_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift/CustomToastView_swift.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "CustomToastView_swift" 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-CustomToastView-swift_Tests/Pods-CustomToastView-swift_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-CustomToastView-swift_Tests/Pods-CustomToastView-swift_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-CustomToastView-swift_Tests/Pods-CustomToastView-swift_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-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CustomToastView_swift_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CustomToastView_swift_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_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_CustomToastView_swift_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_CustomToastView_swift_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift/CustomToastView_swift.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "CustomToastView_swift" 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-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CustomToastView_swift_Tests { 2 | umbrella header "Pods-CustomToastView-swift_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CustomToastView-swift_Tests/Pods-CustomToastView-swift_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomToastView-swift/CustomToastView_swift.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "CustomToastView_swift" 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 CustomToastView-swift 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) 2021 Rabbit 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CustomToastView-swift 2 | 3 | [![CI Status](https://img.shields.io/travis/lrodriguez@codigodelsur.com/CustomToastView-swift.svg?style=flat)](https://travis-ci.org/lrodriguez@codigodelsur.com/CustomToastView-swift) 4 | [![Version](https://img.shields.io/cocoapods/v/CustomToastView-swift.svg?style=flat)](https://cocoapods.org/pods/CustomToastView-swift) 5 | [![License](https://img.shields.io/cocoapods/l/CustomToastView-swift.svg?style=flat)](https://cocoapods.org/pods/CustomToastView-swift) 6 | [![Platform](https://img.shields.io/cocoapods/p/CustomToastView-swift.svg?style=flat)](https://cocoapods.org/pods/CustomToastView-swift) 7 | 8 | A fully customizable library to easily display Animated Toast Messages in iOS using Swift! 9 | 10 | ## Preview - All the custom toasts you can build! 11 | 12 | ![](libraryUsage.gif) 13 | 14 | ## Requirements 15 | 16 | ## Installation 17 | 18 | CustomToastView-swift is available through [CocoaPods](https://cocoapods.org). To install 19 | it, simply add the following line to your Podfile: 20 | 21 | ```ruby 22 | pod 'CustomToastView-swift' 23 | ``` 24 | 25 | ## Usage 26 | 27 | In order to build your custom toast you need to use the Toast builder class. 28 | The following example shows a Custom Toast on a View Controller class with the default style and a default animation from bottom to top. 29 | 30 | ```swift 31 | Toast.Builder() 32 | .build() 33 | .show(on: self) 34 | ``` 35 | 36 | Here's an example with a completion from when the user taps the toast: 37 | 38 | ```swift 39 | Toast.Builder() 40 | .build() 41 | .show(on: self) { toast in 42 | toast.hide() 43 | } 44 | ``` 45 | Also `Toast.Builder()` could be stored as a constant class for later usage: 46 | 47 | ```swift 48 | let toastBuilder = Toast.Builder() 49 | ``` 50 | 51 | #### Animation Types 52 | You can present your Toast messages in different ways: 53 | - from bottom to top (`.bottomToTop`) 54 | - from top to bottom (`.topToBottom`) 55 | - from left to right (`.leftToRight`) 56 | - from right to left (`.rightToLeft`) 57 | - fading in (`.fadeIn`) 58 | - fading out (`.fadeOut`) 59 | 60 | The only thing you need to do is to specify the orientation (Animation type) when building your toast, as follows: 61 | 62 | ```swift 63 | Toast.Builder() 64 | .orientation(.leftToRight) 65 | .build() 66 | .show(on: self) 67 | ``` 68 | 69 | #### Specifying Vertical position 70 | 71 | In order to set the `y` position in which the Toast should display we use the `.verticalPosition` property and set the Int value you want, as follows: 72 | 73 | ```swift 74 | Toast.Builder() 75 | .verticalPosition(150) 76 | .build() 77 | .show(on: self) 78 | ``` 79 | 80 | #### Toast Height 81 | 82 | You might want to change the defautl Toast Height. In case you'd need to that you can do it as follows: 83 | ```swift 84 | Toast.Builder() 85 | .toastHeight(100) 86 | .build() 87 | .show(on: self) 88 | ``` 89 | 90 | #### Toast - BackgroundColor, TextColor, Font, Title, CornerRadius, TextAlignment 91 | 92 | All the following properties are customizable as well in case the default values are not useful to you ! 93 | 94 | ```swift 95 | Toast.Builder() 96 | .font(UIFont.systemFont(ofSize: 12, weight: .semibold)) 97 | .backgroundColor(.orange) 98 | .textColor(.white) 99 | .cornerRadius(12) 100 | .title("Hello! I'm a toast") 101 | .orientation(.fadeOut) 102 | .textAlignment(.right) 103 | .build() 104 | .show(on: self) 105 | ``` 106 | 107 | #### You can also set a right action on the Toast 108 | 109 | ![](rightActionExample.png) 110 | 111 | To do that you just need to set the following property when building your custom toast! 112 | 113 | ```swift 114 | Toast.Builder() 115 | .rightActionText("UNDO") 116 | .build() 117 | .show(on: self) 118 | ``` 119 | 120 | You can also set the specific styles for the action: 121 | 122 | ```swift 123 | Toast.Builder() 124 | .rightActionText("UNDO") 125 | .actionFont(UIFont.systemFont(ofSize: 12, weight: .medium)) 126 | .actionTextColor(.white) 127 | .build() 128 | .show(on: self) 129 | ``` 130 | 131 | You might want to add a completion to the above 'UNDO' action :) You can do that as follows: 132 | 133 | ```swift 134 | Toast.Builder() 135 | .rightActionText("UNDO") 136 | .actionFont(UIFont.systemFont(ofSize: 12, weight: .medium)) 137 | .actionTextColor(.white) 138 | .build() 139 | .show(on: self, actionCompletion: { 140 | print("UNDO action tapped") 141 | }) 142 | ``` 143 | 144 | #### Left Icon & letIconContentMode 145 | 146 | You might need to set a left icon, in that case this is the way to do it: 147 | 148 | ```swift 149 | Toast.Builder() 150 | .font(UIFont.systemFont(ofSize: 18, weight: .semibold)) 151 | .backgroundColor(.success) 152 | .showLeftIcon(UIImage(named: "check")) 153 | .textColor(.white) 154 | .title("Possible success message!") 155 | .textAlignment(.left) 156 | .build() 157 | .show(on: self) 158 | ``` 159 | 160 | `letIconContentMode` is the propety to set the `contentMode` to the left icon image added: 161 | 162 | ```swift 163 | Toast.Builder() 164 | .font(UIFont.systemFont(ofSize: 18, weight: .semibold)) 165 | .backgroundColor(.success) 166 | .showLeftIcon(UIImage(named: "check")) 167 | .letIconContentMode(.scaleAspectFill) 168 | .textColor(.white) 169 | .title("Possible success message!") 170 | .textAlignment(.left) 171 | .build() 172 | .show(on: self) 173 | ``` 174 | 175 | The default value of `letIconContentMode` is `.scaleAspectFit` 176 | 177 | #### Default Distance 178 | 179 | This property allows you to change the lateral margins of your toast. If you increase this value the width of the toast will decrease. You can set this side margin in the following way: 180 | 181 | ```swift 182 | Toast.Builder() 183 | .defaultDistance(30) 184 | .build() 185 | .show(on: self) 186 | ``` 187 | 188 | The default value of `defaultDistance` is 16 189 | 190 | #### Should Dismiss After Presenting 191 | 192 | This property specifies if the Toast should dismiss automatically after presenting or not. 193 | The default value of `shouldDismissAfterPresenting` is set to `true`. 194 | In case you don't want the toast to dismiss automatically after presenting you should implement the following: 195 | 196 | ```swift 197 | Toast.Builder() 198 | .shouldDismissAfterPresenting(false) 199 | .build() 200 | .show(on: self) 201 | ``` 202 | 203 | If you'd like to hide the toast when user taps it, you should call the `hide` function on the completion, as follows: 204 | 205 | ```swift 206 | Toast.Builder() 207 | .shouldDismissAfterPresenting(false) 208 | .build() 209 | .show(on: self) { toast in 210 | toast.hide() 211 | } 212 | ``` 213 | 214 | #### Time Dismissal (in seconds) 215 | 216 | Time dismissal is the property that indicates the time in seconds you want the Toast to take to dismiss itself (in case you want the toast to dismiss after a certain period of time). The default value is 0.5 seconds. 217 | 218 | ```swift 219 | Toast.Builder() 220 | .timeDismissal(1) 221 | .build() 222 | .show(on: self) 223 | ``` 224 | 225 | ## Example 226 | 227 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 228 | 229 | ## Author 230 | 231 | lrodriguez, leticiamrgs@gmail.com 232 | 233 | ## License 234 | 235 | CustomToastView-swift is available under the MIT license. See the LICENSE file for more info. 236 | -------------------------------------------------------------------------------- /Source/CustomToastView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomToastView.swift 3 | // Outfitted 4 | // 5 | // Created by Leticia Rodriguez on 3/10/21. 6 | // 7 | 8 | import UIKit 9 | 10 | public class CustomToastView: UIView { 11 | 12 | @IBOutlet private weak var containerView: UIView! 13 | @IBOutlet private weak var toastMessageLabel: UILabel! 14 | @IBOutlet private weak var actionLabel: UILabel! 15 | @IBOutlet private weak var leftIconImageView: UIImageView! 16 | 17 | var toastTappedNotification: () -> () = {} 18 | var actionTappedNotification: () -> () = {} 19 | 20 | private var toastData: ToastData? 21 | public var constraint: NSLayoutConstraint? 22 | public var viewController: UIViewController? 23 | 24 | override public func awakeFromNib() { 25 | super.awakeFromNib() 26 | 27 | setUI() 28 | } 29 | 30 | private func setUI() { 31 | let gesture = UITapGestureRecognizer(target: self, action: #selector(toastTapped)) 32 | containerView.addGestureRecognizer(gesture) 33 | 34 | let gestureLabel = UITapGestureRecognizer(target: self, action: #selector(actionLabelTapped)) 35 | actionLabel.addGestureRecognizer(gestureLabel) 36 | } 37 | 38 | func set(constraint: NSLayoutConstraint, 39 | viewController: UIViewController) { 40 | self.constraint = constraint 41 | self.viewController = viewController 42 | } 43 | 44 | func configToast(data: ToastData) { 45 | if let cornerRadius = data.cornerRadius { 46 | containerView.layer.cornerRadius = cornerRadius 47 | } else { 48 | containerView.layer.cornerRadius = data.toastHeight/2 49 | } 50 | 51 | containerView.backgroundColor = data.backgroundColor 52 | 53 | toastMessageLabel.textColor = data.textColor 54 | toastMessageLabel.text = data.title 55 | toastMessageLabel.font = data.font 56 | toastMessageLabel.textAlignment = data.textAlignment 57 | 58 | actionLabel.textColor = data.actionTextColor 59 | actionLabel.text = data.actionText 60 | actionLabel.font = data.actionFont 61 | 62 | if let leftIconImage = data.leftIconImage { 63 | leftIconImageView.image = leftIconImage 64 | } 65 | leftIconImageView.isHidden = data.leftIconImage == nil 66 | 67 | leftIconImageView.contentMode = data.leftIconImageContentMode 68 | 69 | if let rightActionText = data.actionText { 70 | actionLabel.text = rightActionText 71 | toastMessageLabel.textAlignment = .left 72 | actionLabel.isUserInteractionEnabled = true 73 | } 74 | actionLabel.isHidden = data.actionText == nil 75 | 76 | toastData = data 77 | } 78 | 79 | @objc private func toastTapped() { 80 | toastTappedNotification() 81 | } 82 | 83 | @objc private func actionLabelTapped() { 84 | actionTappedNotification() 85 | } 86 | 87 | public func hide() { 88 | guard let toastData = self.toastData else { return } 89 | self.hideByOrientation() 90 | UIView.animate(withDuration: toastData.timeDismissal) { 91 | self.viewController?.view.setNeedsLayout() 92 | self.viewController?.view.layoutIfNeeded() 93 | } 94 | } 95 | 96 | private func hideByOrientation() { 97 | guard let toastData = self.toastData else { return } 98 | switch toastData.orientation { 99 | case .bottomToTop: 100 | self.constraint?.constant = toastData.toastHeight 101 | case .topToBottom: 102 | self.constraint?.constant = -toastData.toastHeight 103 | case .leftToRight: 104 | self.constraint?.constant = -UIScreen.main.bounds.width 105 | case .rightToLeft: 106 | self.constraint?.constant = UIScreen.main.bounds.width 107 | case .fadeIn: dismissFadeIn() 108 | case .fadeOut: dismissFadeOut() 109 | } 110 | } 111 | 112 | private func dismissFadeIn() { 113 | UIView.animate(withDuration: 3.0, 114 | delay: 0.1, 115 | options: [.curveEaseOut], 116 | animations: { 117 | self.alpha = 0.0 118 | }, completion: {(isCompleted) in 119 | self.removeFromSuperview() 120 | }) 121 | } 122 | 123 | private func dismissFadeOut() { 124 | UIView.animate(withDuration: 3.0, 125 | delay: 0.1, 126 | options: .curveEaseOut, 127 | animations: { 128 | self.alpha = 0.0 129 | }, completion: {(isCompleted) in 130 | 131 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + (self.toastData?.timeDismissal ?? 0.0), 132 | execute: { 133 | self.removeFromSuperview() 134 | }) 135 | 136 | 137 | }) 138 | } 139 | } 140 | -------------------------------------------------------------------------------- /Source/CustomToastView.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 | 35 | 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 | -------------------------------------------------------------------------------- /Source/CustomToastViewExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewControlerExtension.swift 3 | // CustomToastView 4 | // 5 | // Created by Leticia Rodriguez on 5/29/21. 6 | // 7 | 8 | import UIKit 9 | 10 | extension CustomToastView { 11 | 12 | public static func showToast(with toastData: ToastData, 13 | viewController: UIViewController, 14 | completion: @escaping (CustomToastView) -> () = {_ in}, 15 | actionCompletion: @escaping () -> () = {}) { 16 | 17 | let bundle = Bundle(for: CustomToastView.self) 18 | 19 | guard let customToastView = bundle.loadNibNamed(CustomToastView.className, owner: self, options: nil)?.first as? CustomToastView else { 20 | // xib not loaded, or it's top view is of the wrong type 21 | return 22 | } 23 | 24 | customToastView.toastTappedNotification = { 25 | completion(customToastView) 26 | } 27 | 28 | customToastView.actionTappedNotification = { 29 | actionCompletion() 30 | } 31 | 32 | customToastView.configToast(data: toastData) 33 | 34 | customToastView.translatesAutoresizingMaskIntoConstraints = false 35 | 36 | viewController.view.addSubview(customToastView) 37 | 38 | switch toastData.orientation { 39 | case .bottomToTop: 40 | configureFromBottomToTop(customToastView: customToastView, viewController: viewController, 41 | toastHeight: toastData.toastHeight, 42 | defaultDistance: toastData.sideDistance, 43 | timeDismissal: toastData.timeDismissal, 44 | verticalPosition: toastData.verticalPosition, 45 | shouldDismissAfterPresenting: toastData.shouldDismissAfterPresenting) 46 | case .topToBottom: 47 | configureFromTopToBottom(customToastView: customToastView, viewController: viewController, 48 | toastHeight: toastData.toastHeight, 49 | defaultDistance: toastData.sideDistance, 50 | timeDismissal: toastData.timeDismissal, 51 | verticalPosition: toastData.verticalPosition, 52 | shouldDismissAfterPresenting: toastData.shouldDismissAfterPresenting) 53 | case .leftToRight: 54 | configureFromLeftToRight(customToastView: customToastView, viewController: viewController, 55 | toastHeight: toastData.toastHeight, 56 | defaultDistance: toastData.sideDistance, 57 | timeDismissal: toastData.timeDismissal, 58 | verticalPosition: toastData.verticalPosition, 59 | shouldDismissAfterPresenting: toastData.shouldDismissAfterPresenting) 60 | case .rightToLeft: 61 | configureFromRightToLeft(customToastView: customToastView, viewController: viewController, 62 | toastHeight: toastData.toastHeight, 63 | defaultDistance: toastData.sideDistance, 64 | timeDismissal: toastData.timeDismissal, 65 | verticalPosition: toastData.verticalPosition, 66 | shouldDismissAfterPresenting: toastData.shouldDismissAfterPresenting) 67 | case .fadeIn: 68 | configureFadeIn(customToastView: customToastView, viewController: viewController, 69 | toastHeight: toastData.toastHeight, 70 | defaultDistance: toastData.sideDistance, 71 | timeDismissal: toastData.timeDismissal, 72 | verticalPosition: toastData.verticalPosition, 73 | shouldDismissAfterPresenting: toastData.shouldDismissAfterPresenting) 74 | case .fadeOut: 75 | configureFadeOut(customToastView: customToastView, viewController: viewController, 76 | toastHeight: toastData.toastHeight, 77 | defaultDistance: toastData.sideDistance, 78 | timeDismissal: toastData.timeDismissal, 79 | verticalPosition: toastData.verticalPosition, 80 | shouldDismissAfterPresenting: toastData.shouldDismissAfterPresenting) 81 | } 82 | } 83 | 84 | fileprivate static func configureFromBottomToTop(customToastView: CustomToastView, 85 | viewController: UIViewController, 86 | toastHeight: CGFloat, 87 | defaultDistance: CGFloat, 88 | timeDismissal: Double, 89 | verticalPosition: CGFloat, 90 | shouldDismissAfterPresenting: Bool) { 91 | let bottomConstraint = customToastView.bottomAnchor.constraint(equalTo: viewController.view.bottomAnchor, 92 | constant: verticalPosition ) 93 | 94 | customToastView.set(constraint: bottomConstraint, 95 | viewController: viewController) 96 | 97 | NSLayoutConstraint.activate([ 98 | customToastView.heightAnchor.constraint(equalToConstant: toastHeight), 99 | customToastView.leadingAnchor.constraint(equalTo: viewController.view.leadingAnchor, constant: defaultDistance), 100 | customToastView.trailingAnchor.constraint(equalTo: viewController.view.trailingAnchor, constant: -defaultDistance), 101 | bottomConstraint, 102 | ]) 103 | 104 | viewController.view.setNeedsLayout() 105 | viewController.view.layoutIfNeeded() 106 | 107 | bottomConstraint.constant = -(verticalPosition + (viewController.tabBarController?.tabBar.frame.height ?? 0) - 20) 108 | UIView.animate(withDuration: 0.5) { 109 | viewController.view.setNeedsLayout() 110 | viewController.view.layoutIfNeeded() 111 | } completion: { completed in 112 | if completed { 113 | if shouldDismissAfterPresenting { 114 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 2, 115 | execute: { 116 | bottomConstraint.constant = toastHeight 117 | 118 | UIView.animate(withDuration: timeDismissal) { 119 | viewController.view.setNeedsLayout() 120 | viewController.view.layoutIfNeeded() 121 | } 122 | }) 123 | } 124 | } 125 | } 126 | } 127 | 128 | fileprivate static func configureFromTopToBottom(customToastView: CustomToastView, 129 | viewController: UIViewController, 130 | toastHeight: CGFloat, 131 | defaultDistance: CGFloat, 132 | timeDismissal: Double, 133 | verticalPosition: CGFloat, 134 | shouldDismissAfterPresenting: Bool) { 135 | 136 | let topConstraint = customToastView.topAnchor.constraint(equalTo: viewController.view.topAnchor, 137 | constant: -verticalPosition ) 138 | 139 | customToastView.set(constraint: topConstraint, 140 | viewController: viewController) 141 | 142 | NSLayoutConstraint.activate([ 143 | customToastView.heightAnchor.constraint(equalToConstant: toastHeight), 144 | customToastView.leadingAnchor.constraint(equalTo: viewController.view.leadingAnchor, constant: defaultDistance), 145 | customToastView.trailingAnchor.constraint(equalTo: viewController.view.trailingAnchor, constant: -defaultDistance), 146 | topConstraint, 147 | ]) 148 | 149 | viewController.view.setNeedsLayout() 150 | viewController.view.layoutIfNeeded() 151 | 152 | topConstraint.constant = verticalPosition 153 | UIView.animate(withDuration: 0.5) { 154 | viewController.view.setNeedsLayout() 155 | viewController.view.layoutIfNeeded() 156 | } completion: { completed in 157 | if completed { 158 | if shouldDismissAfterPresenting { 159 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 2, 160 | execute: { 161 | topConstraint.constant = -toastHeight 162 | 163 | UIView.animate(withDuration: timeDismissal) { 164 | viewController.view.setNeedsLayout() 165 | viewController.view.layoutIfNeeded() 166 | } 167 | }) 168 | } 169 | } 170 | } 171 | } 172 | 173 | fileprivate static func configureFromLeftToRight(customToastView: CustomToastView, 174 | viewController: UIViewController, 175 | toastHeight: CGFloat, 176 | defaultDistance: CGFloat, 177 | timeDismissal: Double, 178 | verticalPosition: CGFloat, 179 | shouldDismissAfterPresenting: Bool) { 180 | 181 | let leadingConstraint = customToastView.leadingAnchor.constraint(equalTo: viewController.view.leadingAnchor, 182 | constant: -UIScreen.main.bounds.width) 183 | 184 | customToastView.set(constraint: leadingConstraint, 185 | viewController: viewController) 186 | 187 | NSLayoutConstraint.activate([ 188 | customToastView.heightAnchor.constraint(equalToConstant: toastHeight), 189 | customToastView.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width - (defaultDistance*2)), 190 | customToastView.bottomAnchor.constraint(equalTo: viewController.view.bottomAnchor, constant: -verticalPosition), 191 | leadingConstraint 192 | ]) 193 | 194 | viewController.view.setNeedsLayout() 195 | viewController.view.layoutIfNeeded() 196 | 197 | leadingConstraint.constant = defaultDistance 198 | UIView.animate(withDuration: 0.5) { 199 | viewController.view.setNeedsLayout() 200 | viewController.view.layoutIfNeeded() 201 | } completion: { completed in 202 | if completed { 203 | if shouldDismissAfterPresenting { 204 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 2, 205 | execute: { 206 | leadingConstraint.constant = -UIScreen.main.bounds.width 207 | 208 | UIView.animate(withDuration: timeDismissal) { 209 | viewController.view.setNeedsLayout() 210 | viewController.view.layoutIfNeeded() 211 | } 212 | }) 213 | } 214 | } 215 | } 216 | } 217 | 218 | fileprivate static func configureFromRightToLeft(customToastView: CustomToastView, 219 | viewController: UIViewController, 220 | toastHeight: CGFloat, 221 | defaultDistance: CGFloat, 222 | timeDismissal: Double, 223 | verticalPosition: CGFloat, 224 | shouldDismissAfterPresenting: Bool) { 225 | let trailingConstraint = customToastView.trailingAnchor.constraint(equalTo: viewController.view.trailingAnchor, 226 | constant: UIScreen.main.bounds.width) 227 | 228 | 229 | customToastView.set(constraint: trailingConstraint, 230 | viewController: viewController) 231 | 232 | NSLayoutConstraint.activate([ 233 | customToastView.heightAnchor.constraint(equalToConstant: toastHeight), 234 | customToastView.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width - (defaultDistance*2)), 235 | customToastView.bottomAnchor.constraint(equalTo: viewController.view.bottomAnchor, constant: -verticalPosition), 236 | trailingConstraint 237 | ]) 238 | 239 | viewController.view.setNeedsLayout() 240 | viewController.view.layoutIfNeeded() 241 | 242 | trailingConstraint.constant = -defaultDistance 243 | UIView.animate(withDuration: 0.5) { 244 | viewController.view.setNeedsLayout() 245 | viewController.view.layoutIfNeeded() 246 | } completion: { completed in 247 | if completed { 248 | if shouldDismissAfterPresenting { 249 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 2, 250 | execute: { 251 | trailingConstraint.constant = UIScreen.main.bounds.width 252 | 253 | UIView.animate(withDuration: timeDismissal) { 254 | viewController.view.setNeedsLayout() 255 | viewController.view.layoutIfNeeded() 256 | } 257 | }) 258 | 259 | } 260 | } 261 | } 262 | } 263 | 264 | fileprivate static func configureFadeIn(customToastView: CustomToastView, 265 | viewController: UIViewController, 266 | toastHeight: CGFloat, 267 | defaultDistance: CGFloat, 268 | timeDismissal: Double, 269 | verticalPosition: CGFloat, 270 | shouldDismissAfterPresenting: Bool) { 271 | NSLayoutConstraint.activate([ 272 | customToastView.heightAnchor.constraint(equalToConstant: toastHeight), 273 | customToastView.leadingAnchor.constraint(equalTo: viewController.view.leadingAnchor, constant: defaultDistance), 274 | customToastView.trailingAnchor.constraint(equalTo: viewController.view.trailingAnchor, constant: -defaultDistance), 275 | customToastView.bottomAnchor.constraint(equalTo: viewController.view.bottomAnchor, constant: -verticalPosition), 276 | ]) 277 | 278 | customToastView.alpha = 0.0 279 | // Fade in 280 | UIView.animate(withDuration: 1.0, delay: 0.1, options: .curveEaseIn, animations: { 281 | customToastView.alpha = 1.0 282 | }) { isFinished in 283 | if isFinished { 284 | if shouldDismissAfterPresenting { 285 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + timeDismissal, 286 | execute: { 287 | UIView.animate(withDuration: 3.0, 288 | delay: 0.1, 289 | options: [.curveEaseOut], 290 | animations: { 291 | customToastView.alpha = 0.0 292 | }, completion: {(isCompleted) in 293 | customToastView.removeFromSuperview() 294 | }) 295 | 296 | }) 297 | 298 | } 299 | } 300 | } 301 | } 302 | 303 | fileprivate static func configureFadeOut(customToastView: CustomToastView, 304 | viewController: UIViewController, 305 | toastHeight: CGFloat, 306 | defaultDistance: CGFloat, 307 | timeDismissal: Double, 308 | verticalPosition: CGFloat, 309 | shouldDismissAfterPresenting: Bool) { 310 | NSLayoutConstraint.activate([ 311 | customToastView.heightAnchor.constraint(equalToConstant: toastHeight), 312 | customToastView.leadingAnchor.constraint(equalTo: viewController.view.leadingAnchor, constant: defaultDistance), 313 | customToastView.trailingAnchor.constraint(equalTo: viewController.view.trailingAnchor, constant: -defaultDistance), 314 | customToastView.bottomAnchor.constraint(equalTo: viewController.view.bottomAnchor, constant: -verticalPosition), 315 | ]) 316 | if shouldDismissAfterPresenting { 317 | UIView.animate(withDuration: 3.0, 318 | delay: 0.1, 319 | options: .curveEaseOut, 320 | animations: { 321 | customToastView.alpha = 0.0 322 | }, completion: {(isCompleted) in 323 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + timeDismissal, 324 | execute: { 325 | customToastView.removeFromSuperview() 326 | }) 327 | 328 | 329 | }) 330 | } 331 | } 332 | } 333 | -------------------------------------------------------------------------------- /Source/NSObjectExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSObjectExtension.swift 3 | // CustomToastView 4 | // 5 | // Created by Leticia Rodriguez on 5/29/21. 6 | // 7 | 8 | import Foundation 9 | 10 | extension NSObject { 11 | class var className: String { 12 | return String(describing: self) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/Toast.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Toast.swift 3 | // CustomToastView-swift 4 | // 5 | // Created by Leticia Rodriguez on 5/31/21. 6 | // 7 | 8 | public enum AnimationType { 9 | case bottomToTop 10 | case topToBottom 11 | case leftToRight 12 | case rightToLeft 13 | case fadeIn 14 | case fadeOut 15 | } 16 | 17 | public class Toast { 18 | 19 | var data: ToastData = ToastData() 20 | 21 | private init(data: ToastData) { 22 | self.data = data 23 | } 24 | 25 | public func show(on viewController: UIViewController, 26 | completion: @escaping (CustomToastView) -> () = {_ in}, 27 | actionCompletion: @escaping () -> () = {}) { 28 | CustomToastView.showToast(with: data, viewController: viewController, completion: { toast in 29 | completion(toast) 30 | }, actionCompletion: { 31 | actionCompletion() 32 | }) 33 | } 34 | 35 | public class Builder { 36 | 37 | public init() { 38 | 39 | } 40 | 41 | private var data: ToastData = ToastData() 42 | 43 | /// Show Toast right action 44 | public func rightActionText(_ rightActionText: String) -> Builder { 45 | data.actionText = rightActionText 46 | return self 47 | } 48 | 49 | public func textAlignment(_ textAlignment: NSTextAlignment) -> Builder { 50 | data.textAlignment = textAlignment 51 | return self 52 | } 53 | 54 | public func showLeftIcon(_ image: UIImage?) -> Builder { 55 | data.leftIconImage = image 56 | return self 57 | } 58 | 59 | public func letIconContentMode(_ letIconContentMode: UIView.ContentMode) -> Builder { 60 | data.leftIconImageContentMode = letIconContentMode 61 | return self 62 | } 63 | 64 | public func toastHeight(_ toastHeight: CGFloat) -> Builder { 65 | data.toastHeight = toastHeight 66 | return self 67 | } 68 | 69 | /// This property allows you to change the lateral margins of your toast. 70 | /// If you increase this value the width of the toast will decrease. 71 | public func sideDistance(_ sideDistance: CGFloat) -> Builder { 72 | data.sideDistance = sideDistance 73 | return self 74 | } 75 | 76 | public func verticalPosition(_ verticalPosition: CGFloat) -> Builder { 77 | data.verticalPosition = verticalPosition 78 | return self 79 | } 80 | 81 | public func cornerRadius(_ cornerRadius: CGFloat) -> Builder { 82 | data.cornerRadius = cornerRadius 83 | return self 84 | } 85 | 86 | public func timeDismissal(_ timeDismissal: Double) -> Builder { 87 | data.timeDismissal = timeDismissal 88 | return self 89 | } 90 | 91 | /// shouldDismissAfterPresenting is false by default 92 | public func shouldDismissAfterPresenting(_ shouldDismissAfterPresenting: Bool) -> Builder { 93 | data.shouldDismissAfterPresenting = shouldDismissAfterPresenting 94 | return self 95 | } 96 | 97 | public func orientation(_ orientation: AnimationType) -> Builder { 98 | data.orientation = orientation 99 | return self 100 | } 101 | 102 | /// Font of the message string of the toast 103 | public func font(_ font: UIFont) -> Builder { 104 | data.font = font 105 | return self 106 | } 107 | 108 | /// Color of the message string of the toast 109 | public func textColor(_ textColor: UIColor) -> Builder { 110 | data.textColor = textColor 111 | return self 112 | } 113 | 114 | /// BackgroundColor of the toast 115 | public func backgroundColor(_ backgroundColor: UIColor) -> Builder { 116 | data.backgroundColor = backgroundColor 117 | return self 118 | } 119 | 120 | /// Title message of the Toast -> By default is "Hello! I'm a toast message!" 121 | public func title(_ title: String) -> Builder { 122 | data.title = title 123 | return self 124 | } 125 | 126 | /// Color of the action string of the toast 127 | public func actionTextColor(_ actionTextColor: UIColor) -> Builder { 128 | data.actionTextColor = actionTextColor 129 | return self 130 | } 131 | 132 | /// Text of the action of the toast 133 | public func actionText(_ actionText: String) -> Builder { 134 | data.actionText = actionText 135 | return self 136 | } 137 | 138 | /// Font of the action of the toast 139 | public func actionFont(_ actionFont: UIFont) -> Builder { 140 | data.actionFont = actionFont 141 | return self 142 | } 143 | 144 | public func build() -> Toast { 145 | return Toast(data: data) 146 | } 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /Source/ToastData.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ToastData.swift 3 | // CustomToastView-swift 4 | // 5 | // Created by Leticia Rodriguez on 5/31/21. 6 | // 7 | 8 | public struct ToastData { 9 | //var type: CustomToastType = .simple 10 | var font = UIFont.systemFont(ofSize: 14, 11 | weight: .light) 12 | var textColor: UIColor = .white 13 | var backgroundColor: UIColor = .magenta 14 | var title = "Hello! I'm a toast message!" 15 | var actionTextColor: UIColor = .black 16 | var actionText: String? = nil 17 | var actionFont = UIFont.systemFont(ofSize: 14, 18 | weight: .regular) 19 | var orientation: AnimationType = .bottomToTop 20 | var leftIconImage: UIImage? = nil 21 | var toastHeight: CGFloat = 54 22 | var sideDistance: CGFloat = 16 23 | var cornerRadius: CGFloat? = nil 24 | var timeDismissal = 0.5 25 | var verticalPosition: CGFloat = 54 26 | var shouldDismissAfterPresenting = true 27 | var textAlignment: NSTextAlignment = .center 28 | var leftIconImageContentMode: UIView.ContentMode = .scaleAspectFit 29 | 30 | public init() { 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /libraryUsage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leticiarod/CustomToastView-swift/f79ea5773bf6da6ebc672e6e7023d9cc37a75e44/libraryUsage.gif -------------------------------------------------------------------------------- /rightActionExample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leticiarod/CustomToastView-swift/f79ea5773bf6da6ebc672e6e7023d9cc37a75e44/rightActionExample.png --------------------------------------------------------------------------------