├── HJViewStyle ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── UIView+HJViewStyle.h │ └── UIView+HJViewStyle.m ├── _Pods.xcodeproj ├── Example ├── HJViewStyle │ ├── zh-HK.lproj │ │ ├── LaunchScreen.strings │ │ └── InfoPlist.strings │ ├── zh-Hans.lproj │ │ ├── LaunchScreen.strings │ │ └── InfoPlist.strings │ ├── zh-Hant.lproj │ │ ├── LaunchScreen.strings │ │ └── InfoPlist.strings │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Images.xcassets │ │ ├── Contents.json │ │ ├── head.imageset │ │ │ ├── icon-1.png │ │ │ ├── icon.png │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ ├── icon-29.png │ │ │ ├── icon-40.png │ │ │ ├── icon-50.png │ │ │ ├── icon-57.png │ │ │ ├── icon-72.png │ │ │ ├── icon-76.png │ │ │ ├── icon-1024.png │ │ │ ├── icon-20@2x.png │ │ │ ├── icon-20@3x.png │ │ │ ├── icon-29@2x.png │ │ │ ├── icon-29@3x.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-40@3x.png │ │ │ ├── icon-50@2x.png │ │ │ ├── icon-57@2x.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-60@3x.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76@2x.png │ │ │ ├── icon-20-ipad.png │ │ │ ├── icon-29-ipad.png │ │ │ ├── icon-83.5@2x.png │ │ │ ├── icon-20@2x-ipad.png │ │ │ ├── icon-29@2x-ipad.png │ │ │ └── Contents.json │ │ └── bg.imageset │ │ │ ├── brooke-lark-609899-unsplash.jpg │ │ │ └── Contents.json │ ├── HJViewController.h │ ├── UIView+HJTheme.h │ ├── HJAppDelegate.h │ ├── main.m │ ├── HJViewStyle-Prefix.pch │ ├── UIView+HJTheme.m │ ├── HJViewController.m │ ├── HJViewStyle-Info.plist │ ├── Base.lproj │ │ └── LaunchScreen.storyboard │ └── HJAppDelegate.m ├── Tests │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── zh-HK.lproj │ │ └── InfoPlist.strings │ ├── zh-Hans.lproj │ │ └── InfoPlist.strings │ ├── zh-Hant.lproj │ │ └── InfoPlist.strings │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── Tests-Info.plist ├── Pods │ ├── Target Support Files │ │ ├── HJViewStyle │ │ │ ├── HJViewStyle.modulemap │ │ │ ├── HJViewStyle-dummy.m │ │ │ ├── HJViewStyle-prefix.pch │ │ │ ├── HJViewStyle-umbrella.h │ │ │ ├── HJViewStyle.xcconfig │ │ │ ├── Info.plist │ │ │ └── HJViewStyle-Info.plist │ │ ├── Pods-HJViewStyle_Tests │ │ │ ├── Pods-HJViewStyle_Tests.modulemap │ │ │ ├── Pods-HJViewStyle_Tests-acknowledgements.markdown │ │ │ ├── Pods-HJViewStyle_Tests-dummy.m │ │ │ ├── Pods-HJViewStyle_Tests-umbrella.h │ │ │ ├── Pods-HJViewStyle_Tests.debug.xcconfig │ │ │ ├── Pods-HJViewStyle_Tests.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-HJViewStyle_Tests-Info.plist │ │ │ ├── Pods-HJViewStyle_Tests-acknowledgements.plist │ │ │ ├── Pods-HJViewStyle_Tests-resources.sh │ │ │ └── Pods-HJViewStyle_Tests-frameworks.sh │ │ └── Pods-HJViewStyle_Example │ │ │ ├── Pods-HJViewStyle_Example.modulemap │ │ │ ├── Pods-HJViewStyle_Example-dummy.m │ │ │ ├── Pods-HJViewStyle_Example-umbrella.h │ │ │ ├── Pods-HJViewStyle_Example.debug.xcconfig │ │ │ ├── Pods-HJViewStyle_Example.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-HJViewStyle_Example-Info.plist │ │ │ ├── Pods-HJViewStyle_Example-acknowledgements.markdown │ │ │ ├── Pods-HJViewStyle_Example-acknowledgements.plist │ │ │ ├── Pods-HJViewStyle_Example-resources.sh │ │ │ └── Pods-HJViewStyle_Example-frameworks.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── HJViewStyle.podspec.json │ └── Pods.xcodeproj │ │ └── project.pbxproj ├── HJViewStyle.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── HJViewStyle-Example.xcscheme │ └── project.pbxproj ├── Podfile ├── HJViewStyle.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Podfile.lock ├── HJViewStyle.png ├── LICENSE ├── .gitignore ├── HJViewStyle.podspec └── README.md /HJViewStyle/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /HJViewStyle/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /Example/HJViewStyle/zh-HK.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Example/HJViewStyle/zh-Hans.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Example/HJViewStyle/zh-Hant.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /HJViewStyle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/HJViewStyle.png -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/Tests/zh-HK.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/Tests/zh-Hans.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/Tests/zh-Hant.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/HJViewStyle/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/HJViewStyle/zh-HK.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/HJViewStyle/zh-Hans.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/HJViewStyle/zh-Hant.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/head.imageset/icon-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/head.imageset/icon-1.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/head.imageset/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/head.imageset/icon.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-50.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-57.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-72.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-20@2x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-20@3x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-50@2x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-57@2x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-72@2x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-20-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-20-ipad.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29-ipad.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/HJViewStyle/HJViewStyle.modulemap: -------------------------------------------------------------------------------- 1 | framework module HJViewStyle { 2 | umbrella header "HJViewStyle-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-20@2x-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-20@2x-ipad.png -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29@2x-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/icon-29@2x-ipad.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/HJViewStyle/HJViewStyle-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_HJViewStyle : NSObject 3 | @end 4 | @implementation PodsDummy_HJViewStyle 5 | @end 6 | -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/bg.imageset/brooke-lark-609899-unsplash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnnyHooo/HJViewStyle/HEAD/Example/HJViewStyle/Images.xcassets/bg.imageset/brooke-lark-609899-unsplash.jpg -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_HJViewStyle_Tests { 2 | umbrella header "Pods-HJViewStyle_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/HJViewStyle.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_HJViewStyle_Example { 2 | umbrella header "Pods-HJViewStyle_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_HJViewStyle_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_HJViewStyle_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_HJViewStyle_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_HJViewStyle_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '9.0' 4 | 5 | target 'HJViewStyle_Example' do 6 | pod 'HJViewStyle', :path => '../' 7 | 8 | target 'HJViewStyle_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/HJViewStyle/HJViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HJViewController.h 3 | // HJViewStyle 4 | // 5 | // Created by Johnny on 12/19/2018. 6 | // Copyright (c) 2018 Johnny. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface HJViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/HJViewStyle/HJViewStyle-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/HJViewStyle.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/HJViewStyle.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/HJViewStyle/UIView+HJTheme.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+HJTheme.h 3 | // HJViewStyle_Example 4 | // 5 | // Created by JohnnyHoo on 2018/12/20. 6 | // Copyright © 2018 Johnny. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface UIView (HJTheme) 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - HJViewStyle (1.2.6) 3 | 4 | DEPENDENCIES: 5 | - HJViewStyle (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | HJViewStyle: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | HJViewStyle: 514b54dd9ca7d790bb888d96916e11f0b82167bf 13 | 14 | PODFILE CHECKSUM: 15840622326daafe9b7069c8d04842633f51b9af 15 | 16 | COCOAPODS: 1.7.5 17 | -------------------------------------------------------------------------------- /Example/HJViewStyle/HJAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // HJAppDelegate.h 3 | // HJViewStyle 4 | // 5 | // Created by Johnny on 12/19/2018. 6 | // Copyright (c) 2018 Johnny. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface HJAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - HJViewStyle (1.2.6) 3 | 4 | DEPENDENCIES: 5 | - HJViewStyle (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | HJViewStyle: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | HJViewStyle: 514b54dd9ca7d790bb888d96916e11f0b82167bf 13 | 14 | PODFILE CHECKSUM: 15840622326daafe9b7069c8d04842633f51b9af 15 | 16 | COCOAPODS: 1.7.5 17 | -------------------------------------------------------------------------------- /Example/HJViewStyle/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // HJViewStyle 4 | // 5 | // Created by Johnny on 12/19/2018. 6 | // Copyright (c) 2018 Johnny. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "HJAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([HJAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/HJViewStyle/HJViewStyle-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/bg.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "brooke-lark-609899-unsplash.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/head.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "icon-1.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "icon.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/HJViewStyle/HJViewStyle-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 "UIView+HJViewStyle.h" 14 | 15 | FOUNDATION_EXPORT double HJViewStyleVersionNumber; 16 | FOUNDATION_EXPORT const unsigned char HJViewStyleVersionString[]; 17 | 18 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/HJViewStyle/HJViewStyle.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | PODS_BUILD_DIR = ${BUILD_DIR} 4 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 5 | PODS_ROOT = ${SRCROOT} 6 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_HJViewStyle_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_HJViewStyle_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_HJViewStyle_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_HJViewStyle_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle/HJViewStyle.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "HJViewStyle" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle/HJViewStyle.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "HJViewStyle" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/HJViewStyle.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "HJViewStyle", 3 | "version": "1.2.6", 4 | "summary": "A short description of HJViewStyle.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/JohnnyHooo/HJViewStyle", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "JohnnyHooo": "hujin123@vip.qq.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/JohnnyHooo/HJViewStyle.git", 16 | "tag": "1.2.6" 17 | }, 18 | "platforms": { 19 | "ios": "9.0" 20 | }, 21 | "source_files": "HJViewStyle/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/HJViewStyle/UIView+HJTheme.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+HJTheme.m 3 | // HJViewStyle_Example 4 | // 5 | // Created by JohnnyHoo on 2018/12/20. 6 | // Copyright © 2018 Johnny. All rights reserved. 7 | // 8 | 9 | #import "UIView+HJTheme.h" 10 | 11 | @implementation UIView (HJTheme) 12 | 13 | 14 | /* 15 | 因为很多APP都会有主题颜色,为了更方便的设置主题色可以重写下面的方法 16 | themeGradientEnable = YES 的时候将启用下面配色 17 | */ 18 | 19 | - (UIColor *)themeGradientAColor 20 | { 21 | return [UIColor redColor]; 22 | } 23 | 24 | - (UIColor *)themeGradientBColor 25 | { 26 | return [UIColor blueColor]; 27 | } 28 | 29 | - (NSInteger)themeGradientStyle 30 | { 31 | return 2; 32 | } 33 | 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle/HJViewStyle.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -framework "HJViewStyle" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HJViewStyle/HJViewStyle.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -framework "HJViewStyle" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // HJViewStyleTests.m 3 | // HJViewStyleTests 4 | // 5 | // Created by Johnny on 12/19/2018. 6 | // Copyright (c) 2018 Johnny. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/HJViewStyle/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/HJViewStyle/HJViewStyle-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.2.6 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 Johnny 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## HJViewStyle 5 | 6 | Copyright (c) 2018 Johnny 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 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 | -------------------------------------------------------------------------------- /Example/HJViewStyle/HJViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // HJViewController.m 3 | // HJViewStyle 4 | // 5 | // Created by Johnny on 12/19/2018. 6 | // Copyright (c) 2018 Johnny. All rights reserved. 7 | // 8 | 9 | #import "HJViewController.h" 10 | #import "UIView+HJViewStyle.h" 11 | 12 | @interface HJViewController () 13 | @property (weak, nonatomic) IBOutlet UILabel *hjViewStyleLabel; 14 | 15 | @end 16 | 17 | @implementation HJViewController 18 | 19 | - (void)viewDidLoad 20 | { 21 | [super viewDidLoad]; 22 | // Do any additional setup after loading the view, typically from a nib. 23 | 24 | 25 | 26 | //代码示例 27 | UILabel *label = [UILabel new]; 28 | label.frame = CGRectMake(CGRectGetWidth(self.view.frame) - 120, CGRectGetMidY(_hjViewStyleLabel.frame), 100, 100); 29 | label.backgroundColor = UIColor.redColor; 30 | label.text = @"代码View"; 31 | label.textAlignment = NSTextAlignmentCenter; 32 | label.textColor = UIColor.whiteColor; 33 | 34 | label.cornerRadius = 20; 35 | 36 | label.shadowRadius = 10; 37 | label.shadowColor = UIColor.whiteColor; 38 | label.shadowOffset = CGSizeMake(0, 0); 39 | label.shadowOpacity = 1; 40 | 41 | label.borderColor = UIColor.whiteColor; 42 | label.borderWidth = 10; 43 | 44 | label.gradientStyle = GradientStyleLeftToRight; 45 | label.gradientAColor = UIColor.redColor; 46 | label.gradientBColor = UIColor.purpleColor; 47 | [self.view addSubview:label]; 48 | 49 | } 50 | 51 | - (void)didReceiveMemoryWarning 52 | { 53 | [super didReceiveMemoryWarning]; 54 | // Dispose of any resources that can be recreated. 55 | } 56 | 57 | -(UIStatusBarStyle)preferredStatusBarStyle{ 58 | return UIStatusBarStyleLightContent; 59 | } 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /HJViewStyle.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint HJViewStyle.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'HJViewStyle' 11 | s.version = '1.2.9' 12 | s.summary = 'A short description of HJViewStyle.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | TODO: Add long description of the pod here. 22 | DESC 23 | 24 | s.homepage = 'https://github.com/JohnnyHooo/HJViewStyle' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'JohnnyHooo' => 'hujin123@vip.qq.com' } 28 | s.source = { :git => 'https://github.com/JohnnyHooo/HJViewStyle.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '9.0' 32 | 33 | s.source_files = 'HJViewStyle/Classes/**/*' 34 | 35 | # s.resource_bundles = { 36 | # 'HJViewStyle' => ['HJViewStyle/Assets/*.png'] 37 | # } 38 | 39 | # s.public_header_files = 'Pod/Classes/**/*.h' 40 | # s.frameworks = 'UIKit', 'MapKit' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /Example/HJViewStyle/HJViewStyle-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | HJViewStyle 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UIRequiresFullScreen 36 | 37 | UIStatusBarHidden 38 | 39 | UISupportedInterfaceOrientations 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationLandscapeLeft 43 | UIInterfaceOrientationLandscapeRight 44 | 45 | UISupportedInterfaceOrientations~ipad 46 | 47 | UIInterfaceOrientationPortrait 48 | UIInterfaceOrientationPortraitUpsideDown 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /Example/HJViewStyle/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 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Logo 2 | 3 | # HJViewStyle 4 | [![CI Status](http://img.shields.io/travis/Johnny/HJViewStyle.svg?style=flat)](https://travis-ci.org/Johnny/HJViewStyle) 5 | [![Version](https://img.shields.io/cocoapods/v/HJViewStyle.svg?style=flat)](http://cocoapods.org/pods/HJViewStyle) 6 | [![License](https://img.shields.io/cocoapods/l/HJViewStyle.svg?style=flat)](http://cocoapods.org/pods/HJViewStyle) 7 | [![Platform](https://img.shields.io/cocoapods/p/HJViewStyle.svg?style=flat)](http://cocoapods.org/pods/HJViewStyle) 8 | 9 | 10 | ## 前言 11 | ```ruby 12 | xib零代码和代码快速设置View各种样式,实现阴影圆角并存,渐变色背景等功能❗️ 13 | ``` 14 | 15 |
16 | Demo效果 17 | 18 | ## 特点 19 | - xib零代码和代码快速设置View各种样式 20 | 21 | - 阴影和圆角并存 22 | 23 | - 渐变色背景 24 | 25 | - 根据主题色快速设置渐变背景色 26 | 27 | 28 | ## 安装 29 | 30 | ### 支持 Cocoapods 安装 31 | 32 | ```ruby 33 | pod 'HJViewStyle' 34 | ``` 35 |
36 | 37 | ## 使用 38 | **所有方法都可以直接看 39 | #import "UIView+HJViewStyle.h" 40 | 中的声明以及注释。** 41 | ```objc 42 | //代码示例 43 | UILabel *label = [UILabel new]; 44 | label.frame = CGRectMake(100, 100, 100, 100); 45 | label.backgroundColor = UIColor.redColor; 46 | label.text = @"代码View"; 47 | label.textAlignment = NSTextAlignmentCenter; 48 | label.textColor = UIColor.whiteColor; 49 | 50 | 51 | label.shadowRadius = 10; 52 | label.shadowColor = UIColor.whiteColor; 53 | label.shadowOffset = CGSizeMake(0, 0); 54 | label.shadowOpacity = 1; 55 | 56 | label.cornerRadius = 20; 57 | label.borderColor = UIColor.whiteColor; 58 | label.borderWidth = 10; 59 | 60 | label.gradientStyle = GradientStyleLeftToRight; 61 | label.gradientAColor = UIColor.redColor; 62 | label.gradientBColor = UIColor.purpleColor; 63 | [self.view addSubview:label]; 64 | 65 | ``` 66 | 67 | 68 | -------------------------------------------------------------------------------- /HJViewStyle/Classes/UIView+HJViewStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+HJViewStyle.h 3 | // HJViewStyle 4 | // 5 | // Created by JohnnyHoo on 2018/12/19. 6 | // 7 | 8 | #import 9 | //IB_DESIGNABLE 10 | @interface UIView (HJViewStyle) 11 | 12 | typedef NS_ENUM(NSInteger, GradientStyle) { 13 | GradientStyleLeftToRight = 1,//渐变左到右 14 | GradientStyleTopToBottom = 2//渐变上到下 15 | }; 16 | 17 | ///头部圆角 18 | @property (nonatomic, assign) IBInspectable BOOL roundTop; 19 | ///底部圆角 20 | @property (nonatomic, assign) IBInspectable BOOL roundBottom; 21 | ///左边圆角 22 | @property (nonatomic, assign) IBInspectable BOOL roundLeft; 23 | ///右边圆角 24 | @property (nonatomic, assign) IBInspectable BOOL roundRight; 25 | 26 | ///圆 27 | @property (nonatomic, assign) IBInspectable BOOL circle; 28 | ///圆角 29 | @property (nonatomic, assign) IBInspectable CGFloat cornerRadius; 30 | ///边框宽度 31 | @property (nonatomic, assign) IBInspectable CGFloat borderWidth; 32 | ///边框颜色 33 | @property (nonatomic, strong) IBInspectable UIColor *borderColor; 34 | 35 | ///阴影颜色 36 | @property (nonatomic, strong) IBInspectable UIColor *shadowColor; 37 | ///阴影半径 默认1 38 | @property (nonatomic, assign) IBInspectable CGFloat shadowRadius; 39 | ///阴影透明度 默认1 40 | @property (nonatomic, assign) IBInspectable CGFloat shadowOpacity; 41 | ///阴影偏移 42 | @property (nonatomic, assign) IBInspectable CGSize shadowOffset; 43 | 44 | ///是否开启主题渐变风格 (很多APP渐变风格大多数都是一致了.为了更快设置颜色而添加的属性,具体用法实现UIView+Theme方法) 45 | @property (nonatomic, assign) IBInspectable BOOL themeGradientEnable; 46 | ///渐变方向 47 | @property(nonatomic, assign) GradientStyle gradientStyle; 48 | ///渐变方向 xib用 49 | @property(nonatomic, assign) IBInspectable NSInteger gradientStyleEnum; 50 | ///渐变A颜色 51 | @property (nonatomic, strong) IBInspectable UIColor *gradientAColor; 52 | ///渐变B颜色 53 | @property (nonatomic, strong) IBInspectable UIColor *gradientBColor; 54 | 55 | 56 | /// 阴影Layer 57 | @property(nonatomic, strong) UIView *shadowView; 58 | // 渐变Layer 59 | @property(nonatomic, strong) CAGradientLayer *gradientLayer; 60 | // 边圆角Layer 61 | @property(nonatomic, strong) CAShapeLayer *maskLayer; 62 | 63 | 64 | ///上一次大小 65 | @property (nonatomic, copy) NSString *lastSize; 66 | 67 | @end 68 | 69 | -------------------------------------------------------------------------------- /Example/HJViewStyle/HJAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // HJAppDelegate.m 3 | // HJViewStyle 4 | // 5 | // Created by Johnny on 12/19/2018. 6 | // Copyright (c) 2018 Johnny. All rights reserved. 7 | // 8 | 9 | #import "HJAppDelegate.h" 10 | 11 | @implementation HJAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2018 Johnny <hujin123@vip.qq.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | HJViewStyle 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/HJViewStyle.xcodeproj/xcshareddata/xcschemes/HJViewStyle-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Example/HJViewStyle/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "size": "20x20", 5 | "idiom": "iphone", 6 | "filename": "icon-20@2x.png", 7 | "scale": "2x" 8 | }, 9 | { 10 | "size": "20x20", 11 | "idiom": "iphone", 12 | "filename": "icon-20@3x.png", 13 | "scale": "3x" 14 | }, 15 | { 16 | "size": "29x29", 17 | "idiom": "iphone", 18 | "filename": "icon-29.png", 19 | "scale": "1x" 20 | }, 21 | { 22 | "size": "29x29", 23 | "idiom": "iphone", 24 | "filename": "icon-29@2x.png", 25 | "scale": "2x" 26 | }, 27 | { 28 | "size": "29x29", 29 | "idiom": "iphone", 30 | "filename": "icon-29@3x.png", 31 | "scale": "3x" 32 | }, 33 | { 34 | "size": "40x40", 35 | "idiom": "iphone", 36 | "filename": "icon-40@2x.png", 37 | "scale": "2x" 38 | }, 39 | { 40 | "size": "40x40", 41 | "idiom": "iphone", 42 | "filename": "icon-40@3x.png", 43 | "scale": "3x" 44 | }, 45 | { 46 | "size": "57x57", 47 | "idiom": "iphone", 48 | "filename": "icon-57.png", 49 | "scale": "1x" 50 | }, 51 | { 52 | "size": "57x57", 53 | "idiom": "iphone", 54 | "filename": "icon-57@2x.png", 55 | "scale": "2x" 56 | }, 57 | { 58 | "size": "60x60", 59 | "idiom": "iphone", 60 | "filename": "icon-60@2x.png", 61 | "scale": "2x" 62 | }, 63 | { 64 | "size": "60x60", 65 | "idiom": "iphone", 66 | "filename": "icon-60@3x.png", 67 | "scale": "3x" 68 | }, 69 | { 70 | "size": "20x20", 71 | "idiom": "ipad", 72 | "filename": "icon-20-ipad.png", 73 | "scale": "1x" 74 | }, 75 | { 76 | "size": "20x20", 77 | "idiom": "ipad", 78 | "filename": "icon-20@2x-ipad.png", 79 | "scale": "2x" 80 | }, 81 | { 82 | "size": "29x29", 83 | "idiom": "ipad", 84 | "filename": "icon-29-ipad.png", 85 | "scale": "1x" 86 | }, 87 | { 88 | "size": "29x29", 89 | "idiom": "ipad", 90 | "filename": "icon-29@2x-ipad.png", 91 | "scale": "2x" 92 | }, 93 | { 94 | "size": "40x40", 95 | "idiom": "ipad", 96 | "filename": "icon-40.png", 97 | "scale": "1x" 98 | }, 99 | { 100 | "size": "40x40", 101 | "idiom": "ipad", 102 | "filename": "icon-40@2x.png", 103 | "scale": "2x" 104 | }, 105 | { 106 | "size": "50x50", 107 | "idiom": "ipad", 108 | "filename": "icon-50.png", 109 | "scale": "1x" 110 | }, 111 | { 112 | "size": "50x50", 113 | "idiom": "ipad", 114 | "filename": "icon-50@2x.png", 115 | "scale": "2x" 116 | }, 117 | { 118 | "size": "72x72", 119 | "idiom": "ipad", 120 | "filename": "icon-72.png", 121 | "scale": "1x" 122 | }, 123 | { 124 | "size": "72x72", 125 | "idiom": "ipad", 126 | "filename": "icon-72@2x.png", 127 | "scale": "2x" 128 | }, 129 | { 130 | "size": "76x76", 131 | "idiom": "ipad", 132 | "filename": "icon-76.png", 133 | "scale": "1x" 134 | }, 135 | { 136 | "size": "76x76", 137 | "idiom": "ipad", 138 | "filename": "icon-76@2x.png", 139 | "scale": "2x" 140 | }, 141 | { 142 | "size": "83.5x83.5", 143 | "idiom": "ipad", 144 | "filename": "icon-83.5@2x.png", 145 | "scale": "2x" 146 | }, 147 | { 148 | "size": "1024x1024", 149 | "idiom": "ios-marketing", 150 | "filename": "icon-1024.png", 151 | "scale": "1x" 152 | } 153 | ], 154 | "info": { 155 | "version": 1, 156 | "author": "icon.wuruihong.com" 157 | } 158 | } -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | 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}\"" 80 | 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}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # 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. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 145 | wait 146 | fi 147 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | 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}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # 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. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | 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}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/HJViewStyle/HJViewStyle.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/HJViewStyle/HJViewStyle.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /HJViewStyle/Classes/UIView+HJViewStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+HJViewStyle.m 3 | // HJViewStyle 4 | // 5 | // Created by JohnnyHoo on 2018/12/19. 6 | // 7 | 8 | #import "UIView+HJViewStyle.h" 9 | 10 | #import 11 | 12 | @implementation UIView (HJViewStyle) 13 | @dynamic roundTop, roundLeft, roundBottom, borderWidth, borderColor, cornerRadius, shadowColor, shadowRadius, shadowOffset, shadowOpacity, themeGradientEnable, gradientStyle, gradientStyleEnum, gradientAColor, gradientBColor, shadowView, gradientLayer; 14 | 15 | +(void)load{ 16 | NSArray *arr = @[@"setHidden:" ,@"setAlpha:", @"layoutSubviews", @"removeFromSuperview", @"setFrame:"]; 17 | for (NSString *str in arr) { 18 | NSString *new_str = [@"hj_" stringByAppendingString:str]; 19 | 20 | SEL orignsel = NSSelectorFromString(str); 21 | SEL exchgesel = NSSelectorFromString(new_str); 22 | 23 | Method originalM = class_getInstanceMethod([self class], orignsel); 24 | Method exchangeM = class_getInstanceMethod([self class], exchgesel); 25 | 26 | BOOL didAddMethod = class_addMethod([self class], orignsel, method_getImplementation(exchangeM), method_getTypeEncoding(exchangeM)); 27 | if (didAddMethod) 28 | { 29 | class_replaceMethod([self class], exchgesel, method_getImplementation(originalM), method_getTypeEncoding(originalM)); 30 | } 31 | else 32 | { 33 | method_exchangeImplementations(originalM, exchangeM); 34 | } 35 | } 36 | } 37 | 38 | ///设置角圆角 39 | - (void)setRound:(CACornerMask)maskedCorners 40 | { 41 | self.clipsToBounds = true; 42 | 43 | if (@available(iOS 11.0, *)) { 44 | self.layer.maskedCorners = maskedCorners; 45 | self.shadowView.layer.maskedCorners = maskedCorners; 46 | self.gradientLayer.maskedCorners = maskedCorners; 47 | } else { 48 | [self refreshRoundingCorners]; 49 | } 50 | } 51 | 52 | //头部圆角 53 | - (BOOL)roundTop { 54 | return [objc_getAssociatedObject(self, @selector(roundTop)) boolValue]; 55 | } 56 | - (void)setRoundTop:(BOOL)roundTop { 57 | objc_setAssociatedObject(self, @selector(roundTop), @(roundTop), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 58 | if(roundTop) { 59 | [self setRound:kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner]; 60 | } 61 | } 62 | 63 | //底部圆角 64 | - (BOOL)roundBottom { 65 | return [objc_getAssociatedObject(self, @selector(roundBottom)) boolValue]; 66 | } 67 | - (void)setRoundBottom:(BOOL)roundBottom { 68 | objc_setAssociatedObject(self, @selector(roundBottom), @(roundBottom), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 69 | if(roundBottom) { 70 | [self setRound:kCALayerMinXMaxYCorner | kCALayerMaxXMaxYCorner]; 71 | } 72 | } 73 | 74 | 75 | //左边圆角 76 | - (BOOL)roundLeft { 77 | return [objc_getAssociatedObject(self, @selector(roundLeft)) boolValue]; 78 | } 79 | - (void)setRoundLeft:(BOOL)roundLeft { 80 | objc_setAssociatedObject(self, @selector(roundLeft), @(roundLeft), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 81 | if(roundLeft) { 82 | [self setRound:kCALayerMinXMinYCorner | kCALayerMinXMaxYCorner]; 83 | } 84 | } 85 | 86 | //右边圆角 87 | - (BOOL)roundRight { 88 | return [objc_getAssociatedObject(self, @selector(roundRight)) boolValue]; 89 | } 90 | - (void)setRoundRight:(BOOL)roundRight { 91 | objc_setAssociatedObject(self, @selector(roundRight), @(roundRight), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 92 | if(roundRight) { 93 | [self setRound:kCALayerMaxXMinYCorner | kCALayerMaxXMaxYCorner]; 94 | } 95 | } 96 | 97 | // 渐变空视图,只在有圆角的时候使用 98 | - (CAShapeLayer *)maskLayer{ 99 | return objc_getAssociatedObject(self, @selector(maskLayer)); 100 | } 101 | 102 | - (void)setMaskLayer:(CAShapeLayer *)maskLayer{ 103 | objc_setAssociatedObject(self, @selector(maskLayer), maskLayer, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 104 | } 105 | 106 | ///上一次大小 107 | - (NSString *)lastSize{ 108 | return objc_getAssociatedObject(self, @selector(lastSize)); 109 | } 110 | 111 | - (void)setLastSize:(NSString *)lastSize{ 112 | objc_setAssociatedObject(self, @selector(lastSize), lastSize, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 113 | } 114 | 115 | 116 | 117 | //刷新圆角边框 118 | - (void)refreshRoundingCorners{ 119 | if (@available(iOS 11.0, *)) { 120 | }else{ 121 | if (self.roundTop || self.roundBottom) { 122 | CGFloat radius = self.cornerRadius; // 圆角大小 123 | UIRectCorner corner = UIRectCornerAllCorners; // 圆角位置,全部位置 124 | if (self.roundTop) { 125 | corner = UIRectCornerTopLeft | UIRectCornerTopRight; 126 | }else if (self.roundBottom) { 127 | corner = UIRectCornerBottomLeft | UIRectCornerBottomRight; 128 | }else if (self.roundLeft) { 129 | corner = UIRectCornerTopLeft | UIRectCornerBottomLeft; 130 | }else if (self.roundRight) { 131 | corner = UIRectCornerTopRight | UIRectCornerBottomRight; 132 | } 133 | 134 | [self setLayerCornerRadius:0]; 135 | self.getStyleLayer.borderWidth = 0; 136 | self.getStyleLayer.borderColor = [UIColor clearColor].CGColor; 137 | [self setBorderWithCornerRadius:radius borderWidth:self.borderWidth borderColor:self.borderColor type:corner]; 138 | 139 | } 140 | } 141 | } 142 | 143 | - (void)setBorderWithCornerRadius:(CGFloat)cornerRadius 144 | borderWidth:(CGFloat)borderWidth 145 | borderColor:(UIColor *)borderColor 146 | type:(UIRectCorner)corners { 147 | 148 | // UIRectCorner type = UIRectCornerTopRight | UIRectCornerBottomRight | UIRectCornerBottomLeft; 149 | 150 | //1. 加一个layer 显示形状 151 | CGRect rect = CGRectMake(borderWidth/2.0, borderWidth/2.0, 152 | CGRectGetWidth(self.frame)-borderWidth, CGRectGetHeight(self.frame)-borderWidth); 153 | CGSize radii = CGSizeMake(cornerRadius, borderWidth); 154 | 155 | //create path 156 | UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect byRoundingCorners:corners cornerRadii:radii]; 157 | 158 | //create shape layer 159 | if (!self.maskLayer) { 160 | self.maskLayer = [[CAShapeLayer alloc] init]; 161 | } 162 | 163 | self.maskLayer.strokeColor = borderColor.CGColor; 164 | self.maskLayer.fillColor = [UIColor clearColor].CGColor; 165 | 166 | self.maskLayer.lineWidth = borderWidth; 167 | self.maskLayer.lineJoin = kCALineJoinRound; 168 | self.maskLayer.lineCap = kCALineCapRound; 169 | self.maskLayer.path = path.CGPath; 170 | [self.layer addSublayer:self.maskLayer]; 171 | 172 | CAShapeLayer *clipLayer = [CAShapeLayer layer]; 173 | clipLayer.path = path.CGPath; 174 | self.layer.mask = clipLayer; 175 | 176 | self.gradientLayer.mask = clipLayer; 177 | self.shadowView.layer.mask = clipLayer; 178 | } 179 | 180 | //圆形 181 | - (BOOL)circle { 182 | return [objc_getAssociatedObject(self, @selector(circle)) boolValue]; 183 | } 184 | - (void)setCircle:(BOOL)circle { 185 | objc_setAssociatedObject(self, @selector(circle), @(circle), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 186 | [self setLayerCcircleRadius]; 187 | } 188 | 189 | - (void)setLayerCcircleRadius 190 | { 191 | if (self.circle) { 192 | CGFloat width = self.bounds.size.width; 193 | CGFloat height = self.bounds.size.height; 194 | CGFloat radius = (width > height ? height : width) / 2; 195 | [self setCornerRadius:radius]; 196 | } else if (!self.circle && self.cornerRadius > 0) { 197 | [self setCornerRadius:self.cornerRadius]; 198 | } 199 | } 200 | 201 | ///圆角 202 | - (CGFloat)cornerRadius { 203 | return [objc_getAssociatedObject(self, @selector(cornerRadius)) floatValue]; 204 | } 205 | - (void)setCornerRadius:(CGFloat)cornerRadius { 206 | objc_setAssociatedObject(self, @selector(cornerRadius), @(cornerRadius), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 207 | [self setLayerCornerRadius:cornerRadius]; 208 | 209 | if (!CGSizeEqualToSize(CGSizeFromString(self.lastSize), self.frame.size)) { 210 | [self refreshRoundingCorners]; 211 | } 212 | } 213 | 214 | ///设置圆角 215 | - (void)setLayerCornerRadius:(CGFloat)cornerRadius 216 | { 217 | self.clipsToBounds = true; 218 | 219 | self.layer.cornerRadius = cornerRadius; 220 | self.getStyleLayer.cornerRadius = cornerRadius; 221 | self.gradientLayer.cornerRadius = cornerRadius; 222 | } 223 | 224 | 225 | ///边框宽度 226 | - (CGFloat)borderWidth { 227 | return [objc_getAssociatedObject(self, @selector(borderWidth)) floatValue]; 228 | } 229 | - (void)setBorderWidth:(CGFloat)borderWidth { 230 | objc_setAssociatedObject(self, @selector(borderWidth), @(borderWidth), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 231 | self.layer.borderWidth = borderWidth; 232 | [self refreshRoundingCorners]; 233 | } 234 | 235 | 236 | ///边框颜色 237 | - (UIColor *)borderColor { 238 | return objc_getAssociatedObject(self, @selector(borderColor)); 239 | } 240 | - (void)setBorderColor:(UIColor *)borderColor { 241 | objc_setAssociatedObject(self, @selector(borderColor), borderColor, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 242 | self.layer.borderColor = borderColor.CGColor; 243 | [self refreshRoundingCorners]; 244 | } 245 | 246 | 247 | ///阴影颜色 248 | - (UIColor *)shadowColor { 249 | return objc_getAssociatedObject(self, @selector(shadowColor)); 250 | } 251 | - (void)setShadowColor:(UIColor *)shadowColor 252 | { 253 | objc_setAssociatedObject(self, @selector(shadowColor), shadowColor, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 254 | self.getStyleLayer.shadowColor = shadowColor.CGColor; 255 | self.getStyleLayer.shadowOpacity = 1; 256 | } 257 | 258 | ///阴影半径 259 | - (void)setShadowRadius:(CGFloat)shadowRadius 260 | { 261 | self.getStyleLayer.shadowRadius = shadowRadius;; 262 | } 263 | 264 | ///阴影偏移 265 | - (void)setShadowOffset:(CGSize)shadowOffset 266 | { 267 | self.getStyleLayer.shadowOffset = shadowOffset;; 268 | } 269 | 270 | ///阴影透明度 271 | - (void)setShadowOpacity:(CGFloat)shadowOpacity 272 | { 273 | self.getStyleLayer.shadowOpacity = shadowOpacity;; 274 | } 275 | 276 | //阴影layer 277 | - (CALayer *)getStyleLayer{ 278 | if (self.shadowColor && ([self isKindOfClass:[UIImageView class]] || self.clipsToBounds)) { 279 | if (!self.shadowView) { 280 | self.shadowView = [[UIView alloc] init]; 281 | self.shadowView.backgroundColor = self.backgroundColor; 282 | 283 | self.shadowView.layer.shadowOpacity = self.layer.shadowOpacity?:1; 284 | self.shadowView.layer.shadowRadius = self.layer.shadowRadius?:1; 285 | self.shadowView.layer.shadowColor = self.shadowColor.CGColor; 286 | self.shadowView.layer.cornerRadius = self.cornerRadius; 287 | if (CGSizeEqualToSize(self.layer.shadowOffset, self.shadowView.layer.shadowOffset)) { 288 | self.shadowView.layer.shadowOffset = CGSizeZero; 289 | } 290 | } 291 | // 禁止将 AutoresizingMask 转换为 Constraints 292 | self.shadowView.translatesAutoresizingMaskIntoConstraints = NO; 293 | [self.superview insertSubview:self.shadowView belowSubview:self]; 294 | // 添加 right 约束 295 | NSLayoutConstraint *rightConstraint = [NSLayoutConstraint constraintWithItem:self attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.shadowView attribute:NSLayoutAttributeRight multiplier:1.0 constant:0]; 296 | [self.superview addConstraint:rightConstraint]; 297 | 298 | // 添加 left 约束 299 | NSLayoutConstraint *leftConstraint = [NSLayoutConstraint constraintWithItem:self.shadowView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0]; 300 | [self.superview addConstraint:leftConstraint]; 301 | // 添加 top 约束 302 | NSLayoutConstraint *topConstraint = [NSLayoutConstraint constraintWithItem:self.shadowView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:0]; 303 | [self.superview addConstraint:topConstraint]; 304 | // 添加 bottom 约束 305 | NSLayoutConstraint *bottomConstraint = [NSLayoutConstraint constraintWithItem:self.shadowView attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0]; 306 | [self.superview addConstraint:bottomConstraint]; 307 | 308 | [self.superview insertSubview:self.shadowView belowSubview:self]; 309 | 310 | return self.shadowView.layer; 311 | }else{ 312 | return self.layer; 313 | } 314 | } 315 | 316 | 317 | // 阴影空视图,只在有圆角的时候使用 318 | - (UIView *)shadowView{ 319 | return objc_getAssociatedObject(self, @selector(shadowView)); 320 | } 321 | 322 | - (void)setShadowView:(UIView *)shadowView{ 323 | objc_setAssociatedObject(self, @selector(shadowView), shadowView, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 324 | } 325 | 326 | ///渐变A颜色 327 | - (void)setGradientAColor:(UIColor *)gradientAColor 328 | { 329 | objc_setAssociatedObject(self, @selector(gradientAColor), gradientAColor, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 330 | [self drawingGradientLayer]; 331 | } 332 | 333 | - (UIColor *)gradientAColor { 334 | return objc_getAssociatedObject(self, @selector(gradientAColor)); 335 | } 336 | 337 | ///渐变B颜色 338 | - (void)setGradientBColor:(UIColor *)gradientBColor 339 | { 340 | objc_setAssociatedObject(self, @selector(gradientBColor), gradientBColor, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 341 | [self drawingGradientLayer]; 342 | } 343 | - (UIColor *)gradientBColor { 344 | return objc_getAssociatedObject(self, @selector(gradientBColor)); 345 | } 346 | 347 | ///渐变风格xib用 348 | - (NSInteger)gradientStyleEnum 349 | { 350 | return [objc_getAssociatedObject(self, @selector(gradientStyleEnum)) integerValue]; 351 | } 352 | - (void)setGradientStyleEnum:(NSInteger)gradientStyleEnum 353 | { 354 | objc_setAssociatedObject(self, @selector(gradientStyleEnum), @(gradientStyleEnum), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 355 | self.gradientStyle = gradientStyleEnum; 356 | } 357 | 358 | 359 | ///渐变风格 360 | - (GradientStyle)gradientStyle 361 | { 362 | return [objc_getAssociatedObject(self, @selector(gradientStyle)) integerValue]; 363 | } 364 | - (void)setGradientStyle:(GradientStyle)gradientStyle{ 365 | objc_setAssociatedObject(self, @selector(gradientStyle), @(gradientStyle), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 366 | if (self.gradientStyle) [self drawingGradientLayer]; 367 | } 368 | 369 | ///是否开启主题渐变风格 370 | - (BOOL)themeGradientEnable 371 | { 372 | return [objc_getAssociatedObject(self, @selector(themeGradientEnable)) boolValue]; 373 | } 374 | 375 | - (void)setThemeGradientEnable:(BOOL)themeGradientEnable{ 376 | objc_setAssociatedObject(self, @selector(themeGradientEnable), @(themeGradientEnable), OBJC_ASSOCIATION_RETAIN_NONATOMIC); 377 | [self drawingGradientLayer]; 378 | } 379 | 380 | 381 | //渐变layer 382 | - (void)drawingGradientLayer{ 383 | 384 | UIColor *colorA = self.gradientAColor; 385 | UIColor *colorB = self.gradientBColor; 386 | GradientStyle gradientStyle = self.gradientStyle; 387 | 388 | if (!colorA && [self respondsToSelector:@selector(themeGradientAColor)]) { 389 | colorA = [self valueForKey:@"themeGradientAColor"]; 390 | } 391 | if (!colorB && [self respondsToSelector:@selector(themeGradientBColor)]) { 392 | colorB = [self valueForKey:@"themeGradientBColor"]; 393 | } 394 | if (!gradientStyle && [self respondsToSelector:@selector(themeGradientStyle)]) { 395 | gradientStyle = [[self valueForKey:@"themeGradientStyle"] integerValue]; 396 | } 397 | 398 | if (colorA && colorB) { 399 | if (!self.gradientLayer) { 400 | self.gradientLayer = [CAGradientLayer layer]; 401 | [self.layer insertSublayer:self.gradientLayer below:self.layer]; 402 | } 403 | self.gradientLayer.frame = self.bounds; 404 | 405 | self.gradientLayer.colors = @[(__bridge id)colorA.CGColor, (__bridge id)colorB.CGColor]; 406 | // self.gradientLayer.locations = @[@0.5, @0.5]; 407 | if (gradientStyle == GradientStyleLeftToRight) { 408 | self.gradientLayer.startPoint = CGPointMake(0, 0); 409 | self.gradientLayer.endPoint = CGPointMake(1.0, 0); 410 | }else{ 411 | self.gradientLayer.startPoint = CGPointMake(0, 0); 412 | self.gradientLayer.endPoint = CGPointMake(0, 1.0); 413 | } 414 | self.gradientLayer.cornerRadius = self.cornerRadius; 415 | if (@available(iOS 11.0, *)) { 416 | self.gradientLayer.maskedCorners = self.getStyleLayer.maskedCorners; 417 | } else { 418 | [self refreshRoundingCorners]; 419 | } 420 | self.backgroundColor = [UIColor clearColor]; 421 | } 422 | } 423 | 424 | - (UIColor *)themeGradientAColor{ 425 | return [UIColor redColor]; 426 | } 427 | 428 | - (UIColor *)themeGradientBColor{ 429 | return [UIColor blueColor]; 430 | } 431 | 432 | - (NSInteger)themeGradientStyle 433 | { 434 | return 1; 435 | } 436 | 437 | // 渐变空视图,只在有圆角的时候使用 438 | - (CAGradientLayer *)gradientLayer{ 439 | return objc_getAssociatedObject(self, @selector(gradientLayer)); 440 | } 441 | 442 | - (void)setGradientLayer:(CAGradientLayer *)gradientLayer{ 443 | objc_setAssociatedObject(self, @selector(gradientLayer), gradientLayer, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 444 | } 445 | 446 | 447 | - (void)hj_setFrame:(CGRect)frame 448 | { 449 | [self hj_setFrame:frame]; 450 | [self refreshLayout]; 451 | } 452 | 453 | 454 | - (void)hj_layoutSubviews 455 | { 456 | [self hj_layoutSubviews]; 457 | [self refreshLayout]; 458 | } 459 | 460 | - (void)refreshLayout 461 | { 462 | if (self.shadowView.layer) { 463 | self.shadowView.frame = self.frame; 464 | } 465 | if (self.gradientLayer) { 466 | self.gradientLayer.frame = self.bounds; 467 | } 468 | 469 | if (self.shadowView.layer && !self.roundTop && !self.roundBottom && !self.roundLeft && !self.roundRight) { 470 | //设置阴影路径 471 | [self.shadowView layer].shadowPath =[UIBezierPath bezierPathWithRect:self.shadowView.bounds].CGPath; 472 | [self layer].shadowPath =[UIBezierPath bezierPathWithRect:self.bounds].CGPath; 473 | } 474 | [self setLayerCcircleRadius]; 475 | self.lastSize = NSStringFromCGSize(self.frame.size); 476 | 477 | } 478 | 479 | - (void)hj_removeFromSuperview 480 | { 481 | if (self.shadowView) { 482 | [self.shadowView removeFromSuperview]; 483 | } 484 | if (self.gradientLayer) { 485 | [self.gradientLayer removeFromSuperlayer]; 486 | } 487 | [self hj_removeFromSuperview]; 488 | } 489 | 490 | 491 | - (void)hj_setAlpha:(CGFloat)alpha{ 492 | [self hj_setAlpha:alpha]; 493 | 494 | if (self.shadowView) { 495 | self.shadowView.alpha = alpha; 496 | } 497 | if (self.gradientLayer) { 498 | self.gradientLayer.opacity = alpha; 499 | } 500 | } 501 | 502 | - (void)hj_setHidden:(BOOL)hidden 503 | { 504 | [self hj_setHidden:hidden]; 505 | if (self.shadowView) { 506 | self.shadowView.hidden = hidden; 507 | } 508 | if (self.gradientLayer) { 509 | self.gradientLayer.hidden = hidden; 510 | } 511 | } 512 | 513 | 514 | 515 | @end 516 | -------------------------------------------------------------------------------- /Example/HJViewStyle.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0DBAABC821CB7F7400EB68B7 /* UIView+HJTheme.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DBAABC721CB7F7400EB68B7 /* UIView+HJTheme.m */; }; 11 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 12 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 13 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 14 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 15 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 16 | 6003F59E195388D20070C39A /* HJAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* HJAppDelegate.m */; }; 17 | 6003F5A7195388D20070C39A /* HJViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* HJViewController.m */; }; 18 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 19 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 20 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 21 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 22 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 23 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 24 | 63E90850D9A4A033B4484B78 /* Pods_HJViewStyle_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF302D9FBF42968E89A105CD /* Pods_HJViewStyle_Example.framework */; }; 25 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; 26 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 27 | 947EE8AF9C1368F2838349D0 /* Pods_HJViewStyle_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B864B7A5C948F2F41220BCB /* Pods_HJViewStyle_Tests.framework */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 6003F582195388D10070C39A /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 6003F589195388D20070C39A; 36 | remoteInfo = HJViewStyle; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 01E9145A411A9F53EFF73658 /* Pods-HJViewStyle_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HJViewStyle_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests.release.xcconfig"; sourceTree = ""; }; 42 | 09A1DE81F17394F6C058EBB8 /* Pods-HJViewStyle_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HJViewStyle_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests.debug.xcconfig"; sourceTree = ""; }; 43 | 0DAA311421D07CBE00E4AA6B /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/LaunchScreen.strings"; sourceTree = ""; }; 44 | 0DAA311521D07CBE00E4AA6B /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/InfoPlist.strings"; sourceTree = ""; }; 45 | 0DAA311621D07CBE00E4AA6B /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/InfoPlist.strings"; sourceTree = ""; }; 46 | 0DAA311721D07CC100E4AA6B /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = ""; }; 47 | 0DAA311821D07CC100E4AA6B /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = ""; }; 48 | 0DAA311921D07CC100E4AA6B /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = ""; }; 49 | 0DAA311A21D07CC500E4AA6B /* zh-HK */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-HK"; path = "zh-HK.lproj/LaunchScreen.strings"; sourceTree = ""; }; 50 | 0DAA311B21D07CC500E4AA6B /* zh-HK */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-HK"; path = "zh-HK.lproj/InfoPlist.strings"; sourceTree = ""; }; 51 | 0DAA311C21D07CC500E4AA6B /* zh-HK */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-HK"; path = "zh-HK.lproj/InfoPlist.strings"; sourceTree = ""; }; 52 | 0DAA311E21D07D2B00E4AA6B /* HJViewStyle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = HJViewStyle.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 0DBAABC621CB7F7400EB68B7 /* UIView+HJTheme.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIView+HJTheme.h"; sourceTree = ""; }; 54 | 0DBAABC721CB7F7400EB68B7 /* UIView+HJTheme.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIView+HJTheme.m"; sourceTree = ""; }; 55 | 0E9D966F257E47F1122396FB /* HJViewStyle.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = HJViewStyle.podspec; path = ../HJViewStyle.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 56 | 0F68EDD889C36668973679C3 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 57 | 2D069EEE93FC4A64BC2E939A /* Pods-HJViewStyle_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HJViewStyle_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example.release.xcconfig"; sourceTree = ""; }; 58 | 3B864B7A5C948F2F41220BCB /* Pods_HJViewStyle_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_HJViewStyle_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 43FAF9D601E210C25A8D187F /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 60 | 583F79870F796CABD701B3F2 /* Pods-HJViewStyle_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HJViewStyle_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example.debug.xcconfig"; sourceTree = ""; }; 61 | 6003F58A195388D20070C39A /* HJViewStyle_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HJViewStyle_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 63 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 64 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 65 | 6003F595195388D20070C39A /* HJViewStyle-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HJViewStyle-Info.plist"; sourceTree = ""; }; 66 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 67 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 68 | 6003F59B195388D20070C39A /* HJViewStyle-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HJViewStyle-Prefix.pch"; sourceTree = ""; }; 69 | 6003F59C195388D20070C39A /* HJAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HJAppDelegate.h; sourceTree = ""; }; 70 | 6003F59D195388D20070C39A /* HJAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HJAppDelegate.m; sourceTree = ""; }; 71 | 6003F5A5195388D20070C39A /* HJViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HJViewController.h; sourceTree = ""; }; 72 | 6003F5A6195388D20070C39A /* HJViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HJViewController.m; sourceTree = ""; }; 73 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 74 | 6003F5AE195388D20070C39A /* HJViewStyle_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HJViewStyle_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 75 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 76 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 77 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 78 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 79 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 80 | 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 81 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 82 | BF302D9FBF42968E89A105CD /* Pods_HJViewStyle_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_HJViewStyle_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 83 | /* End PBXFileReference section */ 84 | 85 | /* Begin PBXFrameworksBuildPhase section */ 86 | 6003F587195388D20070C39A /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 91 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 92 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 93 | 63E90850D9A4A033B4484B78 /* Pods_HJViewStyle_Example.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 6003F5AB195388D20070C39A /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 102 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 103 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 104 | 947EE8AF9C1368F2838349D0 /* Pods_HJViewStyle_Tests.framework in Frameworks */, 105 | ); 106 | runOnlyForDeploymentPostprocessing = 0; 107 | }; 108 | /* End PBXFrameworksBuildPhase section */ 109 | 110 | /* Begin PBXGroup section */ 111 | 0C4D1633175E4402CB6CB530 /* Pods */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 583F79870F796CABD701B3F2 /* Pods-HJViewStyle_Example.debug.xcconfig */, 115 | 2D069EEE93FC4A64BC2E939A /* Pods-HJViewStyle_Example.release.xcconfig */, 116 | 09A1DE81F17394F6C058EBB8 /* Pods-HJViewStyle_Tests.debug.xcconfig */, 117 | 01E9145A411A9F53EFF73658 /* Pods-HJViewStyle_Tests.release.xcconfig */, 118 | ); 119 | name = Pods; 120 | sourceTree = ""; 121 | }; 122 | 6003F581195388D10070C39A = { 123 | isa = PBXGroup; 124 | children = ( 125 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 126 | 6003F593195388D20070C39A /* Example for HJViewStyle */, 127 | 6003F5B5195388D20070C39A /* Tests */, 128 | 6003F58C195388D20070C39A /* Frameworks */, 129 | 6003F58B195388D20070C39A /* Products */, 130 | 0C4D1633175E4402CB6CB530 /* Pods */, 131 | ); 132 | sourceTree = ""; 133 | }; 134 | 6003F58B195388D20070C39A /* Products */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 6003F58A195388D20070C39A /* HJViewStyle_Example.app */, 138 | 6003F5AE195388D20070C39A /* HJViewStyle_Tests.xctest */, 139 | ); 140 | name = Products; 141 | sourceTree = ""; 142 | }; 143 | 6003F58C195388D20070C39A /* Frameworks */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 0DAA311E21D07D2B00E4AA6B /* HJViewStyle.framework */, 147 | 6003F58D195388D20070C39A /* Foundation.framework */, 148 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 149 | 6003F591195388D20070C39A /* UIKit.framework */, 150 | 6003F5AF195388D20070C39A /* XCTest.framework */, 151 | BF302D9FBF42968E89A105CD /* Pods_HJViewStyle_Example.framework */, 152 | 3B864B7A5C948F2F41220BCB /* Pods_HJViewStyle_Tests.framework */, 153 | ); 154 | name = Frameworks; 155 | sourceTree = ""; 156 | }; 157 | 6003F593195388D20070C39A /* Example for HJViewStyle */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 6003F59C195388D20070C39A /* HJAppDelegate.h */, 161 | 6003F59D195388D20070C39A /* HJAppDelegate.m */, 162 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 163 | 6003F5A5195388D20070C39A /* HJViewController.h */, 164 | 6003F5A6195388D20070C39A /* HJViewController.m */, 165 | 0DBAABC621CB7F7400EB68B7 /* UIView+HJTheme.h */, 166 | 0DBAABC721CB7F7400EB68B7 /* UIView+HJTheme.m */, 167 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */, 168 | 6003F5A8195388D20070C39A /* Images.xcassets */, 169 | 6003F594195388D20070C39A /* Supporting Files */, 170 | ); 171 | name = "Example for HJViewStyle"; 172 | path = HJViewStyle; 173 | sourceTree = ""; 174 | }; 175 | 6003F594195388D20070C39A /* Supporting Files */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 6003F595195388D20070C39A /* HJViewStyle-Info.plist */, 179 | 6003F596195388D20070C39A /* InfoPlist.strings */, 180 | 6003F599195388D20070C39A /* main.m */, 181 | 6003F59B195388D20070C39A /* HJViewStyle-Prefix.pch */, 182 | ); 183 | name = "Supporting Files"; 184 | sourceTree = ""; 185 | }; 186 | 6003F5B5195388D20070C39A /* Tests */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 6003F5BB195388D20070C39A /* Tests.m */, 190 | 6003F5B6195388D20070C39A /* Supporting Files */, 191 | ); 192 | path = Tests; 193 | sourceTree = ""; 194 | }; 195 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 199 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 200 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 201 | ); 202 | name = "Supporting Files"; 203 | sourceTree = ""; 204 | }; 205 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 0E9D966F257E47F1122396FB /* HJViewStyle.podspec */, 209 | 0F68EDD889C36668973679C3 /* README.md */, 210 | 43FAF9D601E210C25A8D187F /* LICENSE */, 211 | ); 212 | name = "Podspec Metadata"; 213 | sourceTree = ""; 214 | }; 215 | /* End PBXGroup section */ 216 | 217 | /* Begin PBXNativeTarget section */ 218 | 6003F589195388D20070C39A /* HJViewStyle_Example */ = { 219 | isa = PBXNativeTarget; 220 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "HJViewStyle_Example" */; 221 | buildPhases = ( 222 | E542BC5258A0627BB88E7F09 /* [CP] Check Pods Manifest.lock */, 223 | 6003F586195388D20070C39A /* Sources */, 224 | 6003F587195388D20070C39A /* Frameworks */, 225 | 6003F588195388D20070C39A /* Resources */, 226 | 51D30E037D1E56FC2AB3B911 /* [CP] Embed Pods Frameworks */, 227 | ); 228 | buildRules = ( 229 | ); 230 | dependencies = ( 231 | ); 232 | name = HJViewStyle_Example; 233 | productName = HJViewStyle; 234 | productReference = 6003F58A195388D20070C39A /* HJViewStyle_Example.app */; 235 | productType = "com.apple.product-type.application"; 236 | }; 237 | 6003F5AD195388D20070C39A /* HJViewStyle_Tests */ = { 238 | isa = PBXNativeTarget; 239 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "HJViewStyle_Tests" */; 240 | buildPhases = ( 241 | 06362026768C837C3FFED11F /* [CP] Check Pods Manifest.lock */, 242 | 6003F5AA195388D20070C39A /* Sources */, 243 | 6003F5AB195388D20070C39A /* Frameworks */, 244 | 6003F5AC195388D20070C39A /* Resources */, 245 | ); 246 | buildRules = ( 247 | ); 248 | dependencies = ( 249 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 250 | ); 251 | name = HJViewStyle_Tests; 252 | productName = HJViewStyleTests; 253 | productReference = 6003F5AE195388D20070C39A /* HJViewStyle_Tests.xctest */; 254 | productType = "com.apple.product-type.bundle.unit-test"; 255 | }; 256 | /* End PBXNativeTarget section */ 257 | 258 | /* Begin PBXProject section */ 259 | 6003F582195388D10070C39A /* Project object */ = { 260 | isa = PBXProject; 261 | attributes = { 262 | CLASSPREFIX = HJ; 263 | LastUpgradeCheck = 1010; 264 | ORGANIZATIONNAME = Johnny; 265 | TargetAttributes = { 266 | 6003F589195388D20070C39A = { 267 | DevelopmentTeam = T84US44ZL8; 268 | }; 269 | 6003F5AD195388D20070C39A = { 270 | TestTargetID = 6003F589195388D20070C39A; 271 | }; 272 | }; 273 | }; 274 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "HJViewStyle" */; 275 | compatibilityVersion = "Xcode 3.2"; 276 | developmentRegion = English; 277 | hasScannedForEncodings = 0; 278 | knownRegions = ( 279 | English, 280 | en, 281 | Base, 282 | "zh-Hant", 283 | "zh-Hans", 284 | "zh-HK", 285 | ); 286 | mainGroup = 6003F581195388D10070C39A; 287 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 288 | projectDirPath = ""; 289 | projectRoot = ""; 290 | targets = ( 291 | 6003F589195388D20070C39A /* HJViewStyle_Example */, 292 | 6003F5AD195388D20070C39A /* HJViewStyle_Tests */, 293 | ); 294 | }; 295 | /* End PBXProject section */ 296 | 297 | /* Begin PBXResourcesBuildPhase section */ 298 | 6003F588195388D20070C39A /* Resources */ = { 299 | isa = PBXResourcesBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 303 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */, 304 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 305 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | 6003F5AC195388D20070C39A /* Resources */ = { 310 | isa = PBXResourcesBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 314 | ); 315 | runOnlyForDeploymentPostprocessing = 0; 316 | }; 317 | /* End PBXResourcesBuildPhase section */ 318 | 319 | /* Begin PBXShellScriptBuildPhase section */ 320 | 06362026768C837C3FFED11F /* [CP] Check Pods Manifest.lock */ = { 321 | isa = PBXShellScriptBuildPhase; 322 | buildActionMask = 2147483647; 323 | files = ( 324 | ); 325 | inputPaths = ( 326 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 327 | "${PODS_ROOT}/Manifest.lock", 328 | ); 329 | name = "[CP] Check Pods Manifest.lock"; 330 | outputPaths = ( 331 | "$(DERIVED_FILE_DIR)/Pods-HJViewStyle_Tests-checkManifestLockResult.txt", 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | shellPath = /bin/sh; 335 | 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"; 336 | showEnvVarsInLog = 0; 337 | }; 338 | 51D30E037D1E56FC2AB3B911 /* [CP] Embed Pods Frameworks */ = { 339 | isa = PBXShellScriptBuildPhase; 340 | buildActionMask = 2147483647; 341 | files = ( 342 | ); 343 | inputPaths = ( 344 | "${PODS_ROOT}/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-frameworks.sh", 345 | "${BUILT_PRODUCTS_DIR}/HJViewStyle/HJViewStyle.framework", 346 | ); 347 | name = "[CP] Embed Pods Frameworks"; 348 | outputPaths = ( 349 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/HJViewStyle.framework", 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | shellPath = /bin/sh; 353 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-frameworks.sh\"\n"; 354 | showEnvVarsInLog = 0; 355 | }; 356 | E542BC5258A0627BB88E7F09 /* [CP] Check Pods Manifest.lock */ = { 357 | isa = PBXShellScriptBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | ); 361 | inputPaths = ( 362 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 363 | "${PODS_ROOT}/Manifest.lock", 364 | ); 365 | name = "[CP] Check Pods Manifest.lock"; 366 | outputPaths = ( 367 | "$(DERIVED_FILE_DIR)/Pods-HJViewStyle_Example-checkManifestLockResult.txt", 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | shellPath = /bin/sh; 371 | 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"; 372 | showEnvVarsInLog = 0; 373 | }; 374 | /* End PBXShellScriptBuildPhase section */ 375 | 376 | /* Begin PBXSourcesBuildPhase section */ 377 | 6003F586195388D20070C39A /* Sources */ = { 378 | isa = PBXSourcesBuildPhase; 379 | buildActionMask = 2147483647; 380 | files = ( 381 | 0DBAABC821CB7F7400EB68B7 /* UIView+HJTheme.m in Sources */, 382 | 6003F59E195388D20070C39A /* HJAppDelegate.m in Sources */, 383 | 6003F5A7195388D20070C39A /* HJViewController.m in Sources */, 384 | 6003F59A195388D20070C39A /* main.m in Sources */, 385 | ); 386 | runOnlyForDeploymentPostprocessing = 0; 387 | }; 388 | 6003F5AA195388D20070C39A /* Sources */ = { 389 | isa = PBXSourcesBuildPhase; 390 | buildActionMask = 2147483647; 391 | files = ( 392 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | }; 396 | /* End PBXSourcesBuildPhase section */ 397 | 398 | /* Begin PBXTargetDependency section */ 399 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 400 | isa = PBXTargetDependency; 401 | target = 6003F589195388D20070C39A /* HJViewStyle_Example */; 402 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 403 | }; 404 | /* End PBXTargetDependency section */ 405 | 406 | /* Begin PBXVariantGroup section */ 407 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 408 | isa = PBXVariantGroup; 409 | children = ( 410 | 6003F597195388D20070C39A /* en */, 411 | 0DAA311521D07CBE00E4AA6B /* zh-Hant */, 412 | 0DAA311821D07CC100E4AA6B /* zh-Hans */, 413 | 0DAA311B21D07CC500E4AA6B /* zh-HK */, 414 | ); 415 | name = InfoPlist.strings; 416 | sourceTree = ""; 417 | }; 418 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 419 | isa = PBXVariantGroup; 420 | children = ( 421 | 6003F5B9195388D20070C39A /* en */, 422 | 0DAA311621D07CBE00E4AA6B /* zh-Hant */, 423 | 0DAA311921D07CC100E4AA6B /* zh-Hans */, 424 | 0DAA311C21D07CC500E4AA6B /* zh-HK */, 425 | ); 426 | name = InfoPlist.strings; 427 | sourceTree = ""; 428 | }; 429 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = { 430 | isa = PBXVariantGroup; 431 | children = ( 432 | 71719F9E1E33DC2100824A3D /* Base */, 433 | 0DAA311421D07CBE00E4AA6B /* zh-Hant */, 434 | 0DAA311721D07CC100E4AA6B /* zh-Hans */, 435 | 0DAA311A21D07CC500E4AA6B /* zh-HK */, 436 | ); 437 | name = LaunchScreen.storyboard; 438 | sourceTree = ""; 439 | }; 440 | /* End PBXVariantGroup section */ 441 | 442 | /* Begin XCBuildConfiguration section */ 443 | 6003F5BD195388D20070C39A /* Debug */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | ALWAYS_SEARCH_USER_PATHS = NO; 447 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 448 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 449 | CLANG_CXX_LIBRARY = "libc++"; 450 | CLANG_ENABLE_MODULES = YES; 451 | CLANG_ENABLE_OBJC_ARC = YES; 452 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 453 | CLANG_WARN_BOOL_CONVERSION = YES; 454 | CLANG_WARN_COMMA = YES; 455 | CLANG_WARN_CONSTANT_CONVERSION = YES; 456 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 458 | CLANG_WARN_EMPTY_BODY = YES; 459 | CLANG_WARN_ENUM_CONVERSION = YES; 460 | CLANG_WARN_INFINITE_RECURSION = YES; 461 | CLANG_WARN_INT_CONVERSION = YES; 462 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 463 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 464 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 465 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 466 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 467 | CLANG_WARN_STRICT_PROTOTYPES = YES; 468 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 469 | CLANG_WARN_UNREACHABLE_CODE = YES; 470 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 471 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 472 | COPY_PHASE_STRIP = NO; 473 | ENABLE_STRICT_OBJC_MSGSEND = YES; 474 | ENABLE_TESTABILITY = YES; 475 | GCC_C_LANGUAGE_STANDARD = gnu99; 476 | GCC_DYNAMIC_NO_PIC = NO; 477 | GCC_NO_COMMON_BLOCKS = YES; 478 | GCC_OPTIMIZATION_LEVEL = 0; 479 | GCC_PREPROCESSOR_DEFINITIONS = ( 480 | "DEBUG=1", 481 | "$(inherited)", 482 | ); 483 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 484 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 485 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 486 | GCC_WARN_UNDECLARED_SELECTOR = YES; 487 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 488 | GCC_WARN_UNUSED_FUNCTION = YES; 489 | GCC_WARN_UNUSED_VARIABLE = YES; 490 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 491 | ONLY_ACTIVE_ARCH = YES; 492 | SDKROOT = iphoneos; 493 | TARGETED_DEVICE_FAMILY = "1,2"; 494 | }; 495 | name = Debug; 496 | }; 497 | 6003F5BE195388D20070C39A /* Release */ = { 498 | isa = XCBuildConfiguration; 499 | buildSettings = { 500 | ALWAYS_SEARCH_USER_PATHS = NO; 501 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 502 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 503 | CLANG_CXX_LIBRARY = "libc++"; 504 | CLANG_ENABLE_MODULES = YES; 505 | CLANG_ENABLE_OBJC_ARC = YES; 506 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 507 | CLANG_WARN_BOOL_CONVERSION = YES; 508 | CLANG_WARN_COMMA = YES; 509 | CLANG_WARN_CONSTANT_CONVERSION = YES; 510 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 511 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 512 | CLANG_WARN_EMPTY_BODY = YES; 513 | CLANG_WARN_ENUM_CONVERSION = YES; 514 | CLANG_WARN_INFINITE_RECURSION = YES; 515 | CLANG_WARN_INT_CONVERSION = YES; 516 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 517 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 518 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 519 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 520 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 521 | CLANG_WARN_STRICT_PROTOTYPES = YES; 522 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 523 | CLANG_WARN_UNREACHABLE_CODE = YES; 524 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 525 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 526 | COPY_PHASE_STRIP = YES; 527 | ENABLE_NS_ASSERTIONS = NO; 528 | ENABLE_STRICT_OBJC_MSGSEND = YES; 529 | GCC_C_LANGUAGE_STANDARD = gnu99; 530 | GCC_NO_COMMON_BLOCKS = YES; 531 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 532 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 533 | GCC_WARN_UNDECLARED_SELECTOR = YES; 534 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 535 | GCC_WARN_UNUSED_FUNCTION = YES; 536 | GCC_WARN_UNUSED_VARIABLE = YES; 537 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 538 | SDKROOT = iphoneos; 539 | TARGETED_DEVICE_FAMILY = "1,2"; 540 | VALIDATE_PRODUCT = YES; 541 | }; 542 | name = Release; 543 | }; 544 | 6003F5C0195388D20070C39A /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = 583F79870F796CABD701B3F2 /* Pods-HJViewStyle_Example.debug.xcconfig */; 547 | buildSettings = { 548 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 549 | DEVELOPMENT_TEAM = T84US44ZL8; 550 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 551 | GCC_PREFIX_HEADER = "HJViewStyle/HJViewStyle-Prefix.pch"; 552 | INFOPLIST_FILE = "HJViewStyle/HJViewStyle-Info.plist"; 553 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 554 | MODULE_NAME = ExampleApp; 555 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 556 | PRODUCT_NAME = "$(TARGET_NAME)"; 557 | WRAPPER_EXTENSION = app; 558 | }; 559 | name = Debug; 560 | }; 561 | 6003F5C1195388D20070C39A /* Release */ = { 562 | isa = XCBuildConfiguration; 563 | baseConfigurationReference = 2D069EEE93FC4A64BC2E939A /* Pods-HJViewStyle_Example.release.xcconfig */; 564 | buildSettings = { 565 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 566 | DEVELOPMENT_TEAM = T84US44ZL8; 567 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 568 | GCC_PREFIX_HEADER = "HJViewStyle/HJViewStyle-Prefix.pch"; 569 | INFOPLIST_FILE = "HJViewStyle/HJViewStyle-Info.plist"; 570 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 571 | MODULE_NAME = ExampleApp; 572 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 573 | PRODUCT_NAME = "$(TARGET_NAME)"; 574 | WRAPPER_EXTENSION = app; 575 | }; 576 | name = Release; 577 | }; 578 | 6003F5C3195388D20070C39A /* Debug */ = { 579 | isa = XCBuildConfiguration; 580 | baseConfigurationReference = 09A1DE81F17394F6C058EBB8 /* Pods-HJViewStyle_Tests.debug.xcconfig */; 581 | buildSettings = { 582 | BUNDLE_LOADER = "$(TEST_HOST)"; 583 | FRAMEWORK_SEARCH_PATHS = ( 584 | "$(SDKROOT)/Developer/Library/Frameworks", 585 | "$(inherited)", 586 | "$(DEVELOPER_FRAMEWORKS_DIR)", 587 | ); 588 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 589 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 590 | GCC_PREPROCESSOR_DEFINITIONS = ( 591 | "DEBUG=1", 592 | "$(inherited)", 593 | ); 594 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 595 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 596 | PRODUCT_NAME = "$(TARGET_NAME)"; 597 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HJViewStyle_Example.app/HJViewStyle_Example"; 598 | WRAPPER_EXTENSION = xctest; 599 | }; 600 | name = Debug; 601 | }; 602 | 6003F5C4195388D20070C39A /* Release */ = { 603 | isa = XCBuildConfiguration; 604 | baseConfigurationReference = 01E9145A411A9F53EFF73658 /* Pods-HJViewStyle_Tests.release.xcconfig */; 605 | buildSettings = { 606 | BUNDLE_LOADER = "$(TEST_HOST)"; 607 | FRAMEWORK_SEARCH_PATHS = ( 608 | "$(SDKROOT)/Developer/Library/Frameworks", 609 | "$(inherited)", 610 | "$(DEVELOPER_FRAMEWORKS_DIR)", 611 | ); 612 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 613 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 614 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 615 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 616 | PRODUCT_NAME = "$(TARGET_NAME)"; 617 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HJViewStyle_Example.app/HJViewStyle_Example"; 618 | WRAPPER_EXTENSION = xctest; 619 | }; 620 | name = Release; 621 | }; 622 | /* End XCBuildConfiguration section */ 623 | 624 | /* Begin XCConfigurationList section */ 625 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "HJViewStyle" */ = { 626 | isa = XCConfigurationList; 627 | buildConfigurations = ( 628 | 6003F5BD195388D20070C39A /* Debug */, 629 | 6003F5BE195388D20070C39A /* Release */, 630 | ); 631 | defaultConfigurationIsVisible = 0; 632 | defaultConfigurationName = Release; 633 | }; 634 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "HJViewStyle_Example" */ = { 635 | isa = XCConfigurationList; 636 | buildConfigurations = ( 637 | 6003F5C0195388D20070C39A /* Debug */, 638 | 6003F5C1195388D20070C39A /* Release */, 639 | ); 640 | defaultConfigurationIsVisible = 0; 641 | defaultConfigurationName = Release; 642 | }; 643 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "HJViewStyle_Tests" */ = { 644 | isa = XCConfigurationList; 645 | buildConfigurations = ( 646 | 6003F5C3195388D20070C39A /* Debug */, 647 | 6003F5C4195388D20070C39A /* Release */, 648 | ); 649 | defaultConfigurationIsVisible = 0; 650 | defaultConfigurationName = Release; 651 | }; 652 | /* End XCConfigurationList section */ 653 | }; 654 | rootObject = 6003F582195388D10070C39A /* Project object */; 655 | } 656 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 093888F1F30CBA558FA5B57B26265D3D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 11 | 4A8FC6ED76DA6D3234CFAEB5BFABB5FF /* UIView+HJViewStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = F9BEC023BB92D10710CB41B54472FABE /* UIView+HJViewStyle.m */; }; 12 | 5FF5F14C5EF7BC16220E0D60490669E6 /* UIView+HJViewStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 7761254A3A984B42A79766D571EFF714 /* UIView+HJViewStyle.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 6984A12BD69908FF4FDD5A7B108ED914 /* Pods-HJViewStyle_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = FC59264B68CCE030C844C0905FE23D9A /* Pods-HJViewStyle_Example-dummy.m */; }; 14 | 6AB0D8C9321058BAAB651A671DE0ED19 /* Pods-HJViewStyle_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0CD667C0A81E861093BE492B2C24F666 /* Pods-HJViewStyle_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 7CB6EFA3F79EB55B1733222F5F51703E /* Pods-HJViewStyle_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 56D6315DF08CC49332FB8686159C2398 /* Pods-HJViewStyle_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | 932AC96865DB6BB139179C1E440C3B83 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 17 | B1794E95BA2D41153CFCF3A7C002F9DC /* HJViewStyle-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E332F63CB23BCE6AD208504674074CA9 /* HJViewStyle-dummy.m */; }; 18 | BB02400417CF648D859B07981A9F2679 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 19 | C0082F30EAEDBC22B77E5B344B190691 /* Pods-HJViewStyle_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B190C227D7F01A3ED935F5B1CB085E93 /* Pods-HJViewStyle_Tests-dummy.m */; }; 20 | DAE3DCB82CBCCF4DE4A6FD980AE87E96 /* HJViewStyle-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 73ED18AEDD3E73CBF9662D7016DB681B /* HJViewStyle-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 354D2974EF748BE3393D966731002D22 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 90EFE96528EA4A06D4708C46257CF92A; 29 | remoteInfo = HJViewStyle; 30 | }; 31 | D5CE84C1B772846F7685EFF6B1640EAE /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = E7224CBEB8F8AC3CD0933F1A1CC7AFB9; 36 | remoteInfo = "Pods-HJViewStyle_Example"; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 05DB6C756681578A802017BDD01FA077 /* Pods-HJViewStyle_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-HJViewStyle_Example-frameworks.sh"; sourceTree = ""; }; 42 | 0CD667C0A81E861093BE492B2C24F666 /* Pods-HJViewStyle_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-HJViewStyle_Tests-umbrella.h"; sourceTree = ""; }; 43 | 0E58523C82D3E5B69BF4E48120D7640F /* Pods-HJViewStyle_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-HJViewStyle_Tests-acknowledgements.markdown"; sourceTree = ""; }; 44 | 1492FB1CC703456D1034661D5C0D8181 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 45 | 1500F5B06B5E07A9CD265C857509B12C /* Pods-HJViewStyle_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HJViewStyle_Example.release.xcconfig"; sourceTree = ""; }; 46 | 1F9307CE1131F47F3DE714976065C11F /* Pods-HJViewStyle_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-HJViewStyle_Tests-acknowledgements.plist"; sourceTree = ""; }; 47 | 2437CC20449EED26DFC71184B9ACA36C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 48 | 248EF20A67C09736E683122872027EFA /* Pods-HJViewStyle_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HJViewStyle_Example.debug.xcconfig"; sourceTree = ""; }; 49 | 286F25DDABBF109E430D3C882E131409 /* Pods_HJViewStyle_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_HJViewStyle_Example.framework; path = "Pods-HJViewStyle_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 2AD98CC9B7E929BB7FF3126E7F39C561 /* HJViewStyle.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = HJViewStyle.xcconfig; sourceTree = ""; }; 51 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 52 | 32A9824AB9EAB7717BDAD722AFF8B306 /* HJViewStyle-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "HJViewStyle-Info.plist"; sourceTree = ""; }; 53 | 449FE5A07EBA883606697877A1EE317A /* Pods-HJViewStyle_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-HJViewStyle_Example-acknowledgements.markdown"; sourceTree = ""; }; 54 | 46496FF0E626DFABA4B9F198EDB5CDF6 /* Pods-HJViewStyle_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-HJViewStyle_Example.modulemap"; sourceTree = ""; }; 55 | 56D6315DF08CC49332FB8686159C2398 /* Pods-HJViewStyle_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-HJViewStyle_Example-umbrella.h"; sourceTree = ""; }; 56 | 6261BB4164F8DA87D0DC86B93FAE1578 /* HJViewStyle.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = HJViewStyle.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 57 | 6E770CBE24EA96C33F4F953EBAB02FED /* Pods-HJViewStyle_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HJViewStyle_Tests.release.xcconfig"; sourceTree = ""; }; 58 | 73ED18AEDD3E73CBF9662D7016DB681B /* HJViewStyle-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "HJViewStyle-umbrella.h"; sourceTree = ""; }; 59 | 7761254A3A984B42A79766D571EFF714 /* UIView+HJViewStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIView+HJViewStyle.h"; path = "HJViewStyle/Classes/UIView+HJViewStyle.h"; sourceTree = ""; }; 60 | 7A42B367663AB6B252E9E49659CA91D4 /* Pods-HJViewStyle_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HJViewStyle_Tests.debug.xcconfig"; sourceTree = ""; }; 61 | 8F4553A58937C744BE46692FA20C46DD /* Pods_HJViewStyle_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_HJViewStyle_Tests.framework; path = "Pods-HJViewStyle_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 63 | AA0648C33D03F03FA107F38C1C3F54FF /* HJViewStyle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = HJViewStyle.framework; path = HJViewStyle.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | B190C227D7F01A3ED935F5B1CB085E93 /* Pods-HJViewStyle_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-HJViewStyle_Tests-dummy.m"; sourceTree = ""; }; 65 | BB29D88E9FD532D6C924FC88C7FBF37F /* HJViewStyle.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = HJViewStyle.modulemap; sourceTree = ""; }; 66 | C0C8D5A498BF88DF00E73EA3A9160B8A /* Pods-HJViewStyle_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-HJViewStyle_Example-acknowledgements.plist"; sourceTree = ""; }; 67 | E332F63CB23BCE6AD208504674074CA9 /* HJViewStyle-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "HJViewStyle-dummy.m"; sourceTree = ""; }; 68 | EA9652D831B21D482F282B98DAB81C26 /* Pods-HJViewStyle_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-HJViewStyle_Tests-Info.plist"; sourceTree = ""; }; 69 | F11DF93CDC47F8997592606CA5DC3D24 /* Pods-HJViewStyle_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-HJViewStyle_Tests.modulemap"; sourceTree = ""; }; 70 | F168E946790CE6F1B9183FC4DA8C1DC1 /* Pods-HJViewStyle_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-HJViewStyle_Example-Info.plist"; sourceTree = ""; }; 71 | F6294BC3E22C170F2320EAE3C96D3796 /* HJViewStyle-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "HJViewStyle-prefix.pch"; sourceTree = ""; }; 72 | F9BEC023BB92D10710CB41B54472FABE /* UIView+HJViewStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIView+HJViewStyle.m"; path = "HJViewStyle/Classes/UIView+HJViewStyle.m"; sourceTree = ""; }; 73 | FC59264B68CCE030C844C0905FE23D9A /* Pods-HJViewStyle_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-HJViewStyle_Example-dummy.m"; sourceTree = ""; }; 74 | /* End PBXFileReference section */ 75 | 76 | /* Begin PBXFrameworksBuildPhase section */ 77 | 351F20B0FD626B48C1DCCD0A09638D27 /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 932AC96865DB6BB139179C1E440C3B83 /* Foundation.framework in Frameworks */, 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | EA9D23C98ADABE2B23095AA7BD7890B3 /* Frameworks */ = { 86 | isa = PBXFrameworksBuildPhase; 87 | buildActionMask = 2147483647; 88 | files = ( 89 | 093888F1F30CBA558FA5B57B26265D3D /* Foundation.framework in Frameworks */, 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | F8B61E1FC0698E976C3868718BD4B5B1 /* Frameworks */ = { 94 | isa = PBXFrameworksBuildPhase; 95 | buildActionMask = 2147483647; 96 | files = ( 97 | BB02400417CF648D859B07981A9F2679 /* Foundation.framework in Frameworks */, 98 | ); 99 | runOnlyForDeploymentPostprocessing = 0; 100 | }; 101 | /* End PBXFrameworksBuildPhase section */ 102 | 103 | /* Begin PBXGroup section */ 104 | 23876F9044356F04253525E12CDEE653 /* Pods-HJViewStyle_Example */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 46496FF0E626DFABA4B9F198EDB5CDF6 /* Pods-HJViewStyle_Example.modulemap */, 108 | 449FE5A07EBA883606697877A1EE317A /* Pods-HJViewStyle_Example-acknowledgements.markdown */, 109 | C0C8D5A498BF88DF00E73EA3A9160B8A /* Pods-HJViewStyle_Example-acknowledgements.plist */, 110 | FC59264B68CCE030C844C0905FE23D9A /* Pods-HJViewStyle_Example-dummy.m */, 111 | 05DB6C756681578A802017BDD01FA077 /* Pods-HJViewStyle_Example-frameworks.sh */, 112 | F168E946790CE6F1B9183FC4DA8C1DC1 /* Pods-HJViewStyle_Example-Info.plist */, 113 | 56D6315DF08CC49332FB8686159C2398 /* Pods-HJViewStyle_Example-umbrella.h */, 114 | 248EF20A67C09736E683122872027EFA /* Pods-HJViewStyle_Example.debug.xcconfig */, 115 | 1500F5B06B5E07A9CD265C857509B12C /* Pods-HJViewStyle_Example.release.xcconfig */, 116 | ); 117 | name = "Pods-HJViewStyle_Example"; 118 | path = "Target Support Files/Pods-HJViewStyle_Example"; 119 | sourceTree = ""; 120 | }; 121 | 4419B7862FFF84AA6ACBE61737E0AA25 /* Products */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | AA0648C33D03F03FA107F38C1C3F54FF /* HJViewStyle.framework */, 125 | 286F25DDABBF109E430D3C882E131409 /* Pods_HJViewStyle_Example.framework */, 126 | 8F4553A58937C744BE46692FA20C46DD /* Pods_HJViewStyle_Tests.framework */, 127 | ); 128 | name = Products; 129 | sourceTree = ""; 130 | }; 131 | 46510AE2C9F9D39165C6A035A2BF2590 /* Pod */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 6261BB4164F8DA87D0DC86B93FAE1578 /* HJViewStyle.podspec */, 135 | 1492FB1CC703456D1034661D5C0D8181 /* LICENSE */, 136 | 2437CC20449EED26DFC71184B9ACA36C /* README.md */, 137 | ); 138 | name = Pod; 139 | sourceTree = ""; 140 | }; 141 | 6A506894575D85449556254586F165D0 /* Development Pods */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | DFBE9711119ABAA50031BEA252DFED52 /* HJViewStyle */, 145 | ); 146 | name = "Development Pods"; 147 | sourceTree = ""; 148 | }; 149 | 6AE79EE6AC7099E77F2DE7455A4D2704 /* Targets Support Files */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | 23876F9044356F04253525E12CDEE653 /* Pods-HJViewStyle_Example */, 153 | 8D5AA14222D4CB1A24F8DBE0CF03DFEF /* Pods-HJViewStyle_Tests */, 154 | ); 155 | name = "Targets Support Files"; 156 | sourceTree = ""; 157 | }; 158 | 8D5AA14222D4CB1A24F8DBE0CF03DFEF /* Pods-HJViewStyle_Tests */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | F11DF93CDC47F8997592606CA5DC3D24 /* Pods-HJViewStyle_Tests.modulemap */, 162 | 0E58523C82D3E5B69BF4E48120D7640F /* Pods-HJViewStyle_Tests-acknowledgements.markdown */, 163 | 1F9307CE1131F47F3DE714976065C11F /* Pods-HJViewStyle_Tests-acknowledgements.plist */, 164 | B190C227D7F01A3ED935F5B1CB085E93 /* Pods-HJViewStyle_Tests-dummy.m */, 165 | EA9652D831B21D482F282B98DAB81C26 /* Pods-HJViewStyle_Tests-Info.plist */, 166 | 0CD667C0A81E861093BE492B2C24F666 /* Pods-HJViewStyle_Tests-umbrella.h */, 167 | 7A42B367663AB6B252E9E49659CA91D4 /* Pods-HJViewStyle_Tests.debug.xcconfig */, 168 | 6E770CBE24EA96C33F4F953EBAB02FED /* Pods-HJViewStyle_Tests.release.xcconfig */, 169 | ); 170 | name = "Pods-HJViewStyle_Tests"; 171 | path = "Target Support Files/Pods-HJViewStyle_Tests"; 172 | sourceTree = ""; 173 | }; 174 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 175 | isa = PBXGroup; 176 | children = ( 177 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 178 | ); 179 | name = iOS; 180 | sourceTree = ""; 181 | }; 182 | CF1408CF629C7361332E53B88F7BD30C = { 183 | isa = PBXGroup; 184 | children = ( 185 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 186 | 6A506894575D85449556254586F165D0 /* Development Pods */, 187 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 188 | 4419B7862FFF84AA6ACBE61737E0AA25 /* Products */, 189 | 6AE79EE6AC7099E77F2DE7455A4D2704 /* Targets Support Files */, 190 | ); 191 | sourceTree = ""; 192 | }; 193 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 197 | ); 198 | name = Frameworks; 199 | sourceTree = ""; 200 | }; 201 | DFBE9711119ABAA50031BEA252DFED52 /* HJViewStyle */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | 7761254A3A984B42A79766D571EFF714 /* UIView+HJViewStyle.h */, 205 | F9BEC023BB92D10710CB41B54472FABE /* UIView+HJViewStyle.m */, 206 | 46510AE2C9F9D39165C6A035A2BF2590 /* Pod */, 207 | E4E395F8D1CAE71FCD5045640D9CFFCE /* Support Files */, 208 | ); 209 | name = HJViewStyle; 210 | path = ../..; 211 | sourceTree = ""; 212 | }; 213 | E4E395F8D1CAE71FCD5045640D9CFFCE /* Support Files */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | BB29D88E9FD532D6C924FC88C7FBF37F /* HJViewStyle.modulemap */, 217 | 2AD98CC9B7E929BB7FF3126E7F39C561 /* HJViewStyle.xcconfig */, 218 | E332F63CB23BCE6AD208504674074CA9 /* HJViewStyle-dummy.m */, 219 | 32A9824AB9EAB7717BDAD722AFF8B306 /* HJViewStyle-Info.plist */, 220 | F6294BC3E22C170F2320EAE3C96D3796 /* HJViewStyle-prefix.pch */, 221 | 73ED18AEDD3E73CBF9662D7016DB681B /* HJViewStyle-umbrella.h */, 222 | ); 223 | name = "Support Files"; 224 | path = "Example/Pods/Target Support Files/HJViewStyle"; 225 | sourceTree = ""; 226 | }; 227 | /* End PBXGroup section */ 228 | 229 | /* Begin PBXHeadersBuildPhase section */ 230 | 4EF70FAC86986E4B45CBCCF9CB6834AC /* Headers */ = { 231 | isa = PBXHeadersBuildPhase; 232 | buildActionMask = 2147483647; 233 | files = ( 234 | DAE3DCB82CBCCF4DE4A6FD980AE87E96 /* HJViewStyle-umbrella.h in Headers */, 235 | 5FF5F14C5EF7BC16220E0D60490669E6 /* UIView+HJViewStyle.h in Headers */, 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | }; 239 | 91D46290BB050F7A7D277F259CA9C9FB /* Headers */ = { 240 | isa = PBXHeadersBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | 7CB6EFA3F79EB55B1733222F5F51703E /* Pods-HJViewStyle_Example-umbrella.h in Headers */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | AA4270FB47BA0B540AE069C86950A2D2 /* Headers */ = { 248 | isa = PBXHeadersBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 6AB0D8C9321058BAAB651A671DE0ED19 /* Pods-HJViewStyle_Tests-umbrella.h in Headers */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | /* End PBXHeadersBuildPhase section */ 256 | 257 | /* Begin PBXNativeTarget section */ 258 | 3F5BC8AC800DB4AF567A6A298E747086 /* Pods-HJViewStyle_Tests */ = { 259 | isa = PBXNativeTarget; 260 | buildConfigurationList = 0626EF66BEAE1DF821B382E470BB1E4F /* Build configuration list for PBXNativeTarget "Pods-HJViewStyle_Tests" */; 261 | buildPhases = ( 262 | AA4270FB47BA0B540AE069C86950A2D2 /* Headers */, 263 | 545CA08EEA370941B6E1132537537EF6 /* Sources */, 264 | 351F20B0FD626B48C1DCCD0A09638D27 /* Frameworks */, 265 | 4A8800FCFE3BCBAD8A5D9E3F5C99F94E /* Resources */, 266 | ); 267 | buildRules = ( 268 | ); 269 | dependencies = ( 270 | 5B9A9203CA8DF0FA8AD5CC098866ED3F /* PBXTargetDependency */, 271 | ); 272 | name = "Pods-HJViewStyle_Tests"; 273 | productName = "Pods-HJViewStyle_Tests"; 274 | productReference = 8F4553A58937C744BE46692FA20C46DD /* Pods_HJViewStyle_Tests.framework */; 275 | productType = "com.apple.product-type.framework"; 276 | }; 277 | 90EFE96528EA4A06D4708C46257CF92A /* HJViewStyle */ = { 278 | isa = PBXNativeTarget; 279 | buildConfigurationList = 87EC507CF3C0BE17A2E9A6ED087D43FD /* Build configuration list for PBXNativeTarget "HJViewStyle" */; 280 | buildPhases = ( 281 | 4EF70FAC86986E4B45CBCCF9CB6834AC /* Headers */, 282 | F3A754B664ED22D074D0E8C7D5BA7016 /* Sources */, 283 | EA9D23C98ADABE2B23095AA7BD7890B3 /* Frameworks */, 284 | 36458ADDAF09C3076B07E2BF3E919E89 /* Resources */, 285 | ); 286 | buildRules = ( 287 | ); 288 | dependencies = ( 289 | ); 290 | name = HJViewStyle; 291 | productName = HJViewStyle; 292 | productReference = AA0648C33D03F03FA107F38C1C3F54FF /* HJViewStyle.framework */; 293 | productType = "com.apple.product-type.framework"; 294 | }; 295 | E7224CBEB8F8AC3CD0933F1A1CC7AFB9 /* Pods-HJViewStyle_Example */ = { 296 | isa = PBXNativeTarget; 297 | buildConfigurationList = 5A747F25FDA81E933E40DFA4D20F31E0 /* Build configuration list for PBXNativeTarget "Pods-HJViewStyle_Example" */; 298 | buildPhases = ( 299 | 91D46290BB050F7A7D277F259CA9C9FB /* Headers */, 300 | EA4092A8825B130F96405D1EDE2DCE43 /* Sources */, 301 | F8B61E1FC0698E976C3868718BD4B5B1 /* Frameworks */, 302 | 9899187B5309CC0B160499306FCA4B9C /* Resources */, 303 | ); 304 | buildRules = ( 305 | ); 306 | dependencies = ( 307 | F70FA3430814D2F737BD6BFAD95F0861 /* PBXTargetDependency */, 308 | ); 309 | name = "Pods-HJViewStyle_Example"; 310 | productName = "Pods-HJViewStyle_Example"; 311 | productReference = 286F25DDABBF109E430D3C882E131409 /* Pods_HJViewStyle_Example.framework */; 312 | productType = "com.apple.product-type.framework"; 313 | }; 314 | /* End PBXNativeTarget section */ 315 | 316 | /* Begin PBXProject section */ 317 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 318 | isa = PBXProject; 319 | attributes = { 320 | LastSwiftUpdateCheck = 1100; 321 | LastUpgradeCheck = 1100; 322 | }; 323 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 324 | compatibilityVersion = "Xcode 3.2"; 325 | developmentRegion = en; 326 | hasScannedForEncodings = 0; 327 | knownRegions = ( 328 | en, 329 | ); 330 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 331 | productRefGroup = 4419B7862FFF84AA6ACBE61737E0AA25 /* Products */; 332 | projectDirPath = ""; 333 | projectRoot = ""; 334 | targets = ( 335 | 90EFE96528EA4A06D4708C46257CF92A /* HJViewStyle */, 336 | E7224CBEB8F8AC3CD0933F1A1CC7AFB9 /* Pods-HJViewStyle_Example */, 337 | 3F5BC8AC800DB4AF567A6A298E747086 /* Pods-HJViewStyle_Tests */, 338 | ); 339 | }; 340 | /* End PBXProject section */ 341 | 342 | /* Begin PBXResourcesBuildPhase section */ 343 | 36458ADDAF09C3076B07E2BF3E919E89 /* Resources */ = { 344 | isa = PBXResourcesBuildPhase; 345 | buildActionMask = 2147483647; 346 | files = ( 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | }; 350 | 4A8800FCFE3BCBAD8A5D9E3F5C99F94E /* Resources */ = { 351 | isa = PBXResourcesBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | ); 355 | runOnlyForDeploymentPostprocessing = 0; 356 | }; 357 | 9899187B5309CC0B160499306FCA4B9C /* Resources */ = { 358 | isa = PBXResourcesBuildPhase; 359 | buildActionMask = 2147483647; 360 | files = ( 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | }; 364 | /* End PBXResourcesBuildPhase section */ 365 | 366 | /* Begin PBXSourcesBuildPhase section */ 367 | 545CA08EEA370941B6E1132537537EF6 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | C0082F30EAEDBC22B77E5B344B190691 /* Pods-HJViewStyle_Tests-dummy.m in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | EA4092A8825B130F96405D1EDE2DCE43 /* Sources */ = { 376 | isa = PBXSourcesBuildPhase; 377 | buildActionMask = 2147483647; 378 | files = ( 379 | 6984A12BD69908FF4FDD5A7B108ED914 /* Pods-HJViewStyle_Example-dummy.m in Sources */, 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | }; 383 | F3A754B664ED22D074D0E8C7D5BA7016 /* Sources */ = { 384 | isa = PBXSourcesBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | B1794E95BA2D41153CFCF3A7C002F9DC /* HJViewStyle-dummy.m in Sources */, 388 | 4A8FC6ED76DA6D3234CFAEB5BFABB5FF /* UIView+HJViewStyle.m in Sources */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | /* End PBXSourcesBuildPhase section */ 393 | 394 | /* Begin PBXTargetDependency section */ 395 | 5B9A9203CA8DF0FA8AD5CC098866ED3F /* PBXTargetDependency */ = { 396 | isa = PBXTargetDependency; 397 | name = "Pods-HJViewStyle_Example"; 398 | target = E7224CBEB8F8AC3CD0933F1A1CC7AFB9 /* Pods-HJViewStyle_Example */; 399 | targetProxy = D5CE84C1B772846F7685EFF6B1640EAE /* PBXContainerItemProxy */; 400 | }; 401 | F70FA3430814D2F737BD6BFAD95F0861 /* PBXTargetDependency */ = { 402 | isa = PBXTargetDependency; 403 | name = HJViewStyle; 404 | target = 90EFE96528EA4A06D4708C46257CF92A /* HJViewStyle */; 405 | targetProxy = 354D2974EF748BE3393D966731002D22 /* PBXContainerItemProxy */; 406 | }; 407 | /* End PBXTargetDependency section */ 408 | 409 | /* Begin XCBuildConfiguration section */ 410 | 0F575CE7AA691BEF25193EE0E6149CB0 /* Debug */ = { 411 | isa = XCBuildConfiguration; 412 | baseConfigurationReference = 248EF20A67C09736E683122872027EFA /* Pods-HJViewStyle_Example.debug.xcconfig */; 413 | buildSettings = { 414 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 415 | CODE_SIGN_IDENTITY = ""; 416 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 418 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 419 | CURRENT_PROJECT_VERSION = 1; 420 | DEFINES_MODULE = YES; 421 | DYLIB_COMPATIBILITY_VERSION = 1; 422 | DYLIB_CURRENT_VERSION = 1; 423 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 424 | INFOPLIST_FILE = "Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-Info.plist"; 425 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 426 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 427 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 428 | MACH_O_TYPE = staticlib; 429 | MODULEMAP_FILE = "Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example.modulemap"; 430 | OTHER_LDFLAGS = ""; 431 | OTHER_LIBTOOLFLAGS = ""; 432 | PODS_ROOT = "$(SRCROOT)"; 433 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 434 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 435 | SDKROOT = iphoneos; 436 | SKIP_INSTALL = YES; 437 | TARGETED_DEVICE_FAMILY = "1,2"; 438 | VERSIONING_SYSTEM = "apple-generic"; 439 | VERSION_INFO_PREFIX = ""; 440 | }; 441 | name = Debug; 442 | }; 443 | 8F17DC3A99F99FBAD606CE6963886315 /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | ALWAYS_SEARCH_USER_PATHS = NO; 447 | CLANG_ANALYZER_NONNULL = YES; 448 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 449 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 450 | CLANG_CXX_LIBRARY = "libc++"; 451 | CLANG_ENABLE_MODULES = YES; 452 | CLANG_ENABLE_OBJC_ARC = YES; 453 | CLANG_ENABLE_OBJC_WEAK = YES; 454 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 455 | CLANG_WARN_BOOL_CONVERSION = YES; 456 | CLANG_WARN_COMMA = YES; 457 | CLANG_WARN_CONSTANT_CONVERSION = YES; 458 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 459 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 460 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 461 | CLANG_WARN_EMPTY_BODY = YES; 462 | CLANG_WARN_ENUM_CONVERSION = YES; 463 | CLANG_WARN_INFINITE_RECURSION = YES; 464 | CLANG_WARN_INT_CONVERSION = YES; 465 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 466 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 467 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 468 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 469 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 470 | CLANG_WARN_STRICT_PROTOTYPES = YES; 471 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 472 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 473 | CLANG_WARN_UNREACHABLE_CODE = YES; 474 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 475 | COPY_PHASE_STRIP = NO; 476 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 477 | ENABLE_NS_ASSERTIONS = NO; 478 | ENABLE_STRICT_OBJC_MSGSEND = YES; 479 | GCC_C_LANGUAGE_STANDARD = gnu11; 480 | GCC_NO_COMMON_BLOCKS = YES; 481 | GCC_PREPROCESSOR_DEFINITIONS = ( 482 | "POD_CONFIGURATION_RELEASE=1", 483 | "$(inherited)", 484 | ); 485 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 486 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 487 | GCC_WARN_UNDECLARED_SELECTOR = YES; 488 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 489 | GCC_WARN_UNUSED_FUNCTION = YES; 490 | GCC_WARN_UNUSED_VARIABLE = YES; 491 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 492 | MTL_ENABLE_DEBUG_INFO = NO; 493 | MTL_FAST_MATH = YES; 494 | PRODUCT_NAME = "$(TARGET_NAME)"; 495 | STRIP_INSTALLED_PRODUCT = NO; 496 | SWIFT_COMPILATION_MODE = wholemodule; 497 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 498 | SWIFT_VERSION = 5.0; 499 | SYMROOT = "${SRCROOT}/../build"; 500 | }; 501 | name = Release; 502 | }; 503 | 916E0404255105F480DC4950B7625F7A /* Debug */ = { 504 | isa = XCBuildConfiguration; 505 | buildSettings = { 506 | ALWAYS_SEARCH_USER_PATHS = NO; 507 | CLANG_ANALYZER_NONNULL = YES; 508 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 509 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 510 | CLANG_CXX_LIBRARY = "libc++"; 511 | CLANG_ENABLE_MODULES = YES; 512 | CLANG_ENABLE_OBJC_ARC = YES; 513 | CLANG_ENABLE_OBJC_WEAK = YES; 514 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 515 | CLANG_WARN_BOOL_CONVERSION = YES; 516 | CLANG_WARN_COMMA = YES; 517 | CLANG_WARN_CONSTANT_CONVERSION = YES; 518 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 519 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 520 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 521 | CLANG_WARN_EMPTY_BODY = YES; 522 | CLANG_WARN_ENUM_CONVERSION = YES; 523 | CLANG_WARN_INFINITE_RECURSION = YES; 524 | CLANG_WARN_INT_CONVERSION = YES; 525 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 526 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 527 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 528 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 529 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 530 | CLANG_WARN_STRICT_PROTOTYPES = YES; 531 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 532 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 533 | CLANG_WARN_UNREACHABLE_CODE = YES; 534 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 535 | COPY_PHASE_STRIP = NO; 536 | DEBUG_INFORMATION_FORMAT = dwarf; 537 | ENABLE_STRICT_OBJC_MSGSEND = YES; 538 | ENABLE_TESTABILITY = YES; 539 | GCC_C_LANGUAGE_STANDARD = gnu11; 540 | GCC_DYNAMIC_NO_PIC = NO; 541 | GCC_NO_COMMON_BLOCKS = YES; 542 | GCC_OPTIMIZATION_LEVEL = 0; 543 | GCC_PREPROCESSOR_DEFINITIONS = ( 544 | "POD_CONFIGURATION_DEBUG=1", 545 | "DEBUG=1", 546 | "$(inherited)", 547 | ); 548 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 549 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 550 | GCC_WARN_UNDECLARED_SELECTOR = YES; 551 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 552 | GCC_WARN_UNUSED_FUNCTION = YES; 553 | GCC_WARN_UNUSED_VARIABLE = YES; 554 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 555 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 556 | MTL_FAST_MATH = YES; 557 | ONLY_ACTIVE_ARCH = YES; 558 | PRODUCT_NAME = "$(TARGET_NAME)"; 559 | STRIP_INSTALLED_PRODUCT = NO; 560 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 561 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 562 | SWIFT_VERSION = 5.0; 563 | SYMROOT = "${SRCROOT}/../build"; 564 | }; 565 | name = Debug; 566 | }; 567 | 96E0A1AF6E6E791970FD5F744612A5B9 /* Release */ = { 568 | isa = XCBuildConfiguration; 569 | baseConfigurationReference = 6E770CBE24EA96C33F4F953EBAB02FED /* Pods-HJViewStyle_Tests.release.xcconfig */; 570 | buildSettings = { 571 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 572 | CODE_SIGN_IDENTITY = ""; 573 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 574 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 575 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 576 | CURRENT_PROJECT_VERSION = 1; 577 | DEFINES_MODULE = YES; 578 | DYLIB_COMPATIBILITY_VERSION = 1; 579 | DYLIB_CURRENT_VERSION = 1; 580 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 581 | INFOPLIST_FILE = "Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-Info.plist"; 582 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 583 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 584 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 585 | MACH_O_TYPE = staticlib; 586 | MODULEMAP_FILE = "Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests.modulemap"; 587 | OTHER_LDFLAGS = ""; 588 | OTHER_LIBTOOLFLAGS = ""; 589 | PODS_ROOT = "$(SRCROOT)"; 590 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 591 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 592 | SDKROOT = iphoneos; 593 | SKIP_INSTALL = YES; 594 | TARGETED_DEVICE_FAMILY = "1,2"; 595 | VALIDATE_PRODUCT = YES; 596 | VERSIONING_SYSTEM = "apple-generic"; 597 | VERSION_INFO_PREFIX = ""; 598 | }; 599 | name = Release; 600 | }; 601 | 9BFC5EA111036E4225BCD39C4E3B8C45 /* Release */ = { 602 | isa = XCBuildConfiguration; 603 | baseConfigurationReference = 2AD98CC9B7E929BB7FF3126E7F39C561 /* HJViewStyle.xcconfig */; 604 | buildSettings = { 605 | CODE_SIGN_IDENTITY = ""; 606 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 607 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 608 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 609 | CURRENT_PROJECT_VERSION = 1; 610 | DEFINES_MODULE = YES; 611 | DYLIB_COMPATIBILITY_VERSION = 1; 612 | DYLIB_CURRENT_VERSION = 1; 613 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 614 | GCC_PREFIX_HEADER = "Target Support Files/HJViewStyle/HJViewStyle-prefix.pch"; 615 | INFOPLIST_FILE = "Target Support Files/HJViewStyle/HJViewStyle-Info.plist"; 616 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 617 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 618 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 619 | MODULEMAP_FILE = "Target Support Files/HJViewStyle/HJViewStyle.modulemap"; 620 | PRODUCT_MODULE_NAME = HJViewStyle; 621 | PRODUCT_NAME = HJViewStyle; 622 | SDKROOT = iphoneos; 623 | SKIP_INSTALL = YES; 624 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 625 | TARGETED_DEVICE_FAMILY = "1,2"; 626 | VALIDATE_PRODUCT = YES; 627 | VERSIONING_SYSTEM = "apple-generic"; 628 | VERSION_INFO_PREFIX = ""; 629 | }; 630 | name = Release; 631 | }; 632 | B5CA1215BB75281CAA287AD8A20EFB6D /* Debug */ = { 633 | isa = XCBuildConfiguration; 634 | baseConfigurationReference = 2AD98CC9B7E929BB7FF3126E7F39C561 /* HJViewStyle.xcconfig */; 635 | buildSettings = { 636 | CODE_SIGN_IDENTITY = ""; 637 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 638 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 639 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 640 | CURRENT_PROJECT_VERSION = 1; 641 | DEFINES_MODULE = YES; 642 | DYLIB_COMPATIBILITY_VERSION = 1; 643 | DYLIB_CURRENT_VERSION = 1; 644 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 645 | GCC_PREFIX_HEADER = "Target Support Files/HJViewStyle/HJViewStyle-prefix.pch"; 646 | INFOPLIST_FILE = "Target Support Files/HJViewStyle/HJViewStyle-Info.plist"; 647 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 648 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 649 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 650 | MODULEMAP_FILE = "Target Support Files/HJViewStyle/HJViewStyle.modulemap"; 651 | PRODUCT_MODULE_NAME = HJViewStyle; 652 | PRODUCT_NAME = HJViewStyle; 653 | SDKROOT = iphoneos; 654 | SKIP_INSTALL = YES; 655 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 656 | TARGETED_DEVICE_FAMILY = "1,2"; 657 | VERSIONING_SYSTEM = "apple-generic"; 658 | VERSION_INFO_PREFIX = ""; 659 | }; 660 | name = Debug; 661 | }; 662 | BB045EE828B9DCA6EB55B67D027F1341 /* Debug */ = { 663 | isa = XCBuildConfiguration; 664 | baseConfigurationReference = 7A42B367663AB6B252E9E49659CA91D4 /* Pods-HJViewStyle_Tests.debug.xcconfig */; 665 | buildSettings = { 666 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 667 | CODE_SIGN_IDENTITY = ""; 668 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 669 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 670 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 671 | CURRENT_PROJECT_VERSION = 1; 672 | DEFINES_MODULE = YES; 673 | DYLIB_COMPATIBILITY_VERSION = 1; 674 | DYLIB_CURRENT_VERSION = 1; 675 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 676 | INFOPLIST_FILE = "Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests-Info.plist"; 677 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 678 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 679 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 680 | MACH_O_TYPE = staticlib; 681 | MODULEMAP_FILE = "Target Support Files/Pods-HJViewStyle_Tests/Pods-HJViewStyle_Tests.modulemap"; 682 | OTHER_LDFLAGS = ""; 683 | OTHER_LIBTOOLFLAGS = ""; 684 | PODS_ROOT = "$(SRCROOT)"; 685 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 686 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 687 | SDKROOT = iphoneos; 688 | SKIP_INSTALL = YES; 689 | TARGETED_DEVICE_FAMILY = "1,2"; 690 | VERSIONING_SYSTEM = "apple-generic"; 691 | VERSION_INFO_PREFIX = ""; 692 | }; 693 | name = Debug; 694 | }; 695 | C1FF92BA5813DE303D5CA1902684925C /* Release */ = { 696 | isa = XCBuildConfiguration; 697 | baseConfigurationReference = 1500F5B06B5E07A9CD265C857509B12C /* Pods-HJViewStyle_Example.release.xcconfig */; 698 | buildSettings = { 699 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 700 | CODE_SIGN_IDENTITY = ""; 701 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 702 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 703 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 704 | CURRENT_PROJECT_VERSION = 1; 705 | DEFINES_MODULE = YES; 706 | DYLIB_COMPATIBILITY_VERSION = 1; 707 | DYLIB_CURRENT_VERSION = 1; 708 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 709 | INFOPLIST_FILE = "Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example-Info.plist"; 710 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 711 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 712 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 713 | MACH_O_TYPE = staticlib; 714 | MODULEMAP_FILE = "Target Support Files/Pods-HJViewStyle_Example/Pods-HJViewStyle_Example.modulemap"; 715 | OTHER_LDFLAGS = ""; 716 | OTHER_LIBTOOLFLAGS = ""; 717 | PODS_ROOT = "$(SRCROOT)"; 718 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 719 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 720 | SDKROOT = iphoneos; 721 | SKIP_INSTALL = YES; 722 | TARGETED_DEVICE_FAMILY = "1,2"; 723 | VALIDATE_PRODUCT = YES; 724 | VERSIONING_SYSTEM = "apple-generic"; 725 | VERSION_INFO_PREFIX = ""; 726 | }; 727 | name = Release; 728 | }; 729 | /* End XCBuildConfiguration section */ 730 | 731 | /* Begin XCConfigurationList section */ 732 | 0626EF66BEAE1DF821B382E470BB1E4F /* Build configuration list for PBXNativeTarget "Pods-HJViewStyle_Tests" */ = { 733 | isa = XCConfigurationList; 734 | buildConfigurations = ( 735 | BB045EE828B9DCA6EB55B67D027F1341 /* Debug */, 736 | 96E0A1AF6E6E791970FD5F744612A5B9 /* Release */, 737 | ); 738 | defaultConfigurationIsVisible = 0; 739 | defaultConfigurationName = Release; 740 | }; 741 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 742 | isa = XCConfigurationList; 743 | buildConfigurations = ( 744 | 916E0404255105F480DC4950B7625F7A /* Debug */, 745 | 8F17DC3A99F99FBAD606CE6963886315 /* Release */, 746 | ); 747 | defaultConfigurationIsVisible = 0; 748 | defaultConfigurationName = Release; 749 | }; 750 | 5A747F25FDA81E933E40DFA4D20F31E0 /* Build configuration list for PBXNativeTarget "Pods-HJViewStyle_Example" */ = { 751 | isa = XCConfigurationList; 752 | buildConfigurations = ( 753 | 0F575CE7AA691BEF25193EE0E6149CB0 /* Debug */, 754 | C1FF92BA5813DE303D5CA1902684925C /* Release */, 755 | ); 756 | defaultConfigurationIsVisible = 0; 757 | defaultConfigurationName = Release; 758 | }; 759 | 87EC507CF3C0BE17A2E9A6ED087D43FD /* Build configuration list for PBXNativeTarget "HJViewStyle" */ = { 760 | isa = XCConfigurationList; 761 | buildConfigurations = ( 762 | B5CA1215BB75281CAA287AD8A20EFB6D /* Debug */, 763 | 9BFC5EA111036E4225BCD39C4E3B8C45 /* Release */, 764 | ); 765 | defaultConfigurationIsVisible = 0; 766 | defaultConfigurationName = Release; 767 | }; 768 | /* End XCConfigurationList section */ 769 | }; 770 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 771 | } 772 | --------------------------------------------------------------------------------