├── assets └── whtoast.gif ├── WHToastDemo ├── WHToastDemo │ ├── Assets.xcassets │ │ ├── Contents.json │ │ ├── 123.imageset │ │ │ ├── 123.png │ │ │ └── Contents.json │ │ ├── 789.imageset │ │ │ ├── 789.png │ │ │ └── Contents.json │ │ ├── AccentColor.colorset │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── ViewController.h │ ├── AppDelegate.h │ ├── SceneDelegate.h │ ├── main.m │ ├── AppDelegate.m │ ├── ViewController.m │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── SceneDelegate.m ├── Pods │ ├── Target Support Files │ │ ├── Pods-WHToastDemo │ │ │ ├── Pods-WHToastDemo-frameworks-Debug-output-files.xcfilelist │ │ │ ├── Pods-WHToastDemo-frameworks-Release-output-files.xcfilelist │ │ │ ├── Pods-WHToastDemo.modulemap │ │ │ ├── Pods-WHToastDemo-dummy.m │ │ │ ├── Pods-WHToastDemo-frameworks-Debug-input-files.xcfilelist │ │ │ ├── Pods-WHToastDemo-frameworks-Release-input-files.xcfilelist │ │ │ ├── Pods-WHToastDemo-umbrella.h │ │ │ ├── Pods-WHToastDemo.debug.xcconfig │ │ │ ├── Pods-WHToastDemo.release.xcconfig │ │ │ ├── Pods-WHToastDemo-Info.plist │ │ │ ├── Pods-WHToastDemo-acknowledgements.markdown │ │ │ ├── Pods-WHToastDemo-acknowledgements.plist │ │ │ └── Pods-WHToastDemo-frameworks.sh │ │ └── WHToast │ │ │ ├── WHToast.modulemap │ │ │ ├── WHToast-dummy.m │ │ │ ├── WHToast-prefix.pch │ │ │ ├── WHToast-umbrella.h │ │ │ ├── WHToast.debug.xcconfig │ │ │ ├── WHToast.release.xcconfig │ │ │ └── WHToast-Info.plist │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── WHToast.podspec.json │ └── Pods.xcodeproj │ │ └── project.pbxproj ├── WHToastDemo.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── project.pbxproj ├── Podfile ├── WHToastDemo.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Podfile.lock ├── WHToast.podspec ├── WHToast ├── WHToastView.h ├── WHToastConfig.m ├── WHToastConfig.h ├── WHToast.h ├── WHToast.m └── WHToastView.m ├── LICENSE ├── .gitignore └── README.md /assets/whtoast.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remember17/WHToast/HEAD/assets/whtoast.gif -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks-Debug-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WHToast.framework -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks-Release-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WHToast.framework -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Assets.xcassets/123.imageset/123.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remember17/WHToast/HEAD/WHToastDemo/WHToastDemo/Assets.xcassets/123.imageset/123.png -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Assets.xcassets/789.imageset/789.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remember17/WHToast/HEAD/WHToastDemo/WHToastDemo/Assets.xcassets/789.imageset/789.png -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/WHToast/WHToast.modulemap: -------------------------------------------------------------------------------- 1 | framework module WHToast { 2 | umbrella header "WHToast-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/WHToast/WHToast-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_WHToast : NSObject 3 | @end 4 | @implementation PodsDummy_WHToast 5 | @end 6 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_WHToastDemo { 2 | umbrella header "Pods-WHToastDemo-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_WHToastDemo : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_WHToastDemo 5 | @end 6 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks-Debug-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks.sh 2 | ${BUILT_PRODUCTS_DIR}/WHToast/WHToast.framework -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks-Release-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks.sh 2 | ${BUILT_PRODUCTS_DIR}/WHToast/WHToast.framework -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // WHToastDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import 9 | 10 | @interface ViewController : UIViewController 11 | 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WHToastDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/WHToast/WHToast-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 | -------------------------------------------------------------------------------- /WHToastDemo/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'WHToastDemo' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | pod 'WHToast', :path=> '../' 8 | # Pods for WHToastDemo 9 | 10 | end 11 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/SceneDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.h 3 | // WHToastDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import 9 | 10 | @interface SceneDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow * window; 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WHToastDemo/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - WHToast (0.0.8) 3 | 4 | DEPENDENCIES: 5 | - WHToast (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | WHToast: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | WHToast: 5da5bb80bdd1fea9455d4215577d9c5be2c506b8 13 | 14 | PODFILE CHECKSUM: c62f868afa4df9e610c927cd6e5c3eedf333b7b9 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - WHToast (0.0.8) 3 | 4 | DEPENDENCIES: 5 | - WHToast (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | WHToast: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | WHToast: 5da5bb80bdd1fea9455d4215577d9c5be2c506b8 13 | 14 | PODFILE CHECKSUM: c62f868afa4df9e610c927cd6e5c3eedf333b7b9 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Assets.xcassets/123.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "123.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Assets.xcassets/789.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "789.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-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_WHToastDemoVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_WHToastDemoVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WHToastDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import 9 | #import "AppDelegate.h" 10 | 11 | int main(int argc, char * argv[]) { 12 | NSString * appDelegateClassName; 13 | @autoreleasepool { 14 | // Setup code that might create autoreleased objects goes here. 15 | appDelegateClassName = NSStringFromClass([AppDelegate class]); 16 | } 17 | return UIApplicationMain(argc, argv, nil, appDelegateClassName); 18 | } 19 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/WHToast/WHToast-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 | #import "UIImage+WHToast.h" 14 | #import "WHToast.h" 15 | #import "WHToastConfig.h" 16 | #import "WHToastView.h" 17 | 18 | FOUNDATION_EXPORT double WHToastVersionNumber; 19 | FOUNDATION_EXPORT const unsigned char WHToastVersionString[]; 20 | 21 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Local Podspecs/WHToast.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "WHToast", 3 | "version": "0.0.8", 4 | "summary": "iOS Toast", 5 | "homepage": "https://github.com/remember17/WHToast", 6 | "license": "MIT", 7 | "authors": { 8 | "wuhao": "503007958@qq.com" 9 | }, 10 | "platforms": { 11 | "ios": "11.0" 12 | }, 13 | "source": { 14 | "git": "https://github.com/remember17/WHToast.git", 15 | "tag": "0.0.8" 16 | }, 17 | "source_files": [ 18 | "WHToast", 19 | "WHToast/*.{h,m}" 20 | ], 21 | "frameworks": "UIKit", 22 | "resources": "WHToast/wtoast_icon/**", 23 | "requires_arc": true 24 | } 25 | -------------------------------------------------------------------------------- /WHToast.podspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | Pod::Spec.new do |s| 4 | 5 | s.name = "WHToast" 6 | 7 | s.version = "0.1.0" 8 | 9 | s.summary = "iOS Toast" 10 | 11 | s.homepage = "https://github.com/remember17/WHToast" 12 | 13 | s.license = "MIT" 14 | 15 | s.author = { "wuhao" => "503007958@qq.com" } 16 | 17 | s.platform = :ios, "11.0" 18 | 19 | s.source = { :git => "https://github.com/remember17/WHToast.git", :tag => s.version } 20 | 21 | s.source_files = "WHToast", "WHToast/*.{h,m}" 22 | 23 | s.framework = "UIKit" 24 | 25 | s.requires_arc = true 26 | 27 | end 28 | -------------------------------------------------------------------------------- /WHToast/WHToastView.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHToastView.h 3 | // WHToast 4 | // 5 | // Created by wuhao on 2018/11/15. 6 | // Copyright © 2018 wuhao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef NS_ENUM(NSUInteger, WHToastType) { 12 | WHToastTypeWords = 0, 13 | WHToastTypeImage, 14 | }; 15 | 16 | @interface WHToastView : UIView 17 | 18 | + (instancetype _Nullable)toastWithMessage:(NSString * _Nullable)message 19 | type:(WHToastType)type 20 | originY:(CGFloat)originY 21 | tipImage:(UIImage * _Nullable)image; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/WHToast/WHToast.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WHToast 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/WHToast/WHToast.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WHToast 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WHToast" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WHToast/WHToast.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" -framework "WHToast" 7 | PODS_BUILD_DIR = ${BUILD_DIR} 8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WHToast" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WHToast/WHToast.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" -framework "WHToast" 7 | PODS_BUILD_DIR = ${BUILD_DIR} 8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/WHToast/WHToast-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.0.8 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 wuhao 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /WHToast/WHToastConfig.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHToastConfig.m 3 | // WHToast 4 | // 5 | // Created by wuhao on 2018/11/15. 6 | // Copyright © 2018 wuhao. All rights reserved. 7 | // 8 | 9 | #import "WHToastConfig.h" 10 | 11 | @implementation WHToastConfig 12 | 13 | static id _instance; 14 | + (instancetype)sharedInstance { 15 | static dispatch_once_t onceToken; 16 | dispatch_once(&onceToken, ^{ 17 | _instance = [[self alloc] init]; 18 | }); 19 | return _instance; 20 | } 21 | 22 | - (instancetype)init { 23 | self = [super init]; 24 | if (self) { 25 | [self resetConfig]; 26 | } 27 | return self; 28 | } 29 | 30 | - (void)resetConfig { 31 | _showMask = NO; 32 | _maskCoverNav = YES; 33 | _leftPadding = 26; 34 | _topPadding = 8; 35 | _cornerRadius = 8; 36 | _imageCornerRadius = 8; 37 | _minWidth = 16; 38 | _minTopMargin = 60; 39 | _minLeftMargin = 40; 40 | _lineSpacing = 0; 41 | _lineHeight = 20; 42 | _tipImageBottomMargin = 8; 43 | _tipImageSize = CGSizeMake(50, 50); 44 | _maskColor = [UIColor colorWithWhite:0 alpha:0.3]; 45 | _textColor = [UIColor whiteColor]; 46 | _backColor = [UIColor colorWithWhite:0 alpha:0.7]; 47 | _font = [UIFont systemFontOfSize:14]; 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## WHToast 5 | 6 | MIT License 7 | 8 | Copyright (c) 2018 wuhao 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WHToastDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import "AppDelegate.h" 9 | 10 | @interface AppDelegate () 11 | 12 | @end 13 | 14 | @implementation AppDelegate 15 | 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 18 | // Override point for customization after application launch. 19 | return YES; 20 | } 21 | 22 | 23 | #pragma mark - UISceneSession lifecycle 24 | 25 | 26 | - (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options { 27 | // Called when a new scene session is being created. 28 | // Use this method to select a configuration to create the new scene with. 29 | return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role]; 30 | } 31 | 32 | 33 | - (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet *)sceneSessions { 34 | // Called when the user discards a scene session. 35 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 36 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 37 | } 38 | 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // WHToastDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import "ViewController.h" 9 | #import 10 | 11 | @implementation ViewController 12 | 13 | - (IBAction)action:(UIButton *)button { 14 | switch (button.tag) { 15 | case 0: 16 | [WHToast showMessage:@"显示在当前页面的view上" inView:self.view duration:2 finishHandler:^{ 17 | 18 | }]; 19 | break; 20 | case 1: 21 | [WHToast showMessage:@"显示在window上" duration:2 finishHandler:^{ 22 | 23 | }]; 24 | break; 25 | case 2: 26 | [WHToast showMessage:@"自定义originY显示在window上" originY:100 duration:2 finishHandler:^{ 27 | 28 | }]; 29 | break; 30 | case 3: 31 | [WHToast showImage:[UIImage imageNamed:@"123"] message:@"显示图片和文字" duration:2 finishHandler:^{ 32 | 33 | }]; 34 | break; 35 | case 4: 36 | [WHToast showImage:[UIImage imageNamed:@"123"] message:@"自定义originY显示图片和文字" originY:100 duration:2 finishHandler:^{ 37 | 38 | }]; 39 | break; 40 | case 5: 41 | [WHToast setTipImageSize:CGSizeMake(100, 100)]; 42 | [WHToast showImage:[UIImage imageNamed:@"789"] message:nil duration:2 finishHandler:^{ 43 | [WHToast resetConfig]; 44 | }]; 45 | break; 46 | default: 47 | break; 48 | } 49 | } 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 3 | 4 | ## Build generated 5 | build/ 6 | DerivedData/ 7 | 8 | ## Various settings 9 | *.DS_Store 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 52 | 53 | fastlane/report.xml 54 | fastlane/Preview.html 55 | fastlane/screenshots/**/*.png 56 | fastlane/test_output 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ 64 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Base.lproj/LaunchScreen.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 | 26 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UISceneConfigurationName 33 | Default Configuration 34 | UISceneDelegateClassName 35 | SceneDelegate 36 | UISceneStoryboardFile 37 | Main 38 | 39 | 40 | 41 | 42 | UIApplicationSupportsIndirectInputEvents 43 | 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIMainStoryboardFile 47 | Main 48 | UIRequiredDeviceCapabilities 49 | 50 | armv7 51 | 52 | UISupportedInterfaceOrientations 53 | 54 | UIInterfaceOrientationPortrait 55 | UIInterfaceOrientationLandscapeLeft 56 | UIInterfaceOrientationLandscapeRight 57 | 58 | UISupportedInterfaceOrientations~ipad 59 | 60 | UIInterfaceOrientationPortrait 61 | UIInterfaceOrientationPortraitUpsideDown 62 | UIInterfaceOrientationLandscapeLeft 63 | UIInterfaceOrientationLandscapeRight 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/SceneDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.m 3 | // WHToastDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import "SceneDelegate.h" 9 | 10 | @interface SceneDelegate () 11 | 12 | @end 13 | 14 | @implementation SceneDelegate 15 | 16 | 17 | - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions { 18 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 19 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 20 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 21 | } 22 | 23 | 24 | - (void)sceneDidDisconnect:(UIScene *)scene { 25 | // Called as the scene is being released by the system. 26 | // This occurs shortly after the scene enters the background, or when its session is discarded. 27 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 28 | // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). 29 | } 30 | 31 | 32 | - (void)sceneDidBecomeActive:(UIScene *)scene { 33 | // Called when the scene has moved from an inactive state to an active state. 34 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 35 | } 36 | 37 | 38 | - (void)sceneWillResignActive:(UIScene *)scene { 39 | // Called when the scene will move from an active state to an inactive state. 40 | // This may occur due to temporary interruptions (ex. an incoming phone call). 41 | } 42 | 43 | 44 | - (void)sceneWillEnterForeground:(UIScene *)scene { 45 | // Called as the scene transitions from the background to the foreground. 46 | // Use this method to undo the changes made on entering the background. 47 | } 48 | 49 | 50 | - (void)sceneDidEnterBackground:(UIScene *)scene { 51 | // Called as the scene transitions from the foreground to the background. 52 | // Use this method to save data, release shared resources, and store enough scene-specific state information 53 | // to restore the scene back to its current state. 54 | } 55 | 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-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 | MIT License 18 | 19 | Copyright (c) 2018 wuhao 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | WHToast 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /WHToast/WHToastConfig.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHToastConfig.h 3 | // WHToast 4 | // 5 | // Created by wuhao on 2018/11/15. 6 | // Copyright © 2018 wuhao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #define kToastConfig ([WHToastConfig sharedInstance]) 12 | #define kWHToastScreenWidth ([UIScreen mainScreen].bounds.size.width) 13 | #define kWHToastScreenHeight ([UIScreen mainScreen].bounds.size.height) 14 | 15 | static inline UIWindow *whToast_currentWindow() { 16 | UIWindow* window = nil; 17 | if (@available(iOS 13.0, *)) { 18 | for (UIWindowScene* windowScene in [UIApplication sharedApplication].connectedScenes) { 19 | if (windowScene.activationState == UISceneActivationStateForegroundActive) { 20 | window = windowScene.windows.firstObject; 21 | break; 22 | } 23 | } 24 | } else { 25 | #pragma clang diagnostic push 26 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 27 | window = [UIApplication sharedApplication].keyWindow; 28 | #pragma clang diagnostic pop 29 | } 30 | return window; 31 | } 32 | 33 | static inline BOOL Toast_isIphoneX() { 34 | BOOL result = NO; 35 | if (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPhone) { 36 | return result; 37 | } 38 | if (@available(iOS 11.0, *)) { 39 | if (whToast_currentWindow().safeAreaInsets.bottom > 0.0) { 40 | result = YES; 41 | } 42 | } 43 | return result; 44 | } 45 | 46 | @interface WHToastConfig : NSObject 47 | - (instancetype)init NS_UNAVAILABLE; 48 | + (instancetype)new NS_UNAVAILABLE; 49 | 50 | + (instancetype)sharedInstance; 51 | 52 | @property (nonatomic, assign) BOOL showMask; 53 | @property (nonatomic, assign) BOOL maskCoverNav; 54 | 55 | @property (nonatomic, strong) UIColor *maskColor; 56 | @property (nonatomic, strong) UIColor *backColor; 57 | 58 | @property (nonatomic, strong) UIColor *textColor; 59 | @property (nonatomic, strong) UIFont *font; 60 | @property (nonatomic, assign) CGFloat lineHeight; 61 | @property (nonatomic, assign) CGFloat lineSpacing; 62 | 63 | @property (nonatomic, assign) CGSize tipImageSize; 64 | @property (nonatomic, assign) CGFloat tipImageBottomMargin; 65 | @property (nonatomic, assign) CGFloat leftPadding; 66 | @property (nonatomic, assign) CGFloat topPadding; 67 | @property (nonatomic, assign) CGFloat cornerRadius; 68 | @property (nonatomic, assign) CGFloat imageCornerRadius; 69 | 70 | @property (nonatomic, assign) CGFloat minWidth; 71 | @property (nonatomic, assign) CGFloat minTopMargin; 72 | @property (nonatomic, assign) CGFloat minLeftMargin; 73 | 74 | - (void)resetConfig; 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WHToast 2 | 3 | WHToast是一个轻量级的提示控件,没有任何依赖。 4 | 5 | ![whtoast.gif](assets/whtoast.gif) 6 | 7 | ```objc 8 | pod 'WHToast','~>0.1.0' 9 | ``` 10 | 11 | ```objc 12 | /** 仅文字,展示在当前页面中间 */ 13 | + (void)showMessage:(NSString * _Nullable)message 14 | inView:(UIView * _Nullable)inView 15 | duration:(NSTimeInterval)duration 16 | finishHandler:(dispatch_block_t _Nullable)handler; 17 | 18 | /** 仅文字,展示在屏幕中间 */ 19 | + (void)showMessage:(NSString * _Nullable)message 20 | duration:(NSTimeInterval)duration 21 | finishHandler:(dispatch_block_t _Nullable)handler; 22 | 23 | /** 仅文字,自定义frame.origin.y 如果(originY <= 0)会展示在屏幕中间 */ 24 | + (void)showMessage:(NSString * _Nullable)message 25 | originY:(CGFloat)originY 26 | duration:(NSTimeInterval)duration 27 | finishHandler:(dispatch_block_t _Nullable)handler; 28 | 29 | /** 自定义图片和文字,展示在屏幕中间。 如果message传入nil,则只显示图片 */ 30 | + (void)showImage:(UIImage * _Nullable)image 31 | message:(NSString * _Nullable)message 32 | duration:(NSTimeInterval)duration 33 | finishHandler:(dispatch_block_t _Nullable)handler; 34 | 35 | /** 自定义图片和文字,自定义frame.origin.y 如果(originY <= 0)会展示在屏幕中间。如果message传入nil,则只显示图片 */ 36 | + (void)showImage:(UIImage * _Nullable)image 37 | message:(NSString * _Nullable)message 38 | originY:(CGFloat)originY 39 | duration:(NSTimeInterval)duration 40 | finishHandler:(dispatch_block_t _Nullable)handler; 41 | 42 | /** 主动消失 */ 43 | + (void)hide; 44 | 45 | /************************************************** 46 | 设置全局样式 47 | *****************************************************/ 48 | 49 | /** 是否有背景遮罩,默认无 */ 50 | + (void)setShowMask:(BOOL)showMask; 51 | 52 | /** 遮罩颜色,默认 [UIColor colorWithWhite:0 alpha:0.3] */ 53 | + (void)setMaskColor:(UIColor * _Nonnull)maskColor; 54 | 55 | /** 遮罩是否遮住导航栏,默认遮住 */ 56 | + (void)setMaskCoverNav:(BOOL)maskCoverNav; 57 | 58 | /** 横向内边距,默认26 */ 59 | + (void)setLeftPadding:(CGFloat)leftPadding; 60 | 61 | /** 纵向内边距,默认8 */ 62 | + (void)setTopPadding:(CGFloat)topPadding; 63 | 64 | /** 距离屏幕顶端最小距离,默认60 */ 65 | + (void)setMinTopMargin:(CGFloat)minTopMargin; 66 | 67 | /** 距离屏幕左右最小距离,默认40 */ 68 | + (void)setMinLeftMargin:(CGFloat)minLeftMargin; 69 | 70 | /** 提示图片尺寸,默认(50, 50)*/ 71 | + (void)setTipImageSize:(CGSize)tipImageSize; 72 | 73 | /** toast圆角,默认8 */ 74 | + (void)setCornerRadius:(CGFloat)cornerRadius; 75 | 76 | /** 提示图片圆角,默认8 */ 77 | + (void)setImageCornerRadius:(CGFloat)cornerRadius; 78 | 79 | /** 背景颜色,默认[UIColor colorWithWhite:0 alpha:0.7] */ 80 | + (void)setBackColor:(UIColor * _Nonnull)backColor; 81 | 82 | /** 文字颜色,默认白色 */ 83 | + (void)setTextColor:(UIColor * _Nonnull)textColor; 84 | 85 | /** 默认14 */ 86 | + (void)setFont:(UIFont *_Nullable)font; 87 | 88 | // 默认0 89 | + (void)setLineSpacing:(CGFloat)lineSpacing; 90 | 91 | // 默认20 92 | + (void)setLineHeight:(CGFloat)lineHeight; 93 | 94 | // 图片与文字的间距,默认8 95 | + (void)setTipImageBottomMargin:(CGFloat)tipImageBottomMargin; 96 | 97 | /** 恢复默认配置 */ 98 | + (void)resetConfig; 99 | ``` 100 | -------------------------------------------------------------------------------- /WHToast/WHToast.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHToast.h 3 | // WHToast 4 | // 5 | // Created by wuhao on 2018/11/15. 6 | // Copyright © 2018 wuhao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WHToast : NSObject 12 | 13 | /** 仅文字,展示在当前页面中间 */ 14 | + (void)showMessage:(NSString * _Nullable)message 15 | inView:(UIView * _Nullable)inView 16 | duration:(NSTimeInterval)duration 17 | finishHandler:(dispatch_block_t _Nullable)handler; 18 | 19 | /** 仅文字,展示在屏幕中间 */ 20 | + (void)showMessage:(NSString * _Nullable)message 21 | duration:(NSTimeInterval)duration 22 | finishHandler:(dispatch_block_t _Nullable)handler; 23 | 24 | /** 仅文字,自定义frame.origin.y 如果(originY <= 0)会展示在屏幕中间 */ 25 | + (void)showMessage:(NSString * _Nullable)message 26 | originY:(CGFloat)originY 27 | duration:(NSTimeInterval)duration 28 | finishHandler:(dispatch_block_t _Nullable)handler; 29 | 30 | /** 自定义图片和文字,展示在屏幕中间。 如果message传入nil,则只显示图片 */ 31 | + (void)showImage:(UIImage * _Nullable)image 32 | message:(NSString * _Nullable)message 33 | duration:(NSTimeInterval)duration 34 | finishHandler:(dispatch_block_t _Nullable)handler; 35 | 36 | /** 自定义图片和文字,自定义frame.origin.y 如果(originY <= 0)会展示在屏幕中间。如果message传入nil,则只显示图片 */ 37 | + (void)showImage:(UIImage * _Nullable)image 38 | message:(NSString * _Nullable)message 39 | originY:(CGFloat)originY 40 | duration:(NSTimeInterval)duration 41 | finishHandler:(dispatch_block_t _Nullable)handler; 42 | 43 | /** 主动消失 */ 44 | + (void)hide; 45 | 46 | /************************************************** 47 | 设置全局样式 48 | *****************************************************/ 49 | 50 | /** 是否有背景遮罩,默认无 */ 51 | + (void)setShowMask:(BOOL)showMask; 52 | 53 | /** 遮罩颜色,默认 [UIColor colorWithWhite:0 alpha:0.3] */ 54 | + (void)setMaskColor:(UIColor * _Nonnull)maskColor; 55 | 56 | /** 遮罩是否遮住导航栏,默认遮住 */ 57 | + (void)setMaskCoverNav:(BOOL)maskCoverNav; 58 | 59 | /** 横向内边距,默认26 */ 60 | + (void)setLeftPadding:(CGFloat)leftPadding; 61 | 62 | /** 纵向内边距,默认8 */ 63 | + (void)setTopPadding:(CGFloat)topPadding; 64 | 65 | /** 距离屏幕顶端最小距离,默认60 */ 66 | + (void)setMinTopMargin:(CGFloat)minTopMargin; 67 | 68 | /** 距离屏幕左右最小距离,默认40 */ 69 | + (void)setMinLeftMargin:(CGFloat)minLeftMargin; 70 | 71 | /** 提示图片尺寸,默认(50, 50)*/ 72 | + (void)setTipImageSize:(CGSize)tipImageSize; 73 | 74 | /** toast圆角,默认8 */ 75 | + (void)setCornerRadius:(CGFloat)cornerRadius; 76 | 77 | /** 提示图片圆角,默认8 */ 78 | + (void)setImageCornerRadius:(CGFloat)cornerRadius; 79 | 80 | /** 背景颜色,默认[UIColor colorWithWhite:0 alpha:0.7] */ 81 | + (void)setBackColor:(UIColor * _Nonnull)backColor; 82 | 83 | /** 文字颜色,默认白色 */ 84 | + (void)setTextColor:(UIColor * _Nonnull)textColor; 85 | 86 | /** 默认14 */ 87 | + (void)setFont:(UIFont *_Nullable)font; 88 | 89 | // 默认0 90 | + (void)setLineSpacing:(CGFloat)lineSpacing; 91 | 92 | // 默认20 93 | + (void)setLineHeight:(CGFloat)lineHeight; 94 | 95 | // 图片与文字的间距,默认8 96 | + (void)setTipImageBottomMargin:(CGFloat)tipImageBottomMargin; 97 | 98 | /** 恢复默认配置 */ 99 | + (void)resetConfig; 100 | 101 | @end 102 | 103 | 104 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo/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 | 29 | 36 | 43 | 50 | 57 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /WHToast/WHToast.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHToast.m 3 | // WHToast 4 | // 5 | // Created by wuhao on 2018/11/15. 6 | // Copyright © 2018 wuhao. All rights reserved. 7 | // 8 | 9 | #import "WHToast.h" 10 | #import "WHToastView.h" 11 | #import "WHToastConfig.h" 12 | 13 | @interface WHToast() 14 | 15 | @property (nonatomic, strong) UIView *maskView; 16 | @property (nonatomic, strong) WHToastView *toastView; 17 | @property (nonatomic, strong) NSTimer *toastTimer; 18 | @property (nonatomic, copy) dispatch_block_t finishHandler; 19 | 20 | @end 21 | 22 | @implementation WHToast 23 | 24 | static id _instance; 25 | + (instancetype)sharedInstance { 26 | static dispatch_once_t onceToken; 27 | dispatch_once(&onceToken, ^{ 28 | _instance = [[self alloc] init]; 29 | }); 30 | return _instance; 31 | } 32 | 33 | #pragma mark - show toast 34 | 35 | /** 仅文字,展示在当前页面中间 */ 36 | + (void)showMessage:(NSString * _Nullable)message 37 | inView:(UIView *)inView 38 | duration:(NSTimeInterval)duration 39 | finishHandler:(dispatch_block_t _Nullable)handler { 40 | [[self sharedInstance] showToastWithType:WHToastTypeWords 41 | message:message 42 | inView:inView 43 | originY:0 44 | image:nil 45 | duration:duration 46 | finishHandler:handler]; 47 | } 48 | 49 | + (void)showMessage:(NSString * _Nullable)message 50 | originY:(CGFloat)originY 51 | duration:(NSTimeInterval)duration 52 | finishHandler:(dispatch_block_t _Nullable)handler { 53 | [[self sharedInstance] showToastWithType:WHToastTypeWords 54 | message:message 55 | inView:nil 56 | originY:originY 57 | image:nil 58 | duration:duration 59 | finishHandler:handler]; 60 | } 61 | 62 | + (void)showImage:(UIImage * _Nullable)image 63 | message:(NSString * _Nullable)message 64 | duration:(NSTimeInterval)duration 65 | finishHandler:(dispatch_block_t _Nullable)handler { 66 | [[self sharedInstance] showToastWithType:WHToastTypeImage 67 | message:message 68 | inView:nil 69 | originY:0 70 | image:image 71 | duration:duration 72 | finishHandler:handler]; 73 | } 74 | 75 | + (void)showMessage:(NSString * _Nullable)message 76 | duration:(NSTimeInterval)duration 77 | finishHandler:(dispatch_block_t _Nullable)handler { 78 | [[self sharedInstance] showToastWithType:WHToastTypeWords 79 | message:message 80 | inView:nil 81 | originY:0 82 | image:nil 83 | duration:duration 84 | finishHandler:handler]; 85 | } 86 | 87 | + (void)showImage:(UIImage * _Nullable)image 88 | message:(NSString * _Nullable)message 89 | originY:(CGFloat)originY 90 | duration:(NSTimeInterval)duration 91 | finishHandler:(dispatch_block_t _Nullable)handler { 92 | [[self sharedInstance] showToastWithType:WHToastTypeImage 93 | message:message 94 | inView:nil 95 | originY:originY 96 | image:image 97 | duration:duration 98 | finishHandler:handler]; 99 | } 100 | 101 | + (void)hide { 102 | [[self sharedInstance] removeToast]; 103 | } 104 | 105 | #pragma mark - configuration 106 | 107 | + (void)setShowMask:(BOOL)showMask { 108 | kToastConfig.showMask = showMask; 109 | } 110 | 111 | + (void)setMaskColor:(UIColor *)maskColor { 112 | kToastConfig.maskColor = maskColor; 113 | } 114 | 115 | + (void)setMaskCoverNav:(BOOL)maskCoverNav { 116 | kToastConfig.maskCoverNav = maskCoverNav; 117 | } 118 | 119 | + (void)setLeftPadding:(CGFloat)leftPadding { 120 | kToastConfig.leftPadding = leftPadding; 121 | } 122 | 123 | + (void)setTopPadding:(CGFloat)topPadding { 124 | kToastConfig.topPadding = topPadding; 125 | } 126 | 127 | + (void)setMinTopMargin:(CGFloat)minTopMargin { 128 | kToastConfig.minTopMargin = minTopMargin; 129 | } 130 | 131 | + (void)setMinLeftMargin:(CGFloat)minLeftMargin { 132 | kToastConfig.minLeftMargin = minLeftMargin; 133 | } 134 | 135 | + (void)setTipImageSize:(CGSize)tipImageSize { 136 | kToastConfig.tipImageSize = tipImageSize; 137 | } 138 | 139 | + (void)setCornerRadius:(CGFloat)cornerRadius { 140 | kToastConfig.cornerRadius = cornerRadius; 141 | } 142 | 143 | + (void)setImageCornerRadius:(CGFloat)cornerRadius { 144 | kToastConfig.imageCornerRadius = cornerRadius; 145 | } 146 | 147 | + (void)setBackColor:(UIColor *)backColor { 148 | kToastConfig.backColor = backColor; 149 | } 150 | 151 | + (void)setTextColor:(UIColor *)textColor { 152 | kToastConfig.textColor = textColor; 153 | } 154 | 155 | + (void)setFont:(UIFont *)font { 156 | kToastConfig.font = font; 157 | } 158 | 159 | + (void)setLineSpacing:(CGFloat)lineSpacing { 160 | kToastConfig.lineSpacing = lineSpacing; 161 | } 162 | 163 | + (void)setLineHeight:(CGFloat)lineHeight { 164 | kToastConfig.lineHeight = lineHeight; 165 | } 166 | 167 | + (void)setTipImageBottomMargin:(CGFloat)tipImageBottomMargin { 168 | kToastConfig.tipImageBottomMargin = tipImageBottomMargin; 169 | } 170 | 171 | + (void)resetConfig { 172 | [kToastConfig resetConfig]; 173 | } 174 | 175 | #pragma mark - private 176 | 177 | - (void)showToastWithType:(WHToastType)type 178 | message:(NSString * _Nullable)message 179 | inView:(UIView * _Nullable)inView 180 | originY:(CGFloat)originY 181 | image:(UIImage * _Nullable)image 182 | duration:(NSTimeInterval)duration 183 | finishHandler:(dispatch_block_t _Nullable)handler { 184 | [self guard]; 185 | self.finishHandler = handler; 186 | self.toastView = [WHToastView toastWithMessage:message 187 | type:type 188 | originY:originY 189 | tipImage:image]; 190 | self.toastView.alpha = 0; 191 | UIView *containerView = nil == inView ? whToast_currentWindow() : inView; 192 | if (kToastConfig.showMask) { 193 | self.maskView = [self maskViewWithColor:kToastConfig.maskColor coverNav:kToastConfig.maskCoverNav]; 194 | self.maskView.alpha = 0; 195 | [containerView addSubview:self.maskView]; 196 | [containerView addSubview:self.toastView]; 197 | } else { 198 | [containerView addSubview:self.toastView]; 199 | } 200 | [UIView animateWithDuration:0.2 animations:^{ 201 | self.maskView.alpha = 1; 202 | self.toastView.alpha = 1; 203 | }]; 204 | [self duration:duration]; 205 | } 206 | 207 | - (void)guard { 208 | if (self.toastView.superview != nil || self.toastView) { 209 | [self removeToast]; 210 | } 211 | } 212 | 213 | - (void)duration:(NSTimeInterval)duration { 214 | self.toastTimer = [NSTimer scheduledTimerWithTimeInterval:duration 215 | target:self 216 | selector:@selector(finishDismiss) 217 | userInfo:nil 218 | repeats:NO]; 219 | } 220 | 221 | - (void)finishDismiss { 222 | [UIView animateWithDuration:1 animations:^{ }]; 223 | [self removeToast]; 224 | if (self.finishHandler) { self.finishHandler(); } 225 | } 226 | 227 | - (void)removeToast { 228 | [self.toastTimer invalidate]; 229 | self.toastTimer = nil; 230 | [self.toastView removeFromSuperview]; 231 | [self.maskView removeFromSuperview]; 232 | self.toastView = nil; 233 | self.maskView = nil; 234 | } 235 | 236 | - (UIView *)maskViewWithColor:(UIColor *)color coverNav:(BOOL)coverNav { 237 | UIView *maskView = [[UIView alloc] init]; 238 | CGFloat topHeight = Toast_isIphoneX() ? 88 : 64; 239 | CGFloat y = coverNav ? 0 : topHeight; 240 | maskView.frame = CGRectMake(0, y, kWHToastScreenWidth, kWHToastScreenHeight - y); 241 | maskView.backgroundColor = color; 242 | return maskView; 243 | } 244 | 245 | @end 246 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-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 | BCSYMBOLMAP_DIR="BCSymbolMaps" 23 | 24 | 25 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 26 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 27 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 28 | 29 | # Copies and strips a vendored framework 30 | install_framework() 31 | { 32 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 33 | local source="${BUILT_PRODUCTS_DIR}/$1" 34 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 35 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 36 | elif [ -r "$1" ]; then 37 | local source="$1" 38 | fi 39 | 40 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 41 | 42 | if [ -L "${source}" ]; then 43 | echo "Symlinked..." 44 | source="$(readlink "${source}")" 45 | fi 46 | 47 | if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then 48 | # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied 49 | find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do 50 | echo "Installing $f" 51 | install_bcsymbolmap "$f" "$destination" 52 | rm "$f" 53 | done 54 | rmdir "${source}/${BCSYMBOLMAP_DIR}" 55 | fi 56 | 57 | # Use filter instead of exclude so missing patterns don't throw errors. 58 | 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}\"" 59 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 60 | 61 | local basename 62 | basename="$(basename -s .framework "$1")" 63 | binary="${destination}/${basename}.framework/${basename}" 64 | 65 | if ! [ -r "$binary" ]; then 66 | binary="${destination}/${basename}" 67 | elif [ -L "${binary}" ]; then 68 | echo "Destination binary is symlinked..." 69 | dirname="$(dirname "${binary}")" 70 | binary="${dirname}/$(readlink "${binary}")" 71 | fi 72 | 73 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 74 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 75 | strip_invalid_archs "$binary" 76 | fi 77 | 78 | # Resign the code if required by the build settings to avoid unstable apps 79 | code_sign_if_enabled "${destination}/$(basename "$1")" 80 | 81 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 82 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 83 | local swift_runtime_libs 84 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 85 | for lib in $swift_runtime_libs; do 86 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 87 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 88 | code_sign_if_enabled "${destination}/${lib}" 89 | done 90 | fi 91 | } 92 | # Copies and strips a vendored dSYM 93 | install_dsym() { 94 | local source="$1" 95 | warn_missing_arch=${2:-true} 96 | if [ -r "$source" ]; then 97 | # Copy the dSYM into the targets temp dir. 98 | 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}\"" 99 | 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}" 100 | 101 | local basename 102 | basename="$(basename -s .dSYM "$source")" 103 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 104 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 105 | 106 | # Strip invalid architectures from the dSYM. 107 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 108 | strip_invalid_archs "$binary" "$warn_missing_arch" 109 | fi 110 | if [[ $STRIP_BINARY_RETVAL == 0 ]]; then 111 | # Move the stripped file into its final destination. 112 | 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}\"" 113 | 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}" 114 | else 115 | # 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. 116 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 117 | fi 118 | fi 119 | } 120 | 121 | # Used as a return value for each invocation of `strip_invalid_archs` function. 122 | STRIP_BINARY_RETVAL=0 123 | 124 | # Strip invalid architectures 125 | strip_invalid_archs() { 126 | binary="$1" 127 | warn_missing_arch=${2:-true} 128 | # Get architectures for current target binary 129 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 130 | # Intersect them with the architectures we are building for 131 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 132 | # If there are no archs supported by this binary then warn the user 133 | if [[ -z "$intersected_archs" ]]; then 134 | if [[ "$warn_missing_arch" == "true" ]]; then 135 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 136 | fi 137 | STRIP_BINARY_RETVAL=1 138 | return 139 | fi 140 | stripped="" 141 | for arch in $binary_archs; do 142 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 143 | # Strip non-valid architectures in-place 144 | lipo -remove "$arch" -output "$binary" "$binary" 145 | stripped="$stripped $arch" 146 | fi 147 | done 148 | if [[ "$stripped" ]]; then 149 | echo "Stripped $binary of architectures:$stripped" 150 | fi 151 | STRIP_BINARY_RETVAL=0 152 | } 153 | 154 | # Copies the bcsymbolmap files of a vendored framework 155 | install_bcsymbolmap() { 156 | local bcsymbolmap_path="$1" 157 | local destination="${BUILT_PRODUCTS_DIR}" 158 | 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}"" 159 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 160 | } 161 | 162 | # Signs a framework with the provided identity 163 | code_sign_if_enabled() { 164 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 165 | # Use the current code_sign_identity 166 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 167 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 168 | 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | code_sign_cmd="$code_sign_cmd &" 171 | fi 172 | echo "$code_sign_cmd" 173 | eval "$code_sign_cmd" 174 | fi 175 | } 176 | 177 | if [[ "$CONFIGURATION" == "Debug" ]]; then 178 | install_framework "${BUILT_PRODUCTS_DIR}/WHToast/WHToast.framework" 179 | fi 180 | if [[ "$CONFIGURATION" == "Release" ]]; then 181 | install_framework "${BUILT_PRODUCTS_DIR}/WHToast/WHToast.framework" 182 | fi 183 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 184 | wait 185 | fi 186 | -------------------------------------------------------------------------------- /WHToast/WHToastView.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHToastView.m 3 | // WHToast 4 | // 5 | // Created by wuhao on 2018/11/15. 6 | // Copyright © 2018 wuhao. All rights reserved. 7 | // 8 | 9 | #import "WHToastView.h" 10 | #import "WHToastConfig.h" 11 | 12 | @interface WHToastView() 13 | @property (nonatomic, strong) UIImageView *tipImageView; 14 | @property (nonatomic, strong) UILabel *messageLabel; 15 | @property (nonatomic, strong) UIImage *displayImage; 16 | @property (nonatomic, assign) CGFloat leftPadding; 17 | @property (nonatomic, assign) CGFloat topPadding; 18 | @end 19 | 20 | @implementation WHToastView 21 | 22 | + (instancetype _Nullable)toastWithMessage:(NSString * _Nullable)message 23 | type:(WHToastType)type 24 | originY:(CGFloat)originY 25 | tipImage:(UIImage * _Nullable)image { 26 | WHToastView *toastView = [[WHToastView alloc] init]; 27 | toastView.displayImage = image; 28 | toastView.leftPadding = message ? kToastConfig.leftPadding : 0; 29 | toastView.topPadding = message ? kToastConfig.topPadding : 0; 30 | [toastView setCommonWithMessage:message 31 | type:type]; 32 | 33 | [toastView setFrameWithMessage:message 34 | type:type 35 | originY:originY]; 36 | return toastView; 37 | } 38 | 39 | - (void)setCommonWithMessage:(NSString * _Nullable)message 40 | type:(WHToastType)type { 41 | self.backgroundColor = kToastConfig.backColor; 42 | if (self.displayImage && type == WHToastTypeImage) { 43 | self.tipImageView.image = kToastConfig.imageCornerRadius > 0 ? [self whToast_cornerRadius:kToastConfig.imageCornerRadius size:kToastConfig.tipImageSize withImage:self.displayImage] : self.displayImage; 44 | } 45 | self.layer.cornerRadius = kToastConfig.cornerRadius; 46 | self.layer.masksToBounds = YES; 47 | self.messageLabel.attributedText = [self attributed:message]; 48 | } 49 | 50 | - (NSAttributedString *)attributed:(NSString * _Nullable)message { 51 | if (!message) { return nil; } 52 | NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new]; 53 | paragraphStyle.alignment = NSTextAlignmentCenter; 54 | paragraphStyle.lineBreakMode = NSLineBreakByTruncatingTail; 55 | if (kToastConfig.lineSpacing > 0) { 56 | paragraphStyle.lineSpacing = kToastConfig.lineSpacing - (self.messageLabel.font.lineHeight - self.messageLabel.font.pointSize); 57 | } 58 | if (kToastConfig.lineHeight > 0) { 59 | paragraphStyle.maximumLineHeight = kToastConfig.lineHeight; 60 | paragraphStyle.minimumLineHeight = kToastConfig.lineHeight; 61 | } 62 | CGFloat baselineOffset = (kToastConfig.lineHeight - self.messageLabel.font.lineHeight) / 4; 63 | NSMutableDictionary *attributes = [NSMutableDictionary dictionary]; 64 | [attributes setValue:paragraphStyle forKey:NSParagraphStyleAttributeName]; 65 | [attributes setValue:@(baselineOffset) forKey:NSBaselineOffsetAttributeName]; 66 | [attributes setValue:kToastConfig.font forKey:NSFontAttributeName]; 67 | [attributes setValue:kToastConfig.textColor forKey:NSForegroundColorAttributeName]; 68 | NSAttributedString *attStr = [[NSAttributedString alloc] initWithString:message 69 | attributes:attributes]; 70 | return attStr; 71 | } 72 | 73 | - (void)setFrameWithMessage:(NSString * _Nullable)message 74 | type:(WHToastType)type 75 | originY:(CGFloat)originY { 76 | CGSize toastSize = [self getToastSizeWithMessage:message type:type]; 77 | 78 | CGFloat y = originY > 0 ? originY : ((kWHToastScreenHeight - toastSize.height) / 2); 79 | CGFloat topSpace = kToastConfig.minTopMargin; 80 | y = y < topSpace ? topSpace : y; 81 | if (2 * topSpace + toastSize.height > kWHToastScreenHeight) { 82 | toastSize.height = kWHToastScreenHeight - (2 * topSpace); 83 | } 84 | CGFloat toastWidth = kToastConfig.minWidth > toastSize.width ? kToastConfig.minWidth : toastSize.width; 85 | self.frame = CGRectMake((kWHToastScreenWidth - toastWidth) / 2, y, toastWidth, toastSize.height); 86 | [self addConstraintWithType:type message:message]; 87 | } 88 | 89 | - (CGSize)getToastSizeWithMessage:(NSString * _Nullable)message 90 | type:(WHToastType)type { 91 | if (type == WHToastTypeImage && !message) { 92 | return CGSizeMake(kToastConfig.tipImageSize.width + (2 * self.leftPadding), kToastConfig.tipImageSize.height + (2 * self.topPadding)); 93 | } 94 | CGFloat maxWidth = kWHToastScreenWidth - (kToastConfig.minLeftMargin * 2); 95 | CGFloat maxHeight = kWHToastScreenHeight - (kToastConfig.minTopMargin * 2); 96 | CGSize textSize = [_messageLabel sizeThatFits:CGSizeMake(maxWidth - kToastConfig.leftPadding, maxHeight - kToastConfig.topPadding)]; 97 | CGFloat labelWidth = textSize.width; 98 | CGFloat labelHeight = textSize.height; 99 | CGSize imageSize = (type == WHToastTypeWords) ? CGSizeMake(0, 0) : kToastConfig.tipImageSize; 100 | CGFloat toastHeight = 2 * self.topPadding + imageSize.height + labelHeight; 101 | CGFloat toastWidth = ((labelWidth > imageSize.width) || (type == WHToastTypeWords)) ? labelWidth + (2 * self.leftPadding) : imageSize.width + (2 * self.leftPadding); 102 | if (type == WHToastTypeImage && message) { toastHeight += kToastConfig.tipImageBottomMargin; } 103 | return CGSizeMake(toastWidth, toastHeight); 104 | } 105 | 106 | - (void)addConstraintWithType:(WHToastType)type 107 | message:(NSString * _Nullable)message { 108 | 109 | if (type == WHToastTypeImage && !message) { 110 | [self addSubview:self.tipImageView]; 111 | [self.tipImageView setTranslatesAutoresizingMaskIntoConstraints:NO]; 112 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.tipImageView 113 | attribute:NSLayoutAttributeTop 114 | relatedBy:NSLayoutRelationEqual 115 | toItem:self 116 | attribute:NSLayoutAttributeTop 117 | multiplier:1.0 118 | constant:self.topPadding]]; 119 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.tipImageView 120 | attribute:NSLayoutAttributeLeft 121 | relatedBy:NSLayoutRelationEqual 122 | toItem:self 123 | attribute:NSLayoutAttributeLeft 124 | multiplier:1.0 125 | constant:self.leftPadding]]; 126 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.tipImageView 127 | attribute:NSLayoutAttributeBottom 128 | relatedBy:NSLayoutRelationEqual 129 | toItem:self 130 | attribute:NSLayoutAttributeBottom 131 | multiplier:1.0 132 | constant:-self.topPadding]]; 133 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.tipImageView 134 | attribute:NSLayoutAttributeRight 135 | relatedBy:NSLayoutRelationEqual 136 | toItem:self 137 | attribute:NSLayoutAttributeRight 138 | multiplier:1.0 139 | constant:-self.leftPadding]]; 140 | return; 141 | } 142 | 143 | [self addSubview:self.messageLabel]; 144 | [self.messageLabel setTranslatesAutoresizingMaskIntoConstraints:NO]; 145 | if (type == WHToastTypeWords) { 146 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 147 | attribute:NSLayoutAttributeTop 148 | relatedBy:NSLayoutRelationEqual 149 | toItem:self 150 | attribute:NSLayoutAttributeTop 151 | multiplier:1.0 152 | constant:self.topPadding]]; 153 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 154 | attribute:NSLayoutAttributeLeft 155 | relatedBy:NSLayoutRelationEqual 156 | toItem:self 157 | attribute:NSLayoutAttributeLeft 158 | multiplier:1.0 159 | constant:self.leftPadding]]; 160 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 161 | attribute:NSLayoutAttributeBottom 162 | relatedBy:NSLayoutRelationEqual 163 | toItem:self 164 | attribute:NSLayoutAttributeBottom 165 | multiplier:1.0 166 | constant:-self.topPadding]]; 167 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 168 | attribute:NSLayoutAttributeRight 169 | relatedBy:NSLayoutRelationEqual 170 | toItem:self 171 | attribute:NSLayoutAttributeRight 172 | multiplier:1.0 173 | constant:-self.leftPadding]]; 174 | } else { 175 | [self addSubview:self.tipImageView]; 176 | [self.tipImageView setTranslatesAutoresizingMaskIntoConstraints:NO]; 177 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.tipImageView 178 | attribute:NSLayoutAttributeTop 179 | relatedBy:NSLayoutRelationEqual 180 | toItem:self 181 | attribute:NSLayoutAttributeTop 182 | multiplier:1.0 183 | constant:self.topPadding]]; 184 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.tipImageView 185 | attribute:NSLayoutAttributeCenterX 186 | relatedBy:NSLayoutRelationEqual 187 | toItem:self 188 | attribute:NSLayoutAttributeCenterX 189 | multiplier:1.0 190 | constant:0]]; 191 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.tipImageView 192 | attribute:NSLayoutAttributeWidth 193 | relatedBy:NSLayoutRelationEqual 194 | toItem:nil 195 | attribute:NSLayoutAttributeNotAnAttribute 196 | multiplier:1.0 197 | constant:kToastConfig.tipImageSize.width]]; 198 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.tipImageView 199 | attribute:NSLayoutAttributeHeight 200 | relatedBy:NSLayoutRelationEqual 201 | toItem:nil 202 | attribute:NSLayoutAttributeNotAnAttribute 203 | multiplier:1.0 204 | constant:kToastConfig.tipImageSize.height]]; 205 | 206 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 207 | attribute:NSLayoutAttributeTop 208 | relatedBy:NSLayoutRelationEqual 209 | toItem:self.tipImageView 210 | attribute:NSLayoutAttributeBottom 211 | multiplier:1.0 212 | constant:kToastConfig.tipImageBottomMargin]]; 213 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 214 | attribute:NSLayoutAttributeLeft 215 | relatedBy:NSLayoutRelationEqual 216 | toItem:self 217 | attribute:NSLayoutAttributeLeft 218 | multiplier:1.0 219 | constant:self.leftPadding]]; 220 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 221 | attribute:NSLayoutAttributeBottom 222 | relatedBy:NSLayoutRelationEqual 223 | toItem:self 224 | attribute:NSLayoutAttributeBottom 225 | multiplier:1.0 226 | constant:-self.topPadding]]; 227 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 228 | attribute:NSLayoutAttributeRight 229 | relatedBy:NSLayoutRelationEqual 230 | toItem:self 231 | attribute:NSLayoutAttributeRight 232 | multiplier:1.0 233 | constant:-self.leftPadding]]; 234 | } 235 | } 236 | 237 | - (UIImage *)whToast_cornerRadius:(CGFloat)radius size:(CGSize)size withImage:(UIImage *)image { 238 | CGRect rect = CGRectMake(0, 0, size.width, size.height); 239 | UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale); 240 | CGContextRef ctx = UIGraphicsGetCurrentContext(); 241 | UIBezierPath * path = [UIBezierPath bezierPathWithRoundedRect:rect byRoundingCorners:UIRectCornerAllCorners cornerRadii:CGSizeMake(radius, radius)]; 242 | CGContextAddPath(ctx,path.CGPath); 243 | CGContextClip(ctx); 244 | [image drawInRect:rect]; 245 | CGContextDrawPath(ctx, kCGPathFillStroke); 246 | UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext(); 247 | UIGraphicsEndImageContext(); 248 | return newImage; 249 | } 250 | 251 | #pragma mark - property 252 | 253 | - (UIImageView *)tipImageView { 254 | if (!_tipImageView) { 255 | _tipImageView = [[UIImageView alloc] init]; 256 | } 257 | return _tipImageView; 258 | } 259 | 260 | - (UILabel *)messageLabel { 261 | if (!_messageLabel) { 262 | _messageLabel = [[UILabel alloc] init]; 263 | _messageLabel.numberOfLines = 0; 264 | _messageLabel.textAlignment = NSTextAlignmentCenter; 265 | UIFont *font = [UIFont systemFontOfSize:14]; 266 | _messageLabel.font = font; 267 | } 268 | return _messageLabel; 269 | } 270 | 271 | @end 272 | -------------------------------------------------------------------------------- /WHToastDemo/WHToastDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6801DACF261423490005DBBC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6801DACE261423490005DBBC /* AppDelegate.m */; }; 11 | 6801DAD2261423490005DBBC /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6801DAD1261423490005DBBC /* SceneDelegate.m */; }; 12 | 6801DAD5261423490005DBBC /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6801DAD4261423490005DBBC /* ViewController.m */; }; 13 | 6801DAD8261423490005DBBC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6801DAD6261423490005DBBC /* Main.storyboard */; }; 14 | 6801DADA2614234B0005DBBC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6801DAD92614234B0005DBBC /* Assets.xcassets */; }; 15 | 6801DADD2614234B0005DBBC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6801DADB2614234B0005DBBC /* LaunchScreen.storyboard */; }; 16 | 6801DAE02614234B0005DBBC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6801DADF2614234B0005DBBC /* main.m */; }; 17 | A1ACD005F657308FFA2BDFF5 /* Pods_WHToastDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3602006CBD07D9C7B9C46A2 /* Pods_WHToastDemo.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 3B774B24ACCA3DEBB7A66925 /* Pods-WHToastDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WHToastDemo.release.xcconfig"; path = "Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo.release.xcconfig"; sourceTree = ""; }; 22 | 6801DACA261423490005DBBC /* WHToastDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WHToastDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 6801DACD261423490005DBBC /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 24 | 6801DACE261423490005DBBC /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 25 | 6801DAD0261423490005DBBC /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = ""; }; 26 | 6801DAD1261423490005DBBC /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = ""; }; 27 | 6801DAD3261423490005DBBC /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 28 | 6801DAD4261423490005DBBC /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 29 | 6801DAD7261423490005DBBC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 30 | 6801DAD92614234B0005DBBC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 31 | 6801DADC2614234B0005DBBC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 32 | 6801DADE2614234B0005DBBC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | 6801DADF2614234B0005DBBC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 34 | B3602006CBD07D9C7B9C46A2 /* Pods_WHToastDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WHToastDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | D530A1BD7526DAC721F4D718 /* Pods-WHToastDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WHToastDemo.debug.xcconfig"; path = "Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo.debug.xcconfig"; sourceTree = ""; }; 36 | /* End PBXFileReference section */ 37 | 38 | /* Begin PBXFrameworksBuildPhase section */ 39 | 6801DAC7261423490005DBBC /* Frameworks */ = { 40 | isa = PBXFrameworksBuildPhase; 41 | buildActionMask = 2147483647; 42 | files = ( 43 | A1ACD005F657308FFA2BDFF5 /* Pods_WHToastDemo.framework in Frameworks */, 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | /* End PBXFrameworksBuildPhase section */ 48 | 49 | /* Begin PBXGroup section */ 50 | 2A5B445A53E1E8FB5BB256B8 /* Pods */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | D530A1BD7526DAC721F4D718 /* Pods-WHToastDemo.debug.xcconfig */, 54 | 3B774B24ACCA3DEBB7A66925 /* Pods-WHToastDemo.release.xcconfig */, 55 | ); 56 | name = Pods; 57 | path = Pods; 58 | sourceTree = ""; 59 | }; 60 | 51F403B70FE98FE24F0DBEE6 /* Frameworks */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | B3602006CBD07D9C7B9C46A2 /* Pods_WHToastDemo.framework */, 64 | ); 65 | name = Frameworks; 66 | sourceTree = ""; 67 | }; 68 | 6801DAC1261423490005DBBC = { 69 | isa = PBXGroup; 70 | children = ( 71 | 6801DACC261423490005DBBC /* WHToastDemo */, 72 | 6801DACB261423490005DBBC /* Products */, 73 | 2A5B445A53E1E8FB5BB256B8 /* Pods */, 74 | 51F403B70FE98FE24F0DBEE6 /* Frameworks */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 6801DACB261423490005DBBC /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 6801DACA261423490005DBBC /* WHToastDemo.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 6801DACC261423490005DBBC /* WHToastDemo */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 6801DACD261423490005DBBC /* AppDelegate.h */, 90 | 6801DACE261423490005DBBC /* AppDelegate.m */, 91 | 6801DAD0261423490005DBBC /* SceneDelegate.h */, 92 | 6801DAD1261423490005DBBC /* SceneDelegate.m */, 93 | 6801DAD3261423490005DBBC /* ViewController.h */, 94 | 6801DAD4261423490005DBBC /* ViewController.m */, 95 | 6801DAD6261423490005DBBC /* Main.storyboard */, 96 | 6801DAD92614234B0005DBBC /* Assets.xcassets */, 97 | 6801DADB2614234B0005DBBC /* LaunchScreen.storyboard */, 98 | 6801DADE2614234B0005DBBC /* Info.plist */, 99 | 6801DADF2614234B0005DBBC /* main.m */, 100 | ); 101 | path = WHToastDemo; 102 | sourceTree = ""; 103 | }; 104 | /* End PBXGroup section */ 105 | 106 | /* Begin PBXNativeTarget section */ 107 | 6801DAC9261423490005DBBC /* WHToastDemo */ = { 108 | isa = PBXNativeTarget; 109 | buildConfigurationList = 6801DAE32614234B0005DBBC /* Build configuration list for PBXNativeTarget "WHToastDemo" */; 110 | buildPhases = ( 111 | 0CFA50095645C8C88887271E /* [CP] Check Pods Manifest.lock */, 112 | 6801DAC6261423490005DBBC /* Sources */, 113 | 6801DAC7261423490005DBBC /* Frameworks */, 114 | 6801DAC8261423490005DBBC /* Resources */, 115 | 6DE59DBFA68F8B1C4671F500 /* [CP] Embed Pods Frameworks */, 116 | ); 117 | buildRules = ( 118 | ); 119 | dependencies = ( 120 | ); 121 | name = WHToastDemo; 122 | productName = WHToastDemo; 123 | productReference = 6801DACA261423490005DBBC /* WHToastDemo.app */; 124 | productType = "com.apple.product-type.application"; 125 | }; 126 | /* End PBXNativeTarget section */ 127 | 128 | /* Begin PBXProject section */ 129 | 6801DAC2261423490005DBBC /* Project object */ = { 130 | isa = PBXProject; 131 | attributes = { 132 | LastUpgradeCheck = 1240; 133 | TargetAttributes = { 134 | 6801DAC9261423490005DBBC = { 135 | CreatedOnToolsVersion = 12.4; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 6801DAC5261423490005DBBC /* Build configuration list for PBXProject "WHToastDemo" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 6801DAC1261423490005DBBC; 148 | productRefGroup = 6801DACB261423490005DBBC /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 6801DAC9261423490005DBBC /* WHToastDemo */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 6801DAC8261423490005DBBC /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 6801DADD2614234B0005DBBC /* LaunchScreen.storyboard in Resources */, 163 | 6801DADA2614234B0005DBBC /* Assets.xcassets in Resources */, 164 | 6801DAD8261423490005DBBC /* Main.storyboard in Resources */, 165 | ); 166 | runOnlyForDeploymentPostprocessing = 0; 167 | }; 168 | /* End PBXResourcesBuildPhase section */ 169 | 170 | /* Begin PBXShellScriptBuildPhase section */ 171 | 0CFA50095645C8C88887271E /* [CP] Check Pods Manifest.lock */ = { 172 | isa = PBXShellScriptBuildPhase; 173 | buildActionMask = 2147483647; 174 | files = ( 175 | ); 176 | inputFileListPaths = ( 177 | ); 178 | inputPaths = ( 179 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 180 | "${PODS_ROOT}/Manifest.lock", 181 | ); 182 | name = "[CP] Check Pods Manifest.lock"; 183 | outputFileListPaths = ( 184 | ); 185 | outputPaths = ( 186 | "$(DERIVED_FILE_DIR)/Pods-WHToastDemo-checkManifestLockResult.txt", 187 | ); 188 | runOnlyForDeploymentPostprocessing = 0; 189 | shellPath = /bin/sh; 190 | 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"; 191 | showEnvVarsInLog = 0; 192 | }; 193 | 6DE59DBFA68F8B1C4671F500 /* [CP] Embed Pods Frameworks */ = { 194 | isa = PBXShellScriptBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | ); 198 | inputFileListPaths = ( 199 | "${PODS_ROOT}/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks-${CONFIGURATION}-input-files.xcfilelist", 200 | ); 201 | name = "[CP] Embed Pods Frameworks"; 202 | outputFileListPaths = ( 203 | "${PODS_ROOT}/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks-${CONFIGURATION}-output-files.xcfilelist", 204 | ); 205 | runOnlyForDeploymentPostprocessing = 0; 206 | shellPath = /bin/sh; 207 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-frameworks.sh\"\n"; 208 | showEnvVarsInLog = 0; 209 | }; 210 | /* End PBXShellScriptBuildPhase section */ 211 | 212 | /* Begin PBXSourcesBuildPhase section */ 213 | 6801DAC6261423490005DBBC /* Sources */ = { 214 | isa = PBXSourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | 6801DAD5261423490005DBBC /* ViewController.m in Sources */, 218 | 6801DACF261423490005DBBC /* AppDelegate.m in Sources */, 219 | 6801DAE02614234B0005DBBC /* main.m in Sources */, 220 | 6801DAD2261423490005DBBC /* SceneDelegate.m in Sources */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | /* End PBXSourcesBuildPhase section */ 225 | 226 | /* Begin PBXVariantGroup section */ 227 | 6801DAD6261423490005DBBC /* Main.storyboard */ = { 228 | isa = PBXVariantGroup; 229 | children = ( 230 | 6801DAD7261423490005DBBC /* Base */, 231 | ); 232 | name = Main.storyboard; 233 | sourceTree = ""; 234 | }; 235 | 6801DADB2614234B0005DBBC /* LaunchScreen.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 6801DADC2614234B0005DBBC /* Base */, 239 | ); 240 | name = LaunchScreen.storyboard; 241 | sourceTree = ""; 242 | }; 243 | /* End PBXVariantGroup section */ 244 | 245 | /* Begin XCBuildConfiguration section */ 246 | 6801DAE12614234B0005DBBC /* Debug */ = { 247 | isa = XCBuildConfiguration; 248 | buildSettings = { 249 | ALWAYS_SEARCH_USER_PATHS = NO; 250 | CLANG_ANALYZER_NONNULL = YES; 251 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 252 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 253 | CLANG_CXX_LIBRARY = "libc++"; 254 | CLANG_ENABLE_MODULES = YES; 255 | CLANG_ENABLE_OBJC_ARC = YES; 256 | CLANG_ENABLE_OBJC_WEAK = YES; 257 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 258 | CLANG_WARN_BOOL_CONVERSION = YES; 259 | CLANG_WARN_COMMA = YES; 260 | CLANG_WARN_CONSTANT_CONVERSION = YES; 261 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 262 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 263 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 264 | CLANG_WARN_EMPTY_BODY = YES; 265 | CLANG_WARN_ENUM_CONVERSION = YES; 266 | CLANG_WARN_INFINITE_RECURSION = YES; 267 | CLANG_WARN_INT_CONVERSION = YES; 268 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 269 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 270 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 271 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 272 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 273 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 274 | CLANG_WARN_STRICT_PROTOTYPES = YES; 275 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 276 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 277 | CLANG_WARN_UNREACHABLE_CODE = YES; 278 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 279 | COPY_PHASE_STRIP = NO; 280 | DEBUG_INFORMATION_FORMAT = dwarf; 281 | ENABLE_STRICT_OBJC_MSGSEND = YES; 282 | ENABLE_TESTABILITY = YES; 283 | GCC_C_LANGUAGE_STANDARD = gnu11; 284 | GCC_DYNAMIC_NO_PIC = NO; 285 | GCC_NO_COMMON_BLOCKS = YES; 286 | GCC_OPTIMIZATION_LEVEL = 0; 287 | GCC_PREPROCESSOR_DEFINITIONS = ( 288 | "DEBUG=1", 289 | "$(inherited)", 290 | ); 291 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 292 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 293 | GCC_WARN_UNDECLARED_SELECTOR = YES; 294 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 295 | GCC_WARN_UNUSED_FUNCTION = YES; 296 | GCC_WARN_UNUSED_VARIABLE = YES; 297 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 298 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 299 | MTL_FAST_MATH = YES; 300 | ONLY_ACTIVE_ARCH = YES; 301 | SDKROOT = iphoneos; 302 | }; 303 | name = Debug; 304 | }; 305 | 6801DAE22614234B0005DBBC /* Release */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_ENABLE_OBJC_WEAK = YES; 316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 317 | CLANG_WARN_BOOL_CONVERSION = YES; 318 | CLANG_WARN_COMMA = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 323 | CLANG_WARN_EMPTY_BODY = YES; 324 | CLANG_WARN_ENUM_CONVERSION = YES; 325 | CLANG_WARN_INFINITE_RECURSION = YES; 326 | CLANG_WARN_INT_CONVERSION = YES; 327 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 328 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 329 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 331 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 332 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 333 | CLANG_WARN_STRICT_PROTOTYPES = YES; 334 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 335 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | COPY_PHASE_STRIP = NO; 339 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 340 | ENABLE_NS_ASSERTIONS = NO; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | GCC_C_LANGUAGE_STANDARD = gnu11; 343 | GCC_NO_COMMON_BLOCKS = YES; 344 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 345 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 346 | GCC_WARN_UNDECLARED_SELECTOR = YES; 347 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 348 | GCC_WARN_UNUSED_FUNCTION = YES; 349 | GCC_WARN_UNUSED_VARIABLE = YES; 350 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 351 | MTL_ENABLE_DEBUG_INFO = NO; 352 | MTL_FAST_MATH = YES; 353 | SDKROOT = iphoneos; 354 | VALIDATE_PRODUCT = YES; 355 | }; 356 | name = Release; 357 | }; 358 | 6801DAE42614234B0005DBBC /* Debug */ = { 359 | isa = XCBuildConfiguration; 360 | baseConfigurationReference = D530A1BD7526DAC721F4D718 /* Pods-WHToastDemo.debug.xcconfig */; 361 | buildSettings = { 362 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 364 | CODE_SIGN_STYLE = Automatic; 365 | INFOPLIST_FILE = WHToastDemo/Info.plist; 366 | LD_RUNPATH_SEARCH_PATHS = ( 367 | "$(inherited)", 368 | "@executable_path/Frameworks", 369 | ); 370 | PRODUCT_BUNDLE_IDENTIFIER = wuhao.com.WHToastDemo; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | TARGETED_DEVICE_FAMILY = "1,2"; 373 | }; 374 | name = Debug; 375 | }; 376 | 6801DAE52614234B0005DBBC /* Release */ = { 377 | isa = XCBuildConfiguration; 378 | baseConfigurationReference = 3B774B24ACCA3DEBB7A66925 /* Pods-WHToastDemo.release.xcconfig */; 379 | buildSettings = { 380 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 381 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 382 | CODE_SIGN_STYLE = Automatic; 383 | INFOPLIST_FILE = WHToastDemo/Info.plist; 384 | LD_RUNPATH_SEARCH_PATHS = ( 385 | "$(inherited)", 386 | "@executable_path/Frameworks", 387 | ); 388 | PRODUCT_BUNDLE_IDENTIFIER = wuhao.com.WHToastDemo; 389 | PRODUCT_NAME = "$(TARGET_NAME)"; 390 | TARGETED_DEVICE_FAMILY = "1,2"; 391 | }; 392 | name = Release; 393 | }; 394 | /* End XCBuildConfiguration section */ 395 | 396 | /* Begin XCConfigurationList section */ 397 | 6801DAC5261423490005DBBC /* Build configuration list for PBXProject "WHToastDemo" */ = { 398 | isa = XCConfigurationList; 399 | buildConfigurations = ( 400 | 6801DAE12614234B0005DBBC /* Debug */, 401 | 6801DAE22614234B0005DBBC /* Release */, 402 | ); 403 | defaultConfigurationIsVisible = 0; 404 | defaultConfigurationName = Release; 405 | }; 406 | 6801DAE32614234B0005DBBC /* Build configuration list for PBXNativeTarget "WHToastDemo" */ = { 407 | isa = XCConfigurationList; 408 | buildConfigurations = ( 409 | 6801DAE42614234B0005DBBC /* Debug */, 410 | 6801DAE52614234B0005DBBC /* Release */, 411 | ); 412 | defaultConfigurationIsVisible = 0; 413 | defaultConfigurationName = Release; 414 | }; 415 | /* End XCConfigurationList section */ 416 | }; 417 | rootObject = 6801DAC2261423490005DBBC /* Project object */; 418 | } 419 | -------------------------------------------------------------------------------- /WHToastDemo/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1A94F9EA861F68BDAA2CCB04F820F343 /* Pods-WHToastDemo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AE3D74C5260181B7FE1D5FC8AB2CD2E6 /* Pods-WHToastDemo-dummy.m */; }; 11 | 2F7F3B059AE9A6B7B45E6A7B86CD1836 /* WHToast.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D2868AD2E456798BE8A968F7DB1CF80 /* WHToast.m */; }; 12 | 401C47039B2B06A5652F3C13412D08C9 /* WHToast-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F60F552952139E5BD2116B1F4D863500 /* WHToast-dummy.m */; }; 13 | 4AFA0B6F1CFF93110754FADBCACF739C /* WHToast.h in Headers */ = {isa = PBXBuildFile; fileRef = 4FCEF3307801354E3C83C8089EC3A04D /* WHToast.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 5DE1065763F851B691CA08978239BD6D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D245E0514AAC1A2B9A6D5EA2F383E90F /* UIKit.framework */; }; 15 | 7C1FFF6C23EC77510F254EB7B5588F9A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAB6F611E86A4758835A715E4B4184F6 /* Foundation.framework */; }; 16 | 933D40E71B40967512A8892AF9EF9797 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAB6F611E86A4758835A715E4B4184F6 /* Foundation.framework */; }; 17 | 9F21E97391D3F91058B9EF72EC0AC571 /* Pods-WHToastDemo-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 5B02A49A8A62241C315F817EA30F64E9 /* Pods-WHToastDemo-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | C9D2772A2B0F8A0288553B89F7158E0D /* WHToastView.m in Sources */ = {isa = PBXBuildFile; fileRef = 26187C4DD3A0CEC3CC966EC8AB3E157B /* WHToastView.m */; }; 19 | DC510206308F14B4609DBB25A627CFD8 /* WHToast-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 42011DE66589A256A177876FFD25CB85 /* WHToast-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | E4B8C23869A39FC887CA0E48F52FFCBF /* WHToastView.h in Headers */ = {isa = PBXBuildFile; fileRef = CF3EF1F438E0DFD772F08ACA225C473C /* WHToastView.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | EC0C8609B9028A5E9BC374B6CC041BF1 /* WHToastConfig.h in Headers */ = {isa = PBXBuildFile; fileRef = 77A8B5329D78AA99DDCBFEC6390491EB /* WHToastConfig.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | F46423D20A0FA894E577FF1CAD0D122B /* WHToastConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = 311A997C15731571898137265397870E /* WHToastConfig.m */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 4D6B36B10BC3BC805A415959258526D6 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = DCD0DEEDE9CB35945D67203F112697C6; 31 | remoteInfo = WHToast; 32 | }; 33 | /* End PBXContainerItemProxy section */ 34 | 35 | /* Begin PBXFileReference section */ 36 | 082728778D9412831436CDD9836CC4BB /* Pods-WHToastDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WHToastDemo.release.xcconfig"; sourceTree = ""; }; 37 | 0D2D90F4A8AF0BB96203992DF381B7D5 /* WHToast-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WHToast-prefix.pch"; sourceTree = ""; }; 38 | 0FB91A9F73FDD5BDCB2ECBBF7A1E9913 /* Pods-WHToastDemo-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WHToastDemo-acknowledgements.markdown"; sourceTree = ""; }; 39 | 1F6E4D0CBCB4C866F8AC66A57A95B115 /* Pods-WHToastDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WHToastDemo.debug.xcconfig"; sourceTree = ""; }; 40 | 26187C4DD3A0CEC3CC966EC8AB3E157B /* WHToastView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHToastView.m; path = WHToast/WHToastView.m; sourceTree = ""; }; 41 | 2EC9FE1A5523834FEC1E5370526FDCAF /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 42 | 2ED81122BFA9E8EB18889A5F4B020D11 /* WHToast.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = WHToast.modulemap; sourceTree = ""; }; 43 | 311A997C15731571898137265397870E /* WHToastConfig.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHToastConfig.m; path = WHToast/WHToastConfig.m; sourceTree = ""; }; 44 | 385C008B20A41E6A50894271FE1D5F02 /* Pods-WHToastDemo.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-WHToastDemo.modulemap"; sourceTree = ""; }; 45 | 42011DE66589A256A177876FFD25CB85 /* WHToast-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WHToast-umbrella.h"; sourceTree = ""; }; 46 | 450280721CCFFE5AA8340A5600CAAF34 /* WHToast.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WHToast.debug.xcconfig; sourceTree = ""; }; 47 | 4FCEF3307801354E3C83C8089EC3A04D /* WHToast.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHToast.h; path = WHToast/WHToast.h; sourceTree = ""; }; 48 | 5AE483BE60096FE3E3B2868F94AE11BA /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 49 | 5B02A49A8A62241C315F817EA30F64E9 /* Pods-WHToastDemo-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WHToastDemo-umbrella.h"; sourceTree = ""; }; 50 | 5C21A417061A19E86615A6BCCD698C6D /* WHToast.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WHToast.release.xcconfig; sourceTree = ""; }; 51 | 75873634384C1F635AF50E610EF4DF07 /* WHToast-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "WHToast-Info.plist"; sourceTree = ""; }; 52 | 77A8B5329D78AA99DDCBFEC6390491EB /* WHToastConfig.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHToastConfig.h; path = WHToast/WHToastConfig.h; sourceTree = ""; }; 53 | 8AEDB1E1ED73420F11B4576C965D4018 /* WHToast.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = WHToast.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 54 | 8D2868AD2E456798BE8A968F7DB1CF80 /* WHToast.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHToast.m; path = WHToast/WHToast.m; sourceTree = ""; }; 55 | 999FFEF7D949D424B6470659407C1218 /* Pods_WHToastDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WHToastDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 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; }; 57 | 9FDAAF013B3A21D97E1128456B752786 /* Pods-WHToastDemo-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WHToastDemo-frameworks.sh"; sourceTree = ""; }; 58 | AE3D74C5260181B7FE1D5FC8AB2CD2E6 /* Pods-WHToastDemo-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WHToastDemo-dummy.m"; sourceTree = ""; }; 59 | B48508E9C7FC431EBBFFA04B191C020B /* WHToast.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WHToast.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | BDA0B6BC7801D6A8D99B092EE0C50ACE /* Pods-WHToastDemo-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WHToastDemo-Info.plist"; sourceTree = ""; }; 61 | CF3EF1F438E0DFD772F08ACA225C473C /* WHToastView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHToastView.h; path = WHToast/WHToastView.h; sourceTree = ""; }; 62 | D245E0514AAC1A2B9A6D5EA2F383E90F /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 63 | E1679200AD9858C859CFCC24B6F6CA63 /* Pods-WHToastDemo-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WHToastDemo-acknowledgements.plist"; sourceTree = ""; }; 64 | EAB6F611E86A4758835A715E4B4184F6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 65 | F60F552952139E5BD2116B1F4D863500 /* WHToast-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "WHToast-dummy.m"; sourceTree = ""; }; 66 | /* End PBXFileReference section */ 67 | 68 | /* Begin PBXFrameworksBuildPhase section */ 69 | 2429617F54FB0B5D7ADAAEDB79E22344 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | 7C1FFF6C23EC77510F254EB7B5588F9A /* Foundation.framework in Frameworks */, 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | B40A36E89518E7AB92D2908CD5980B26 /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 933D40E71B40967512A8892AF9EF9797 /* Foundation.framework in Frameworks */, 82 | 5DE1065763F851B691CA08978239BD6D /* UIKit.framework in Frameworks */, 83 | ); 84 | runOnlyForDeploymentPostprocessing = 0; 85 | }; 86 | /* End PBXFrameworksBuildPhase section */ 87 | 88 | /* Begin PBXGroup section */ 89 | 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | 59DA5C1F72E1D5BABC43EACBA672C3BA /* iOS */, 93 | ); 94 | name = Frameworks; 95 | sourceTree = ""; 96 | }; 97 | 1F8FA51AA64C3ACB23F26A418A82CDF2 /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 999FFEF7D949D424B6470659407C1218 /* Pods_WHToastDemo.framework */, 101 | B48508E9C7FC431EBBFFA04B191C020B /* WHToast.framework */, 102 | ); 103 | name = Products; 104 | sourceTree = ""; 105 | }; 106 | 2335EC3CFD733F8815DE971462DF8F26 /* Targets Support Files */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 26D55A1A98FE55084B19C57EB61424B1 /* Pods-WHToastDemo */, 110 | ); 111 | name = "Targets Support Files"; 112 | sourceTree = ""; 113 | }; 114 | 26D55A1A98FE55084B19C57EB61424B1 /* Pods-WHToastDemo */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 385C008B20A41E6A50894271FE1D5F02 /* Pods-WHToastDemo.modulemap */, 118 | 0FB91A9F73FDD5BDCB2ECBBF7A1E9913 /* Pods-WHToastDemo-acknowledgements.markdown */, 119 | E1679200AD9858C859CFCC24B6F6CA63 /* Pods-WHToastDemo-acknowledgements.plist */, 120 | AE3D74C5260181B7FE1D5FC8AB2CD2E6 /* Pods-WHToastDemo-dummy.m */, 121 | 9FDAAF013B3A21D97E1128456B752786 /* Pods-WHToastDemo-frameworks.sh */, 122 | BDA0B6BC7801D6A8D99B092EE0C50ACE /* Pods-WHToastDemo-Info.plist */, 123 | 5B02A49A8A62241C315F817EA30F64E9 /* Pods-WHToastDemo-umbrella.h */, 124 | 1F6E4D0CBCB4C866F8AC66A57A95B115 /* Pods-WHToastDemo.debug.xcconfig */, 125 | 082728778D9412831436CDD9836CC4BB /* Pods-WHToastDemo.release.xcconfig */, 126 | ); 127 | name = "Pods-WHToastDemo"; 128 | path = "Target Support Files/Pods-WHToastDemo"; 129 | sourceTree = ""; 130 | }; 131 | 46F861B54D600613CBF2AACA82FD837B /* Support Files */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 2ED81122BFA9E8EB18889A5F4B020D11 /* WHToast.modulemap */, 135 | F60F552952139E5BD2116B1F4D863500 /* WHToast-dummy.m */, 136 | 75873634384C1F635AF50E610EF4DF07 /* WHToast-Info.plist */, 137 | 0D2D90F4A8AF0BB96203992DF381B7D5 /* WHToast-prefix.pch */, 138 | 42011DE66589A256A177876FFD25CB85 /* WHToast-umbrella.h */, 139 | 450280721CCFFE5AA8340A5600CAAF34 /* WHToast.debug.xcconfig */, 140 | 5C21A417061A19E86615A6BCCD698C6D /* WHToast.release.xcconfig */, 141 | ); 142 | name = "Support Files"; 143 | path = "WHToastDemo/Pods/Target Support Files/WHToast"; 144 | sourceTree = ""; 145 | }; 146 | 59DA5C1F72E1D5BABC43EACBA672C3BA /* iOS */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | EAB6F611E86A4758835A715E4B4184F6 /* Foundation.framework */, 150 | D245E0514AAC1A2B9A6D5EA2F383E90F /* UIKit.framework */, 151 | ); 152 | name = iOS; 153 | sourceTree = ""; 154 | }; 155 | 76C39603F30ADAA88CC2F025520AE56F /* WHToast */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 4FCEF3307801354E3C83C8089EC3A04D /* WHToast.h */, 159 | 8D2868AD2E456798BE8A968F7DB1CF80 /* WHToast.m */, 160 | 77A8B5329D78AA99DDCBFEC6390491EB /* WHToastConfig.h */, 161 | 311A997C15731571898137265397870E /* WHToastConfig.m */, 162 | CF3EF1F438E0DFD772F08ACA225C473C /* WHToastView.h */, 163 | 26187C4DD3A0CEC3CC966EC8AB3E157B /* WHToastView.m */, 164 | 8CE672E4B8A2FC266BD9106ECF9CC9AD /* Pod */, 165 | 46F861B54D600613CBF2AACA82FD837B /* Support Files */, 166 | ); 167 | name = WHToast; 168 | path = ../..; 169 | sourceTree = ""; 170 | }; 171 | 8CE672E4B8A2FC266BD9106ECF9CC9AD /* Pod */ = { 172 | isa = PBXGroup; 173 | children = ( 174 | 5AE483BE60096FE3E3B2868F94AE11BA /* LICENSE */, 175 | 2EC9FE1A5523834FEC1E5370526FDCAF /* README.md */, 176 | 8AEDB1E1ED73420F11B4576C965D4018 /* WHToast.podspec */, 177 | ); 178 | name = Pod; 179 | sourceTree = ""; 180 | }; 181 | A81FEA8EC6989F46754B2F79CC6125EA /* Development Pods */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 76C39603F30ADAA88CC2F025520AE56F /* WHToast */, 185 | ); 186 | name = "Development Pods"; 187 | sourceTree = ""; 188 | }; 189 | CF1408CF629C7361332E53B88F7BD30C = { 190 | isa = PBXGroup; 191 | children = ( 192 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 193 | A81FEA8EC6989F46754B2F79CC6125EA /* Development Pods */, 194 | 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */, 195 | 1F8FA51AA64C3ACB23F26A418A82CDF2 /* Products */, 196 | 2335EC3CFD733F8815DE971462DF8F26 /* Targets Support Files */, 197 | ); 198 | sourceTree = ""; 199 | }; 200 | /* End PBXGroup section */ 201 | 202 | /* Begin PBXHeadersBuildPhase section */ 203 | 922DED198811ABB0F862717552F37BB1 /* Headers */ = { 204 | isa = PBXHeadersBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 9F21E97391D3F91058B9EF72EC0AC571 /* Pods-WHToastDemo-umbrella.h in Headers */, 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | C315BE129A25ACE0D08EC5CB2593730A /* Headers */ = { 212 | isa = PBXHeadersBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | DC510206308F14B4609DBB25A627CFD8 /* WHToast-umbrella.h in Headers */, 216 | 4AFA0B6F1CFF93110754FADBCACF739C /* WHToast.h in Headers */, 217 | EC0C8609B9028A5E9BC374B6CC041BF1 /* WHToastConfig.h in Headers */, 218 | E4B8C23869A39FC887CA0E48F52FFCBF /* WHToastView.h in Headers */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXHeadersBuildPhase section */ 223 | 224 | /* Begin PBXNativeTarget section */ 225 | 0F03C11FA6CE750EEDE93E6D9C6C3CA9 /* Pods-WHToastDemo */ = { 226 | isa = PBXNativeTarget; 227 | buildConfigurationList = EB2AE5BAE890DA619A8DE7AE86C144E0 /* Build configuration list for PBXNativeTarget "Pods-WHToastDemo" */; 228 | buildPhases = ( 229 | 922DED198811ABB0F862717552F37BB1 /* Headers */, 230 | 5CB25798A388DEED3986D1FF814AA334 /* Sources */, 231 | 2429617F54FB0B5D7ADAAEDB79E22344 /* Frameworks */, 232 | 930798EAC6BA7EECD4DAAAE0803223F4 /* Resources */, 233 | ); 234 | buildRules = ( 235 | ); 236 | dependencies = ( 237 | 2A27447E2A9F0852F77AD0A0D7EFC388 /* PBXTargetDependency */, 238 | ); 239 | name = "Pods-WHToastDemo"; 240 | productName = "Pods-WHToastDemo"; 241 | productReference = 999FFEF7D949D424B6470659407C1218 /* Pods_WHToastDemo.framework */; 242 | productType = "com.apple.product-type.framework"; 243 | }; 244 | DCD0DEEDE9CB35945D67203F112697C6 /* WHToast */ = { 245 | isa = PBXNativeTarget; 246 | buildConfigurationList = 31EEFB8166FFEE062948DC085537E3D6 /* Build configuration list for PBXNativeTarget "WHToast" */; 247 | buildPhases = ( 248 | C315BE129A25ACE0D08EC5CB2593730A /* Headers */, 249 | 1D65B8B23E21292B7662C5108B92F79C /* Sources */, 250 | B40A36E89518E7AB92D2908CD5980B26 /* Frameworks */, 251 | 1DED60A11B01369A1C7BCF7D3026F3E1 /* Resources */, 252 | ); 253 | buildRules = ( 254 | ); 255 | dependencies = ( 256 | ); 257 | name = WHToast; 258 | productName = WHToast; 259 | productReference = B48508E9C7FC431EBBFFA04B191C020B /* WHToast.framework */; 260 | productType = "com.apple.product-type.framework"; 261 | }; 262 | /* End PBXNativeTarget section */ 263 | 264 | /* Begin PBXProject section */ 265 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 266 | isa = PBXProject; 267 | attributes = { 268 | LastSwiftUpdateCheck = 1100; 269 | LastUpgradeCheck = 1250; 270 | }; 271 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 272 | compatibilityVersion = "Xcode 9.3"; 273 | developmentRegion = en; 274 | hasScannedForEncodings = 0; 275 | knownRegions = ( 276 | en, 277 | Base, 278 | ); 279 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 280 | productRefGroup = 1F8FA51AA64C3ACB23F26A418A82CDF2 /* Products */; 281 | projectDirPath = ""; 282 | projectRoot = ""; 283 | targets = ( 284 | 0F03C11FA6CE750EEDE93E6D9C6C3CA9 /* Pods-WHToastDemo */, 285 | DCD0DEEDE9CB35945D67203F112697C6 /* WHToast */, 286 | ); 287 | }; 288 | /* End PBXProject section */ 289 | 290 | /* Begin PBXResourcesBuildPhase section */ 291 | 1DED60A11B01369A1C7BCF7D3026F3E1 /* Resources */ = { 292 | isa = PBXResourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | }; 298 | 930798EAC6BA7EECD4DAAAE0803223F4 /* Resources */ = { 299 | isa = PBXResourcesBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | }; 305 | /* End PBXResourcesBuildPhase section */ 306 | 307 | /* Begin PBXSourcesBuildPhase section */ 308 | 1D65B8B23E21292B7662C5108B92F79C /* Sources */ = { 309 | isa = PBXSourcesBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | 401C47039B2B06A5652F3C13412D08C9 /* WHToast-dummy.m in Sources */, 313 | 2F7F3B059AE9A6B7B45E6A7B86CD1836 /* WHToast.m in Sources */, 314 | F46423D20A0FA894E577FF1CAD0D122B /* WHToastConfig.m in Sources */, 315 | C9D2772A2B0F8A0288553B89F7158E0D /* WHToastView.m in Sources */, 316 | ); 317 | runOnlyForDeploymentPostprocessing = 0; 318 | }; 319 | 5CB25798A388DEED3986D1FF814AA334 /* Sources */ = { 320 | isa = PBXSourcesBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | 1A94F9EA861F68BDAA2CCB04F820F343 /* Pods-WHToastDemo-dummy.m in Sources */, 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | }; 327 | /* End PBXSourcesBuildPhase section */ 328 | 329 | /* Begin PBXTargetDependency section */ 330 | 2A27447E2A9F0852F77AD0A0D7EFC388 /* PBXTargetDependency */ = { 331 | isa = PBXTargetDependency; 332 | name = WHToast; 333 | target = DCD0DEEDE9CB35945D67203F112697C6 /* WHToast */; 334 | targetProxy = 4D6B36B10BC3BC805A415959258526D6 /* PBXContainerItemProxy */; 335 | }; 336 | /* End PBXTargetDependency section */ 337 | 338 | /* Begin XCBuildConfiguration section */ 339 | 1E8F5A8F5361015A7A4DFEF260F26114 /* Debug */ = { 340 | isa = XCBuildConfiguration; 341 | baseConfigurationReference = 450280721CCFFE5AA8340A5600CAAF34 /* WHToast.debug.xcconfig */; 342 | buildSettings = { 343 | CLANG_ENABLE_OBJC_WEAK = NO; 344 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 345 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 346 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 347 | CURRENT_PROJECT_VERSION = 1; 348 | DEFINES_MODULE = YES; 349 | DYLIB_COMPATIBILITY_VERSION = 1; 350 | DYLIB_CURRENT_VERSION = 1; 351 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 352 | GCC_PREFIX_HEADER = "Target Support Files/WHToast/WHToast-prefix.pch"; 353 | INFOPLIST_FILE = "Target Support Files/WHToast/WHToast-Info.plist"; 354 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 355 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 356 | LD_RUNPATH_SEARCH_PATHS = ( 357 | "$(inherited)", 358 | "@executable_path/Frameworks", 359 | "@loader_path/Frameworks", 360 | ); 361 | MODULEMAP_FILE = "Target Support Files/WHToast/WHToast.modulemap"; 362 | PRODUCT_MODULE_NAME = WHToast; 363 | PRODUCT_NAME = WHToast; 364 | SDKROOT = iphoneos; 365 | SKIP_INSTALL = YES; 366 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 367 | TARGETED_DEVICE_FAMILY = "1,2"; 368 | VERSIONING_SYSTEM = "apple-generic"; 369 | VERSION_INFO_PREFIX = ""; 370 | }; 371 | name = Debug; 372 | }; 373 | 71243899B61152433AAE34EE86456EE7 /* Release */ = { 374 | isa = XCBuildConfiguration; 375 | buildSettings = { 376 | ALWAYS_SEARCH_USER_PATHS = NO; 377 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 378 | CLANG_ANALYZER_NONNULL = YES; 379 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 380 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 381 | CLANG_CXX_LIBRARY = "libc++"; 382 | CLANG_ENABLE_MODULES = YES; 383 | CLANG_ENABLE_OBJC_ARC = YES; 384 | CLANG_ENABLE_OBJC_WEAK = 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_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 391 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 392 | CLANG_WARN_EMPTY_BODY = YES; 393 | CLANG_WARN_ENUM_CONVERSION = YES; 394 | CLANG_WARN_INFINITE_RECURSION = YES; 395 | CLANG_WARN_INT_CONVERSION = YES; 396 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 397 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 398 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 399 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 400 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 401 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 402 | CLANG_WARN_STRICT_PROTOTYPES = YES; 403 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 404 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 405 | CLANG_WARN_UNREACHABLE_CODE = YES; 406 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 407 | COPY_PHASE_STRIP = NO; 408 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 409 | ENABLE_NS_ASSERTIONS = NO; 410 | ENABLE_STRICT_OBJC_MSGSEND = YES; 411 | GCC_C_LANGUAGE_STANDARD = gnu11; 412 | GCC_NO_COMMON_BLOCKS = YES; 413 | GCC_PREPROCESSOR_DEFINITIONS = ( 414 | "POD_CONFIGURATION_RELEASE=1", 415 | "$(inherited)", 416 | ); 417 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 418 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 419 | GCC_WARN_UNDECLARED_SELECTOR = YES; 420 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 421 | GCC_WARN_UNUSED_FUNCTION = YES; 422 | GCC_WARN_UNUSED_VARIABLE = YES; 423 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 424 | MTL_ENABLE_DEBUG_INFO = NO; 425 | MTL_FAST_MATH = YES; 426 | PRODUCT_NAME = "$(TARGET_NAME)"; 427 | STRIP_INSTALLED_PRODUCT = NO; 428 | SWIFT_COMPILATION_MODE = wholemodule; 429 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 430 | SWIFT_VERSION = 5.0; 431 | SYMROOT = "${SRCROOT}/../build"; 432 | }; 433 | name = Release; 434 | }; 435 | 75D70EEEA0A456E14F7338A7F342964E /* Debug */ = { 436 | isa = XCBuildConfiguration; 437 | buildSettings = { 438 | ALWAYS_SEARCH_USER_PATHS = NO; 439 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 440 | CLANG_ANALYZER_NONNULL = YES; 441 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 442 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 443 | CLANG_CXX_LIBRARY = "libc++"; 444 | CLANG_ENABLE_MODULES = YES; 445 | CLANG_ENABLE_OBJC_ARC = YES; 446 | CLANG_ENABLE_OBJC_WEAK = YES; 447 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 448 | CLANG_WARN_BOOL_CONVERSION = YES; 449 | CLANG_WARN_COMMA = YES; 450 | CLANG_WARN_CONSTANT_CONVERSION = YES; 451 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 452 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 453 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 454 | CLANG_WARN_EMPTY_BODY = YES; 455 | CLANG_WARN_ENUM_CONVERSION = YES; 456 | CLANG_WARN_INFINITE_RECURSION = YES; 457 | CLANG_WARN_INT_CONVERSION = YES; 458 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 459 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 460 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 461 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 462 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 463 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 464 | CLANG_WARN_STRICT_PROTOTYPES = YES; 465 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 466 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 467 | CLANG_WARN_UNREACHABLE_CODE = YES; 468 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 469 | COPY_PHASE_STRIP = NO; 470 | DEBUG_INFORMATION_FORMAT = dwarf; 471 | ENABLE_STRICT_OBJC_MSGSEND = YES; 472 | ENABLE_TESTABILITY = YES; 473 | GCC_C_LANGUAGE_STANDARD = gnu11; 474 | GCC_DYNAMIC_NO_PIC = NO; 475 | GCC_NO_COMMON_BLOCKS = YES; 476 | GCC_OPTIMIZATION_LEVEL = 0; 477 | GCC_PREPROCESSOR_DEFINITIONS = ( 478 | "POD_CONFIGURATION_DEBUG=1", 479 | "DEBUG=1", 480 | "$(inherited)", 481 | ); 482 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 483 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 484 | GCC_WARN_UNDECLARED_SELECTOR = YES; 485 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 486 | GCC_WARN_UNUSED_FUNCTION = YES; 487 | GCC_WARN_UNUSED_VARIABLE = YES; 488 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 489 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 490 | MTL_FAST_MATH = YES; 491 | ONLY_ACTIVE_ARCH = YES; 492 | PRODUCT_NAME = "$(TARGET_NAME)"; 493 | STRIP_INSTALLED_PRODUCT = NO; 494 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 495 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 496 | SWIFT_VERSION = 5.0; 497 | SYMROOT = "${SRCROOT}/../build"; 498 | }; 499 | name = Debug; 500 | }; 501 | 7A56F8191F61ACE501ED565AADE183B0 /* Release */ = { 502 | isa = XCBuildConfiguration; 503 | baseConfigurationReference = 5C21A417061A19E86615A6BCCD698C6D /* WHToast.release.xcconfig */; 504 | buildSettings = { 505 | CLANG_ENABLE_OBJC_WEAK = NO; 506 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 507 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 508 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 509 | CURRENT_PROJECT_VERSION = 1; 510 | DEFINES_MODULE = YES; 511 | DYLIB_COMPATIBILITY_VERSION = 1; 512 | DYLIB_CURRENT_VERSION = 1; 513 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 514 | GCC_PREFIX_HEADER = "Target Support Files/WHToast/WHToast-prefix.pch"; 515 | INFOPLIST_FILE = "Target Support Files/WHToast/WHToast-Info.plist"; 516 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 517 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 518 | LD_RUNPATH_SEARCH_PATHS = ( 519 | "$(inherited)", 520 | "@executable_path/Frameworks", 521 | "@loader_path/Frameworks", 522 | ); 523 | MODULEMAP_FILE = "Target Support Files/WHToast/WHToast.modulemap"; 524 | PRODUCT_MODULE_NAME = WHToast; 525 | PRODUCT_NAME = WHToast; 526 | SDKROOT = iphoneos; 527 | SKIP_INSTALL = YES; 528 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 529 | TARGETED_DEVICE_FAMILY = "1,2"; 530 | VALIDATE_PRODUCT = YES; 531 | VERSIONING_SYSTEM = "apple-generic"; 532 | VERSION_INFO_PREFIX = ""; 533 | }; 534 | name = Release; 535 | }; 536 | 8D5BF63B62D4C07C82AEAE58915FA74B /* Debug */ = { 537 | isa = XCBuildConfiguration; 538 | baseConfigurationReference = 1F6E4D0CBCB4C866F8AC66A57A95B115 /* Pods-WHToastDemo.debug.xcconfig */; 539 | buildSettings = { 540 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 541 | CLANG_ENABLE_OBJC_WEAK = NO; 542 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 543 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 544 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 545 | CURRENT_PROJECT_VERSION = 1; 546 | DEFINES_MODULE = YES; 547 | DYLIB_COMPATIBILITY_VERSION = 1; 548 | DYLIB_CURRENT_VERSION = 1; 549 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 550 | INFOPLIST_FILE = "Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-Info.plist"; 551 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 552 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 553 | LD_RUNPATH_SEARCH_PATHS = ( 554 | "$(inherited)", 555 | "@executable_path/Frameworks", 556 | "@loader_path/Frameworks", 557 | ); 558 | MACH_O_TYPE = staticlib; 559 | MODULEMAP_FILE = "Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo.modulemap"; 560 | OTHER_LDFLAGS = ""; 561 | OTHER_LIBTOOLFLAGS = ""; 562 | PODS_ROOT = "$(SRCROOT)"; 563 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 564 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 565 | SDKROOT = iphoneos; 566 | SKIP_INSTALL = YES; 567 | TARGETED_DEVICE_FAMILY = "1,2"; 568 | VERSIONING_SYSTEM = "apple-generic"; 569 | VERSION_INFO_PREFIX = ""; 570 | }; 571 | name = Debug; 572 | }; 573 | 9CC95FD6AD2D725A1A99003153CCB9F7 /* Release */ = { 574 | isa = XCBuildConfiguration; 575 | baseConfigurationReference = 082728778D9412831436CDD9836CC4BB /* Pods-WHToastDemo.release.xcconfig */; 576 | buildSettings = { 577 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 578 | CLANG_ENABLE_OBJC_WEAK = NO; 579 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 580 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 581 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 582 | CURRENT_PROJECT_VERSION = 1; 583 | DEFINES_MODULE = YES; 584 | DYLIB_COMPATIBILITY_VERSION = 1; 585 | DYLIB_CURRENT_VERSION = 1; 586 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 587 | INFOPLIST_FILE = "Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo-Info.plist"; 588 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 589 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 590 | LD_RUNPATH_SEARCH_PATHS = ( 591 | "$(inherited)", 592 | "@executable_path/Frameworks", 593 | "@loader_path/Frameworks", 594 | ); 595 | MACH_O_TYPE = staticlib; 596 | MODULEMAP_FILE = "Target Support Files/Pods-WHToastDemo/Pods-WHToastDemo.modulemap"; 597 | OTHER_LDFLAGS = ""; 598 | OTHER_LIBTOOLFLAGS = ""; 599 | PODS_ROOT = "$(SRCROOT)"; 600 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 601 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 602 | SDKROOT = iphoneos; 603 | SKIP_INSTALL = YES; 604 | TARGETED_DEVICE_FAMILY = "1,2"; 605 | VALIDATE_PRODUCT = YES; 606 | VERSIONING_SYSTEM = "apple-generic"; 607 | VERSION_INFO_PREFIX = ""; 608 | }; 609 | name = Release; 610 | }; 611 | /* End XCBuildConfiguration section */ 612 | 613 | /* Begin XCConfigurationList section */ 614 | 31EEFB8166FFEE062948DC085537E3D6 /* Build configuration list for PBXNativeTarget "WHToast" */ = { 615 | isa = XCConfigurationList; 616 | buildConfigurations = ( 617 | 1E8F5A8F5361015A7A4DFEF260F26114 /* Debug */, 618 | 7A56F8191F61ACE501ED565AADE183B0 /* Release */, 619 | ); 620 | defaultConfigurationIsVisible = 0; 621 | defaultConfigurationName = Release; 622 | }; 623 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 624 | isa = XCConfigurationList; 625 | buildConfigurations = ( 626 | 75D70EEEA0A456E14F7338A7F342964E /* Debug */, 627 | 71243899B61152433AAE34EE86456EE7 /* Release */, 628 | ); 629 | defaultConfigurationIsVisible = 0; 630 | defaultConfigurationName = Release; 631 | }; 632 | EB2AE5BAE890DA619A8DE7AE86C144E0 /* Build configuration list for PBXNativeTarget "Pods-WHToastDemo" */ = { 633 | isa = XCConfigurationList; 634 | buildConfigurations = ( 635 | 8D5BF63B62D4C07C82AEAE58915FA74B /* Debug */, 636 | 9CC95FD6AD2D725A1A99003153CCB9F7 /* Release */, 637 | ); 638 | defaultConfigurationIsVisible = 0; 639 | defaultConfigurationName = Release; 640 | }; 641 | /* End XCConfigurationList section */ 642 | }; 643 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 644 | } 645 | --------------------------------------------------------------------------------