├── .swift-version ├── Preview ├── CWShareViewDemo_1.png └── CWShareViewDemo_2.png ├── Demo ├── CWShareViewDemo │ ├── Assets.xcassets │ │ ├── Contents.json │ │ ├── Action_QQ.imageset │ │ │ ├── AS_QQ@2x.png │ │ │ ├── AS_QQ@3x.png │ │ │ └── Contents.json │ │ ├── nav_back.imageset │ │ │ ├── nav_back@2x.png │ │ │ ├── nav_back@3x.png │ │ │ └── Contents.json │ │ ├── Action_Copy.imageset │ │ │ ├── Action_Copy@2x.png │ │ │ ├── Action_Copy@3x.png │ │ │ └── Contents.json │ │ ├── Action_Font.imageset │ │ │ ├── Action_Font@2x.png │ │ │ ├── Action_Font@3x.png │ │ │ └── Contents.json │ │ ├── Action_Sina.imageset │ │ │ ├── Action_Sina@2x.png │ │ │ ├── Action_Sina@3x.png │ │ │ └── Contents.json │ │ ├── Action_Share.imageset │ │ │ ├── Action_Share@2x.png │ │ │ ├── Action_Share@3x.png │ │ │ └── Contents.json │ │ ├── Action_qzone.imageset │ │ │ ├── Action_qzone@2x.png │ │ │ ├── Action_qzone@3x.png │ │ │ └── Contents.json │ │ ├── Action_Moments.imageset │ │ │ ├── Action_Moments@2x.png │ │ │ ├── Action_Moments@3x.png │ │ │ └── Contents.json │ │ ├── Action_Refresh.imageset │ │ │ ├── Action_Refresh@2x.png │ │ │ ├── Action_Refresh@3x.png │ │ │ └── Contents.json │ │ ├── Action_Safari.imageset │ │ │ ├── Action_Safari@2x.png │ │ │ ├── Action_Safari@3x.png │ │ │ └── Contents.json │ │ ├── Action_MyFavAdd.imageset │ │ │ ├── Action_MyFavAdd@2x.png │ │ │ ├── Action_MyFavAdd@3x.png │ │ │ └── Contents.json │ │ ├── Action_Verified.imageset │ │ │ ├── Action_Verified@2x.png │ │ │ ├── Action_Verified@3x.png │ │ │ └── Contents.json │ │ ├── Action_facebook.imageset │ │ │ ├── Action_facebook@2x.png │ │ │ ├── Action_facebook@3x.png │ │ │ └── Contents.json │ │ ├── barbuttonicon_more.imageset │ │ │ ├── barbuttonicon_more@2x.png │ │ │ ├── barbuttonicon_more@3x.png │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── WebViewController.swift │ ├── AppDelegate.swift │ ├── ViewController.swift │ ├── LaunchScreen.storyboard │ └── Base.lproj │ │ └── Main.storyboard ├── CWShareViewDemo.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ ├── CWShareView.xcscheme │ │ │ └── CWShareViewDemo.xcscheme │ └── project.pbxproj ├── CWShareViewDemoTests │ ├── Info.plist │ └── CWShareViewDemoTests.swift └── CWShareView │ └── Info.plist ├── .travis.yml ├── Sources ├── CWShareView.h ├── ShareItem.swift ├── ShareItemCell.swift ├── ShareSheetCell.swift └── ShareView.swift ├── LICENSE ├── README.md ├── .gitignore └── CWShareView.podspec /.swift-version: -------------------------------------------------------------------------------- 1 | 4.0 2 | -------------------------------------------------------------------------------- /Preview/CWShareViewDemo_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Preview/CWShareViewDemo_1.png -------------------------------------------------------------------------------- /Preview/CWShareViewDemo_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Preview/CWShareViewDemo_2.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_QQ.imageset/AS_QQ@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_QQ.imageset/AS_QQ@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_QQ.imageset/AS_QQ@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_QQ.imageset/AS_QQ@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/nav_back.imageset/nav_back@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/nav_back.imageset/nav_back@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/nav_back.imageset/nav_back@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/nav_back.imageset/nav_back@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Copy.imageset/Action_Copy@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Copy.imageset/Action_Copy@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Copy.imageset/Action_Copy@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Copy.imageset/Action_Copy@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Font.imageset/Action_Font@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Font.imageset/Action_Font@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Font.imageset/Action_Font@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Font.imageset/Action_Font@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Sina.imageset/Action_Sina@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Sina.imageset/Action_Sina@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Sina.imageset/Action_Sina@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Sina.imageset/Action_Sina@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Share.imageset/Action_Share@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Share.imageset/Action_Share@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Share.imageset/Action_Share@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Share.imageset/Action_Share@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_qzone.imageset/Action_qzone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_qzone.imageset/Action_qzone@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_qzone.imageset/Action_qzone@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_qzone.imageset/Action_qzone@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Moments.imageset/Action_Moments@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Moments.imageset/Action_Moments@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Moments.imageset/Action_Moments@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Moments.imageset/Action_Moments@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Refresh.imageset/Action_Refresh@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Refresh.imageset/Action_Refresh@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Refresh.imageset/Action_Refresh@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Refresh.imageset/Action_Refresh@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Safari.imageset/Action_Safari@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Safari.imageset/Action_Safari@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Safari.imageset/Action_Safari@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Safari.imageset/Action_Safari@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Verified.imageset/Action_Verified@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Verified.imageset/Action_Verified@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Verified.imageset/Action_Verified@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_Verified.imageset/Action_Verified@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_facebook.imageset/Action_facebook@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_facebook.imageset/Action_facebook@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_facebook.imageset/Action_facebook@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/Action_facebook.imageset/Action_facebook@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@2x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwwise/CWShareView/HEAD/Demo/CWShareViewDemo/Assets.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@3x.png -------------------------------------------------------------------------------- /Demo/CWShareViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_QQ.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "AS_QQ@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "AS_QQ@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/nav_back.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "nav_back@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "nav_back@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Copy.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_Copy@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_Copy@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Font.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_Font@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_Font@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Share.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_Share@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_Share@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Sina.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_Sina@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_Sina@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_qzone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_qzone@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_qzone@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Moments.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_Moments@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_Moments@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Refresh.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_Refresh@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_Refresh@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Safari.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_Safari@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_Safari@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_MyFavAdd.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_MyFavAdd@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_MyFavAdd@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_Verified.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_Verified@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_Verified@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/Action_facebook.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Action_facebook@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Action_facebook@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/barbuttonicon_more.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "barbuttonicon_more@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "barbuttonicon_more@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | osx_image: xcode9 2 | language: swift 3 | 4 | env: 5 | global: 6 | - LANG=en_US.UTF-8 7 | - LC_ALL=en_US.UTF-8 8 | - XCODE_PROJECT=./Demo/CWShareViewDemo.xcodeproj 9 | matrix: 10 | - SCHEME="CWShareViewDemo" 11 | 12 | before_install: 13 | - gem install xcpretty --quiet 14 | 15 | script: 16 | - set -o pipefail 17 | - xcodebuild -project "$XCODE_PROJECT" -scheme "$SCHEME" -configuration Release clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c 18 | 19 | after_success: 20 | - sleep 5 21 | -------------------------------------------------------------------------------- /Sources/CWShareView.h: -------------------------------------------------------------------------------- 1 | // 2 | // CWShareView.h 3 | // CWShareView 4 | // 5 | // Created by chenwei on 2017/9/1. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for CWShareView. 12 | FOUNDATION_EXPORT double CWShareViewVersionNumber; 13 | 14 | //! Project version string for CWShareView. 15 | FOUNDATION_EXPORT const unsigned char CWShareViewVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Sources/ShareItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ShareItem.swift 3 | // CWShareView 4 | // 5 | // Created by chenwei on 2017/8/24. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public typealias SelectionHandler = ((ShareItem) -> Void) 12 | 13 | public class ShareItem: NSObject { 14 | /// 标题 15 | public var title: String 16 | /// 图片名称 17 | public var icon: UIImage 18 | /// 点击事件 19 | public var selectionHandler: SelectionHandler? 20 | 21 | public init(title: String, icon: UIImage, selectionHandler: SelectionHandler? = nil) { 22 | self.title = title 23 | self.icon = icon 24 | self.selectionHandler = selectionHandler 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Demo/CWShareView/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 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 cwwise 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemoTests/CWShareViewDemoTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CWShareViewDemoTests.swift 3 | // CWShareViewDemoTests 4 | // 5 | // Created by chenwei on 2017/9/1. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import CWShareViewDemo 11 | 12 | class CWShareViewDemoTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CWShareView 2 | 3 | > 仿写微信分享功能 4 | 5 | ## 目录 Contents 6 | 7 | * [环境 Requirements](#环境-requirements) 8 | * [功能 Feature](#功能-feature) 9 | * [预览 Preview](#预览-preview) 10 | * [使用 Usage](#使用-usage) 11 | * [许可 License](#许可-license) 12 | 13 | 14 | ## 环境 Requirements 15 | 16 | * iOS 8.0+ 17 | * Xcode 8.3+ 18 | * Swift3.1 19 | 20 | ## 功能 Feature 21 | - [x] 模仿微信ShareView 22 | - [x] 模仿九宫格分享View 23 | - [ ] 更好的自定义 24 | - [ ] 完善注释,更好的readme 25 | 26 | ## 预览 Preview 27 | 28 | ![CWShareViewDemo_1](https://github.com/cwwise/CWShareView/blob/master/Preview/CWShareViewDemo_1.png) 29 | ![CWShareViewDemo_2](https://github.com/cwwise/CWShareView/blob/master/Preview/CWShareViewDemo_2.png) 30 | 31 | 32 | ## 使用 Usage 33 | 34 | * 导入方法: 35 | 36 | * 方法一(推荐使用):[CocoaPods](https://cocoapods.org/):`pod 'CWShareView'` 37 | 38 | * 在相应位置导入头文件:`import CWShareView` 39 | 40 | * 调用下列任意方法即可: 41 | 42 | ```swift 43 | let clickedHandler = { (shareView: ShareView, indexPath: IndexPath) in 44 | print(indexPath.section, indexPath.row) 45 | } 46 | 47 | let title = "网页由mp.weixin.qq.com提供" 48 | let shareView = ShareView(title: title, 49 | shareItems: [shareList1, shareList2], 50 | clickedHandler: clickedHandler) 51 | shareView.show() 52 | ``` 53 | 54 | 55 | ## 许可 License 56 | 57 | CWShareView is released under the [MIT License](https://github.com/cwwise/CWShareView/blob/master/LICENSE). 58 | 59 | 60 | -------------------------------------------------------------------------------- /.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 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | .build/ 41 | 42 | # CocoaPods 43 | # 44 | # We recommend against adding the Pods directory to your .gitignore. However 45 | # you should judge for yourself, the pros and cons are mentioned at: 46 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 47 | # 48 | # Pods/ 49 | 50 | # Carthage 51 | # 52 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 53 | # Carthage/Checkouts 54 | 55 | Carthage/Build 56 | 57 | # fastlane 58 | # 59 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 60 | # screenshots whenever they are needed. 61 | # For more information about the recommended setup visit: 62 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 63 | 64 | fastlane/report.xml 65 | fastlane/Preview.html 66 | fastlane/screenshots 67 | fastlane/test_output 68 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/WebViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WebViewController.swift 3 | // CWShareViewDemo 4 | // 5 | // Created by chenwei on 2017/9/2. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import WebKit 11 | 12 | class WebViewController: UIViewController { 13 | 14 | private var webView: WKWebView! 15 | /// url 16 | var url: URL? 17 | 18 | override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { 19 | super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) 20 | } 21 | 22 | required init?(coder aDecoder: NSCoder) { 23 | super.init(coder: aDecoder) 24 | } 25 | 26 | required convenience init(url: URL?) { 27 | self.init() 28 | self.url = url 29 | } 30 | 31 | override func viewDidLoad() { 32 | super.viewDidLoad() 33 | self.view.addSubview(webView) 34 | // Do any additional setup after loading the view. 35 | } 36 | 37 | override func didReceiveMemoryWarning() { 38 | super.didReceiveMemoryWarning() 39 | // Dispose of any resources that can be recreated. 40 | } 41 | 42 | 43 | /* 44 | // MARK: - Navigation 45 | 46 | // In a storyboard-based application, you will often want to do a little preparation before navigation 47 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 48 | // Get the new view controller using segue.destinationViewController. 49 | // Pass the selected object to the new view controller. 50 | } 51 | */ 52 | 53 | } 54 | 55 | // MARK: - WKNavigationDelegate 56 | extension WebViewController: WKNavigationDelegate { 57 | //完成 58 | func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { 59 | 60 | 61 | 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CWShareViewDemo 4 | // 5 | // Created by chenwei on 2017/9/1. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Sources/ShareItemCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ShareItemCell.swift 3 | // CWShareView 4 | // 5 | // Created by chenwei on 2017/8/24. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ShareItemCell: UICollectionViewCell { 12 | /// 按钮 13 | var iconButton: UIButton 14 | /// 文字 15 | var titleLable: UILabel 16 | 17 | var cellClicked: ((ShareItemCell) -> Void)? 18 | 19 | var shareItem: ShareItem! { 20 | didSet { 21 | setupInfo() 22 | } 23 | } 24 | 25 | override init(frame: CGRect) { 26 | 27 | titleLable = UILabel() 28 | iconButton = UIButton(type: .custom) 29 | super.init(frame: frame) 30 | 31 | titleLable.numberOfLines = 2 32 | titleLable.font = UIFont.systemFont(ofSize: 11) 33 | titleLable.textColor = UIColor.darkGray 34 | titleLable.textAlignment = .center 35 | contentView.addSubview(titleLable) 36 | 37 | iconButton.addTarget(self, action: #selector(iconButtonClick), for: .touchUpInside) 38 | contentView.addSubview(iconButton) 39 | } 40 | 41 | func setupInfo() { 42 | titleLable.text = shareItem.title 43 | iconButton.setImage(shareItem.icon, for: .normal) 44 | } 45 | 46 | override func layoutSubviews() { 47 | super.layoutSubviews() 48 | 49 | let contentWidth = self.frame.width 50 | let iconButtonSize = shareItem.icon.size 51 | iconButton.frame = CGRect(x: (contentWidth-iconButtonSize.width)/2, 52 | y: 0, 53 | width: iconButtonSize.width, 54 | height: iconButtonSize.height) 55 | 56 | let size = titleLable.sizeThatFits(CGSize(width: contentWidth, height: CGFloat.greatestFiniteMagnitude)) 57 | titleLable.frame = CGRect(x: 0, y: iconButtonSize.height+8, 58 | width: contentWidth, height: ceil(size.height)) 59 | } 60 | 61 | // MARK: Action 62 | @objc func iconButtonClick() { 63 | if let shareItem = shareItem, let selectionHandler = shareItem.selectionHandler { 64 | selectionHandler(shareItem) 65 | } 66 | 67 | if let cellClicked = cellClicked { 68 | cellClicked(self) 69 | } 70 | } 71 | 72 | required init?(coder aDecoder: NSCoder) { 73 | fatalError("init(coder:) has not been implemented") 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Sources/ShareSheetCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ShareSheetCell.swift 3 | // CWShareViewDemo 4 | // 5 | // Created by chenwei on 2017/9/1. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ShareSheetCell: UICollectionViewCell { 12 | 13 | var shareItems: [ShareItem] = [] 14 | 15 | var collectionView: UICollectionView! 16 | 17 | var bottomLine: UIView! 18 | 19 | var sheetCellClicked: ((ShareSheetCell, Int) -> Void)? 20 | 21 | override init(frame: CGRect) { 22 | super.init(frame: frame) 23 | 24 | let layout = UICollectionViewFlowLayout() 25 | layout.minimumLineSpacing = 0 26 | layout.minimumInteritemSpacing = 0 27 | layout.sectionInset = UIEdgeInsets(top: 20, left: 10, bottom: 10, right: 10) 28 | layout.scrollDirection = .horizontal 29 | layout.itemSize = kItemSize 30 | 31 | collectionView = UICollectionView(frame: self.contentView.bounds, collectionViewLayout: layout) 32 | collectionView.dataSource = self 33 | collectionView.backgroundColor = UIColor.clear 34 | collectionView.showsVerticalScrollIndicator = false 35 | collectionView.alwaysBounceHorizontal = true 36 | collectionView.showsHorizontalScrollIndicator = false 37 | collectionView.register(ShareItemCell.self, forCellWithReuseIdentifier: "cell") 38 | self.contentView.addSubview(collectionView) 39 | 40 | bottomLine = UIView() 41 | bottomLine.backgroundColor = UIColor(hex6: 0xc3c3c3) 42 | let lineHeight = 1/UIScreen.main.scale 43 | bottomLine.frame = CGRect(x: 15, y: self.bounds.height, 44 | width: self.bounds.width-15, height: lineHeight) 45 | self.contentView.addSubview(bottomLine) 46 | } 47 | 48 | required init?(coder aDecoder: NSCoder) { 49 | fatalError("init(coder:) has not been implemented") 50 | } 51 | 52 | } 53 | 54 | extension ShareSheetCell: UICollectionViewDataSource { 55 | 56 | func numberOfSections(in collectionView: UICollectionView) -> Int { 57 | return 1 58 | } 59 | 60 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 61 | return shareItems.count 62 | } 63 | 64 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 65 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath) as! ShareItemCell 66 | cell.shareItem = shareItems[indexPath.row] 67 | cell.cellClicked = { (shareCell) in 68 | self.sheetCellClicked?(self, indexPath.row) 69 | } 70 | return cell 71 | } 72 | 73 | 74 | } 75 | -------------------------------------------------------------------------------- /CWShareView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod spec lint CWShareView.podspec' to ensure this is a 3 | # valid spec and to remove all comments including this before submitting the spec. 4 | # 5 | # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html 6 | # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | 11 | # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 12 | # 13 | # These will help people to find your library, and whilst it 14 | # can feel like a chore to fill in it's definitely to your advantage. The 15 | # summary should be tweet-length, and the description more in depth. 16 | # 17 | 18 | s.name = "CWShareView" 19 | s.version = "0.0.2" 20 | s.summary = "A simple, ornamental, but powerful shareView!" 21 | 22 | # This description is used to generate tags and improve search results. 23 | # * Think: What does it do? Why did you write it? What is the focus? 24 | # * Try to keep it short, snappy and to the point. 25 | # * Write the description between the DESC delimiters below. 26 | # * Finally, don't worry about the indent, CocoaPods strips it! 27 | s.description = <<-DESC 28 | A simple, ornamental, but powerful shareView! like wechat. 29 | DESC 30 | 31 | s.homepage = "https://github.com/cwwise/CWShareView" 32 | 33 | 34 | # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 35 | # 36 | # Licensing your code is important. See http://choosealicense.com for more info. 37 | # CocoaPods will detect a license file if there is a named LICENSE* 38 | # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. 39 | # 40 | 41 | s.license = { :type => "MIT", :file => "LICENSE" } 42 | 43 | s.author = { "ios_chenwei" => "wei18810109052@163.com" } 44 | # s.social_media_url = "http://twitter.com/ios_chenwei" 45 | 46 | # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 47 | # 48 | # If this Pod runs only on iOS or OS X, then specify the platform and 49 | # the deployment target. You can optionally include the target after the platform. 50 | # 51 | 52 | s.platform = :ios, "8.0" 53 | 54 | 55 | # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 56 | # 57 | # Specify the location from where the source should be retrieved. 58 | # Supports git, hg, bzr, svn and HTTP. 59 | # 60 | 61 | s.source = { :git => "https://github.com/cwwise/CWShareView.git", :tag => "#{s.version}" } 62 | 63 | 64 | s.source_files = "Sources", "*.{h,swift}" 65 | 66 | s.public_header_files = "Sources/*.h" 67 | 68 | 69 | 70 | # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 71 | # 72 | # Link your library with frameworks, or libraries. Libraries do not include 73 | # the lib prefix of their name. 74 | # 75 | 76 | s.framework = "UIKit" 77 | 78 | 79 | end 80 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CWShareViewDemo 4 | // 5 | // Created by chenwei on 2017/9/1. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CWShareView 11 | 12 | class ViewController: UIViewController { 13 | 14 | var shareList1: [ShareItem] = [] 15 | var shareList2: [ShareItem] = [] 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | setupList1() 20 | setupList2() 21 | } 22 | 23 | func setupList1() { 24 | 25 | let shareItem1 = ShareItem(title: "发送给朋友", icon: #imageLiteral(resourceName: "Action_Share")) 26 | let shareItem2 = ShareItem(title: "分享到朋友圈", icon: #imageLiteral(resourceName: "Action_Moments")) 27 | let shareItem3 = ShareItem(title: "收藏", icon: #imageLiteral(resourceName: "Action_MyFavAdd")) 28 | let shareItem4 = ShareItem(title: "在Safari中打开", icon: #imageLiteral(resourceName: "Action_Safari")) 29 | let shareItem5 = ShareItem(title: "分享到新浪", icon: #imageLiteral(resourceName: "Action_Sina")) 30 | let shareItem6 = ShareItem(title: "分享到QQ", icon: #imageLiteral(resourceName: "Action_QQ")) 31 | let shareItem7 = ShareItem(title: "分享到QQ空间", icon: #imageLiteral(resourceName: "Action_qzone")) 32 | let shareItem8 = ShareItem(title: "分享到Facebook", icon: #imageLiteral(resourceName: "Action_facebook")) 33 | 34 | shareList1.append(contentsOf: [shareItem1, shareItem2, shareItem3, shareItem4, 35 | shareItem5, shareItem6, shareItem7, shareItem8]) 36 | } 37 | 38 | func setupList2() { 39 | 40 | let shareItem1 = ShareItem(title: "查看公众号", icon: #imageLiteral(resourceName: "Action_Verified")) 41 | let shareItem2 = ShareItem(title: "复制链接", icon: #imageLiteral(resourceName: "Action_Copy")) 42 | let shareItem3 = ShareItem(title: "调整字体", icon: #imageLiteral(resourceName: "Action_Font")) 43 | let shareItem4 = ShareItem(title: "刷新", icon: #imageLiteral(resourceName: "Action_Refresh")) 44 | 45 | shareList2.append(contentsOf: [shareItem1, shareItem2, shareItem3, shareItem4]) 46 | } 47 | 48 | @IBAction func buttonClick(_ sender: UIButton) { 49 | 50 | let clickedHandler = { (shareView: ShareView, indexPath: IndexPath) in 51 | print(indexPath.section, indexPath.row) 52 | } 53 | 54 | let title = "网页由mp.weixin.qq.com提供" 55 | let shareView = ShareView(title: title, 56 | shareItems: [shareList1, shareList2], 57 | clickedHandler: clickedHandler) 58 | shareView.show() 59 | } 60 | 61 | @IBAction func weixinAction(_ sender: UIButton) { 62 | let clickedHandler = { (shareView: ShareView, indexPath: IndexPath) in 63 | print(indexPath.section, indexPath.row) 64 | } 65 | 66 | let shareView = ShareView(squareItems: shareList1, clickedHandler: clickedHandler) 67 | shareView.show() 68 | } 69 | override func didReceiveMemoryWarning() { 70 | super.didReceiveMemoryWarning() 71 | // Dispose of any resources that can be recreated. 72 | } 73 | 74 | 75 | } 76 | 77 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo.xcodeproj/xcshareddata/xcschemes/CWShareView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 47 | 48 | 54 | 55 | 56 | 57 | 58 | 59 | 65 | 66 | 72 | 73 | 74 | 75 | 77 | 78 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo.xcodeproj/xcshareddata/xcschemes/CWShareViewDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 34 | 40 | 41 | 42 | 43 | 44 | 50 | 51 | 52 | 53 | 54 | 55 | 66 | 68 | 74 | 75 | 76 | 77 | 78 | 79 | 85 | 87 | 93 | 94 | 95 | 96 | 98 | 99 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 26 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 34 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /Sources/ShareView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ShareView.swift 3 | // CWShareView 4 | // 5 | // Created by chenwei on 2017/8/24. 6 | // Copyright © 2017年 cwwise. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let kSheetCellHeight: CGFloat = 130 12 | let kItemSize = CGSize(width: 72, height: 100) 13 | 14 | private let kShareCellIdentifier = "cell" 15 | private let kShareSheetCellIdentifier = "sheetCell" 16 | 17 | private enum ShareViewType: Int { 18 | // 默认样式 19 | case normal 20 | // 九宫格 21 | case squared 22 | } 23 | 24 | public typealias ShareViewClickedHandler = ((ShareView, IndexPath) -> Void) 25 | 26 | public class ShareView: UIView { 27 | 28 | private var shareItems: [Any] = [] 29 | 30 | /// header 31 | public var headerView: UIView? 32 | 33 | private var containerView: UIView 34 | 35 | public var footerView: UIView? 36 | 37 | public var collectionViewLayout: UICollectionViewFlowLayout! 38 | 39 | private var backgroundView: UIView 40 | 41 | private var collectionView: UICollectionView! 42 | 43 | private var type: ShareViewType = .normal 44 | 45 | public var animationDuration: TimeInterval 46 | /// 点击事件 47 | public var clickedHandler: ShareViewClickedHandler? 48 | 49 | public convenience init() { 50 | let frame = UIScreen.main.bounds 51 | self.init(frame: frame) 52 | } 53 | 54 | public override init(frame: CGRect) { 55 | 56 | containerView = UIView() 57 | backgroundView = UIView() 58 | animationDuration = 0.3 59 | 60 | super.init(frame: frame) 61 | setupUI() 62 | } 63 | 64 | public convenience init(title: String? = nil, 65 | shareItems: [[ShareItem]], 66 | clickedHandler: ShareViewClickedHandler? = nil) { 67 | self.init() 68 | 69 | self.shareItems = shareItems 70 | self.clickedHandler = clickedHandler 71 | if let title = title { 72 | headerView = defaultHeaderView(with: title) 73 | } 74 | } 75 | 76 | public convenience init(squareItems: [ShareItem], clickedHandler: ShareViewClickedHandler? = nil) { 77 | self.init() 78 | self.type = .squared 79 | self.shareItems = squareItems 80 | self.clickedHandler = clickedHandler 81 | 82 | collectionViewLayout.sectionInset = UIEdgeInsets(top: 25, left: 25, bottom: 15, right: 25) 83 | collectionViewLayout.minimumInteritemSpacing = 10 84 | collectionViewLayout.minimumLineSpacing = 5 85 | collectionViewLayout.itemSize = kItemSize 86 | } 87 | 88 | func setupUI() { 89 | 90 | backgroundView.frame = self.bounds 91 | backgroundView.backgroundColor = UIColor.black 92 | backgroundView.alpha = 0 93 | addSubview(backgroundView) 94 | 95 | let tapGesture = UITapGestureRecognizer(target: self, action: #selector(backgroundViewClicked)) 96 | backgroundView.addGestureRecognizer(tapGesture) 97 | 98 | containerView.backgroundColor = UIColor(hex6: 0xE8E8E8) 99 | addSubview(containerView) 100 | 101 | // 默认布局 102 | footerView = defaultFooterView() 103 | 104 | collectionViewLayout = UICollectionViewFlowLayout() 105 | collectionViewLayout.scrollDirection = .vertical 106 | collectionViewLayout.minimumInteritemSpacing = 0 107 | collectionViewLayout.minimumLineSpacing = 0 108 | collectionViewLayout.itemSize = CGSize(width: self.frame.width, height: kSheetCellHeight) 109 | 110 | 111 | let frame = CGRect(x: 0, y: 0, width: self.frame.width, height: 0) 112 | collectionView = UICollectionView(frame: frame, collectionViewLayout: collectionViewLayout) 113 | collectionView.delegate = self 114 | collectionView.dataSource = self 115 | collectionView.showsVerticalScrollIndicator = false 116 | collectionView.showsHorizontalScrollIndicator = false 117 | collectionView.backgroundColor = UIColor.clear 118 | collectionView.register(ShareItemCell.self, forCellWithReuseIdentifier: kShareCellIdentifier) 119 | collectionView.register(ShareSheetCell.self, forCellWithReuseIdentifier: kShareSheetCellIdentifier) 120 | containerView.addSubview(collectionView) 121 | } 122 | 123 | // MARK: Header && Footer 124 | func defaultHeaderView(with title: String) -> UIView { 125 | 126 | let contentWidth = self.frame.width 127 | let headerView = UIView() 128 | headerView.frame = CGRect(x: 0, y: 0, width: contentWidth, height: 30) 129 | 130 | let titleLabel = UILabel() 131 | titleLabel.textColor = UIColor.darkGray 132 | titleLabel.textAlignment = .center 133 | titleLabel.font = UIFont.systemFont(ofSize: 11) 134 | titleLabel.frame = CGRect(x: 0, y: 13, width: contentWidth, height: 15) 135 | titleLabel.text = title 136 | 137 | headerView.addSubview(titleLabel) 138 | return headerView 139 | } 140 | 141 | func defaultFooterView() -> UIView { 142 | 143 | let footerView = UIView() 144 | footerView.frame = CGRect(x: 0, y: 0, width: self.frame.width, height: 50) 145 | 146 | // 取消按钮 147 | let buttonHighlightdColor = UIColor(hex6: 0xf7f7f7) 148 | let buttonColor = UIColor.black 149 | let cancelButton = UIButton(type: .custom) 150 | cancelButton.backgroundColor = UIColor.white 151 | cancelButton.frame = footerView.bounds 152 | cancelButton.addTarget(self, action: #selector(cancelButtonClicked), for: .touchUpInside) 153 | cancelButton.titleLabel?.font = UIFont.systemFont(ofSize: 17) 154 | cancelButton.setTitleColor(buttonColor, for: .normal) 155 | cancelButton.setBackgroundImage(UIImage(color: buttonHighlightdColor), for: .highlighted) 156 | cancelButton.setTitle("取消", for: .normal) 157 | footerView.addSubview(cancelButton) 158 | 159 | return footerView 160 | } 161 | 162 | @objc func cancelButtonClicked() { 163 | let indexPath = IndexPath(row: 0, section: 0) 164 | self.clickedHandler?(self, indexPath) 165 | dismiss() 166 | } 167 | 168 | @objc func backgroundViewClicked() { 169 | let indexPath = IndexPath(row: 0, section: 0) 170 | self.clickedHandler?(self, indexPath) 171 | dismiss() 172 | } 173 | 174 | /// 计算 175 | func setupSubViews() { 176 | 177 | var containerViewHeight: CGFloat = 0 178 | if let headerView = headerView { 179 | containerView.addSubview(headerView) 180 | headerView.frame = CGRect(x: 0, y: containerViewHeight, 181 | width: headerView.frame.width, height: headerView.frame.height) 182 | containerViewHeight += headerView.frame.height 183 | } 184 | 185 | 186 | let collectionViewHeight = calculateCollectionViewHeight() 187 | collectionView.frame = CGRect(x: 0, y: containerViewHeight, 188 | width: self.frame.width, height: collectionViewHeight) 189 | 190 | containerViewHeight += collectionView.frame.height 191 | 192 | 193 | if let footerView = footerView { 194 | containerView.addSubview(footerView) 195 | footerView.frame = CGRect(x: 0, y: containerViewHeight, 196 | width: footerView.frame.width, height: footerView.frame.height) 197 | containerViewHeight += footerView.frame.height 198 | } 199 | 200 | // 计算 containerView 201 | containerView.frame = CGRect(x: 0, y: self.frame.height, 202 | width: self.frame.width, height: containerViewHeight) 203 | } 204 | 205 | func calculateCollectionViewHeight() -> CGFloat { 206 | 207 | var collectionViewHeight: CGFloat = 0 208 | switch self.type { 209 | case .normal: 210 | collectionViewHeight = CGFloat(shareItems.count)*kSheetCellHeight 211 | case .squared: 212 | 213 | let contentWidth = self.collectionView.frame.width - collectionViewLayout.sectionInset.left - collectionViewLayout.sectionInset.right 214 | var left: CGFloat = 0 215 | let itemSize = collectionViewLayout.itemSize 216 | // 默认有一行 217 | collectionViewHeight += collectionViewLayout.sectionInset.top+collectionViewLayout.sectionInset.bottom 218 | collectionViewHeight += itemSize.height + collectionViewLayout.minimumLineSpacing 219 | 220 | for _ in self.shareItems as! [ShareItem] { 221 | // 如果大于collectionView width 则需要换行 222 | if left + itemSize.width > contentWidth { 223 | left = 0 224 | collectionViewHeight += itemSize.height + collectionViewLayout.minimumLineSpacing 225 | } 226 | left += itemSize.width + collectionViewLayout.minimumInteritemSpacing 227 | } 228 | 229 | } 230 | return collectionViewHeight 231 | } 232 | 233 | public func show() { 234 | let window = UIApplication.shared.keyWindow! 235 | window.addSubview(self) 236 | 237 | setupSubViews() 238 | 239 | UIView.animate(withDuration: animationDuration, delay: 0, options: .curveEaseOut, animations: { 240 | 241 | self.backgroundView.alpha = 0.3 242 | let frame = self.containerView.frame 243 | self.containerView.frame = frame.offsetBy(dx: 0, dy: -frame.height) 244 | 245 | }) { (finshed) in 246 | 247 | } 248 | } 249 | 250 | required public init?(coder aDecoder: NSCoder) { 251 | fatalError("init(coder:) has not been implemented") 252 | } 253 | 254 | deinit { 255 | 256 | } 257 | } 258 | 259 | // MARK: - 显示 隐藏 260 | extension ShareView { 261 | 262 | func dismiss() { 263 | 264 | UIView.animate(withDuration: animationDuration, delay: 0, options: .curveEaseOut, animations: { 265 | 266 | self.backgroundView.alpha = 0.0 267 | let frame = self.containerView.frame 268 | self.containerView.frame = frame.offsetBy(dx: 0, dy: frame.height) 269 | 270 | }) { (finshed) in 271 | self.removeFromSuperview() 272 | } 273 | 274 | } 275 | 276 | } 277 | 278 | extension ShareView: UICollectionViewDataSource, UICollectionViewDelegateFlowLayout { 279 | 280 | public func numberOfSections(in collectionView: UICollectionView) -> Int { 281 | return 1 282 | } 283 | 284 | public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 285 | return shareItems.count 286 | } 287 | 288 | public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 289 | 290 | switch self.type { 291 | case .normal: 292 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kShareSheetCellIdentifier, for: indexPath) as! ShareSheetCell 293 | cell.shareItems = shareItems[indexPath.row] as! [ShareItem] 294 | cell.sheetCellClicked = { (sheetCell, index) in 295 | let currentIndexPath = collectionView.indexPath(for: sheetCell)! 296 | let selectIndexPath = IndexPath(row: index, section: currentIndexPath.row+1) 297 | self.clickedHandler?(self, selectIndexPath) 298 | self.dismiss() 299 | } 300 | return cell 301 | 302 | case .squared: 303 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kShareCellIdentifier, for: indexPath) as! ShareItemCell 304 | 305 | cell.shareItem = shareItems[indexPath.row] as! ShareItem 306 | cell.cellClicked = { (shareCell) in 307 | let currentIndexPath = collectionView.indexPath(for: shareCell)! 308 | let selectIndexPath = IndexPath(row: currentIndexPath.row, section: currentIndexPath.section+1) 309 | self.clickedHandler?(self, selectIndexPath) 310 | self.dismiss() 311 | } 312 | 313 | return cell 314 | } 315 | 316 | } 317 | } 318 | 319 | extension UIColor { 320 | convenience init(hex6: UInt32, alpha: Float = 1) { 321 | let divisor = CGFloat(255) 322 | let red = CGFloat((hex6 & 0xFF0000) >> 16) / divisor 323 | let green = CGFloat((hex6 & 0x00FF00) >> 8) / divisor 324 | let blue = CGFloat((hex6 & 0x0000FF) >> 0) / divisor 325 | self.init(red: red, green: green, blue: blue, alpha: CGFloat(alpha)) 326 | } 327 | } 328 | 329 | extension UIImage { 330 | 331 | convenience init?(color: UIColor, size: CGSize = CGSize(width: 10, height: 10)) { 332 | let rect = CGRect(x: 0, y: 0, width: size.width, height: size.height) 333 | UIGraphicsBeginImageContextWithOptions(rect.size, false, UIScreen.main.scale) 334 | 335 | let context = UIGraphicsGetCurrentContext() 336 | context?.setFillColor(color.cgColor) 337 | context?.fill(rect) 338 | 339 | self.init(cgImage:(UIGraphicsGetImageFromCurrentImageContext()?.cgImage!)!) 340 | UIGraphicsEndImageContext() 341 | } 342 | 343 | } 344 | -------------------------------------------------------------------------------- /Demo/CWShareViewDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1FF3488B1F58F14500BD0112 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FF3488A1F58F14500BD0112 /* AppDelegate.swift */; }; 11 | 1FF3488D1F58F14500BD0112 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FF3488C1F58F14500BD0112 /* ViewController.swift */; }; 12 | 1FF348901F58F14500BD0112 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1FF3488E1F58F14500BD0112 /* Main.storyboard */; }; 13 | 1FF348921F58F14500BD0112 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1FF348911F58F14500BD0112 /* Assets.xcassets */; }; 14 | 1FF348A01F58F14500BD0112 /* CWShareViewDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FF3489F1F58F14500BD0112 /* CWShareViewDemoTests.swift */; }; 15 | 1FF348BD1F58F1AB00BD0112 /* CWShareView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FF348B61F58F1AB00BD0112 /* CWShareView.framework */; }; 16 | 1FF348BE1F58F1AB00BD0112 /* CWShareView.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 1FF348B61F58F1AB00BD0112 /* CWShareView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 1FF348C81F58F1D400BD0112 /* ShareItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FF348C41F58F1D400BD0112 /* ShareItem.swift */; }; 18 | 1FF348C91F58F1D400BD0112 /* CWShareView.h in Headers */ = {isa = PBXBuildFile; fileRef = 1FF348C51F58F1D400BD0112 /* CWShareView.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | 1FF348CA1F58F1D400BD0112 /* ShareView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FF348C61F58F1D400BD0112 /* ShareView.swift */; }; 20 | 1FF348CB1F58F1D400BD0112 /* ShareItemCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FF348C71F58F1D400BD0112 /* ShareItemCell.swift */; }; 21 | 1FF348D31F59258300BD0112 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1FF348D21F59258300BD0112 /* LaunchScreen.storyboard */; }; 22 | 1FF348D91F599AE400BD0112 /* ShareSheetCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FF348D81F599AE400BD0112 /* ShareSheetCell.swift */; }; 23 | 1FF348E31F5A4F2600BD0112 /* WebViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FF348E21F5A4F2600BD0112 /* WebViewController.swift */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 1FF3489C1F58F14500BD0112 /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 1FF3487F1F58F14500BD0112 /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 1FF348861F58F14500BD0112; 32 | remoteInfo = CWShareViewDemo; 33 | }; 34 | 1FF348BB1F58F1AB00BD0112 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = 1FF3487F1F58F14500BD0112 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = 1FF348B51F58F1AB00BD0112; 39 | remoteInfo = CWShareView; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXCopyFilesBuildPhase section */ 44 | 1FF348C21F58F1AB00BD0112 /* Embed Frameworks */ = { 45 | isa = PBXCopyFilesBuildPhase; 46 | buildActionMask = 2147483647; 47 | dstPath = ""; 48 | dstSubfolderSpec = 10; 49 | files = ( 50 | 1FF348BE1F58F1AB00BD0112 /* CWShareView.framework in Embed Frameworks */, 51 | ); 52 | name = "Embed Frameworks"; 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXCopyFilesBuildPhase section */ 56 | 57 | /* Begin PBXFileReference section */ 58 | 1FF348871F58F14500BD0112 /* CWShareViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CWShareViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 1FF3488A1F58F14500BD0112 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 60 | 1FF3488C1F58F14500BD0112 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 61 | 1FF3488F1F58F14500BD0112 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 62 | 1FF348911F58F14500BD0112 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 63 | 1FF348961F58F14500BD0112 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 64 | 1FF3489B1F58F14500BD0112 /* CWShareViewDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CWShareViewDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | 1FF3489F1F58F14500BD0112 /* CWShareViewDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CWShareViewDemoTests.swift; sourceTree = ""; }; 66 | 1FF348A11F58F14500BD0112 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 67 | 1FF348B61F58F1AB00BD0112 /* CWShareView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CWShareView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | 1FF348B91F58F1AB00BD0112 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 69 | 1FF348C41F58F1D400BD0112 /* ShareItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ShareItem.swift; sourceTree = ""; }; 70 | 1FF348C51F58F1D400BD0112 /* CWShareView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CWShareView.h; sourceTree = ""; }; 71 | 1FF348C61F58F1D400BD0112 /* ShareView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ShareView.swift; sourceTree = ""; }; 72 | 1FF348C71F58F1D400BD0112 /* ShareItemCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ShareItemCell.swift; sourceTree = ""; }; 73 | 1FF348D21F59258300BD0112 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = ""; }; 74 | 1FF348D81F599AE400BD0112 /* ShareSheetCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ShareSheetCell.swift; sourceTree = ""; }; 75 | 1FF348E21F5A4F2600BD0112 /* WebViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebViewController.swift; sourceTree = ""; }; 76 | /* End PBXFileReference section */ 77 | 78 | /* Begin PBXFrameworksBuildPhase section */ 79 | 1FF348841F58F14500BD0112 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | 1FF348BD1F58F1AB00BD0112 /* CWShareView.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | 1FF348981F58F14500BD0112 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | 1FF348B21F58F1AB00BD0112 /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | ); 99 | runOnlyForDeploymentPostprocessing = 0; 100 | }; 101 | /* End PBXFrameworksBuildPhase section */ 102 | 103 | /* Begin PBXGroup section */ 104 | 1FF3487E1F58F14500BD0112 = { 105 | isa = PBXGroup; 106 | children = ( 107 | 1FF348891F58F14500BD0112 /* CWShareViewDemo */, 108 | 1FF3489E1F58F14500BD0112 /* CWShareViewDemoTests */, 109 | 1FF348B71F58F1AB00BD0112 /* CWShareView */, 110 | 1FF348881F58F14500BD0112 /* Products */, 111 | ); 112 | sourceTree = ""; 113 | }; 114 | 1FF348881F58F14500BD0112 /* Products */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 1FF348871F58F14500BD0112 /* CWShareViewDemo.app */, 118 | 1FF3489B1F58F14500BD0112 /* CWShareViewDemoTests.xctest */, 119 | 1FF348B61F58F1AB00BD0112 /* CWShareView.framework */, 120 | ); 121 | name = Products; 122 | sourceTree = ""; 123 | }; 124 | 1FF348891F58F14500BD0112 /* CWShareViewDemo */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 1FF3488A1F58F14500BD0112 /* AppDelegate.swift */, 128 | 1FF3488C1F58F14500BD0112 /* ViewController.swift */, 129 | 1FF348E21F5A4F2600BD0112 /* WebViewController.swift */, 130 | 1FF3488E1F58F14500BD0112 /* Main.storyboard */, 131 | 1FF348D21F59258300BD0112 /* LaunchScreen.storyboard */, 132 | 1FF348911F58F14500BD0112 /* Assets.xcassets */, 133 | 1FF348961F58F14500BD0112 /* Info.plist */, 134 | ); 135 | path = CWShareViewDemo; 136 | sourceTree = ""; 137 | }; 138 | 1FF3489E1F58F14500BD0112 /* CWShareViewDemoTests */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 1FF3489F1F58F14500BD0112 /* CWShareViewDemoTests.swift */, 142 | 1FF348A11F58F14500BD0112 /* Info.plist */, 143 | ); 144 | path = CWShareViewDemoTests; 145 | sourceTree = ""; 146 | }; 147 | 1FF348B71F58F1AB00BD0112 /* CWShareView */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 1FF348C31F58F1D400BD0112 /* Sources */, 151 | 1FF348B91F58F1AB00BD0112 /* Info.plist */, 152 | ); 153 | path = CWShareView; 154 | sourceTree = ""; 155 | }; 156 | 1FF348C31F58F1D400BD0112 /* Sources */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 1FF348C51F58F1D400BD0112 /* CWShareView.h */, 160 | 1FF348C61F58F1D400BD0112 /* ShareView.swift */, 161 | 1FF348D81F599AE400BD0112 /* ShareSheetCell.swift */, 162 | 1FF348C71F58F1D400BD0112 /* ShareItemCell.swift */, 163 | 1FF348C41F58F1D400BD0112 /* ShareItem.swift */, 164 | ); 165 | name = Sources; 166 | path = ../../Sources; 167 | sourceTree = ""; 168 | }; 169 | /* End PBXGroup section */ 170 | 171 | /* Begin PBXHeadersBuildPhase section */ 172 | 1FF348B31F58F1AB00BD0112 /* Headers */ = { 173 | isa = PBXHeadersBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | 1FF348C91F58F1D400BD0112 /* CWShareView.h in Headers */, 177 | ); 178 | runOnlyForDeploymentPostprocessing = 0; 179 | }; 180 | /* End PBXHeadersBuildPhase section */ 181 | 182 | /* Begin PBXNativeTarget section */ 183 | 1FF348861F58F14500BD0112 /* CWShareViewDemo */ = { 184 | isa = PBXNativeTarget; 185 | buildConfigurationList = 1FF348A41F58F14500BD0112 /* Build configuration list for PBXNativeTarget "CWShareViewDemo" */; 186 | buildPhases = ( 187 | 1FF348831F58F14500BD0112 /* Sources */, 188 | 1FF348841F58F14500BD0112 /* Frameworks */, 189 | 1FF348851F58F14500BD0112 /* Resources */, 190 | 1FF348C21F58F1AB00BD0112 /* Embed Frameworks */, 191 | ); 192 | buildRules = ( 193 | ); 194 | dependencies = ( 195 | 1FF348BC1F58F1AB00BD0112 /* PBXTargetDependency */, 196 | ); 197 | name = CWShareViewDemo; 198 | productName = CWShareViewDemo; 199 | productReference = 1FF348871F58F14500BD0112 /* CWShareViewDemo.app */; 200 | productType = "com.apple.product-type.application"; 201 | }; 202 | 1FF3489A1F58F14500BD0112 /* CWShareViewDemoTests */ = { 203 | isa = PBXNativeTarget; 204 | buildConfigurationList = 1FF348A71F58F14500BD0112 /* Build configuration list for PBXNativeTarget "CWShareViewDemoTests" */; 205 | buildPhases = ( 206 | 1FF348971F58F14500BD0112 /* Sources */, 207 | 1FF348981F58F14500BD0112 /* Frameworks */, 208 | 1FF348991F58F14500BD0112 /* Resources */, 209 | ); 210 | buildRules = ( 211 | ); 212 | dependencies = ( 213 | 1FF3489D1F58F14500BD0112 /* PBXTargetDependency */, 214 | ); 215 | name = CWShareViewDemoTests; 216 | productName = CWShareViewDemoTests; 217 | productReference = 1FF3489B1F58F14500BD0112 /* CWShareViewDemoTests.xctest */; 218 | productType = "com.apple.product-type.bundle.unit-test"; 219 | }; 220 | 1FF348B51F58F1AB00BD0112 /* CWShareView */ = { 221 | isa = PBXNativeTarget; 222 | buildConfigurationList = 1FF348BF1F58F1AB00BD0112 /* Build configuration list for PBXNativeTarget "CWShareView" */; 223 | buildPhases = ( 224 | 1FF348B11F58F1AB00BD0112 /* Sources */, 225 | 1FF348B21F58F1AB00BD0112 /* Frameworks */, 226 | 1FF348B31F58F1AB00BD0112 /* Headers */, 227 | 1FF348B41F58F1AB00BD0112 /* Resources */, 228 | ); 229 | buildRules = ( 230 | ); 231 | dependencies = ( 232 | ); 233 | name = CWShareView; 234 | productName = CWShareView; 235 | productReference = 1FF348B61F58F1AB00BD0112 /* CWShareView.framework */; 236 | productType = "com.apple.product-type.framework"; 237 | }; 238 | /* End PBXNativeTarget section */ 239 | 240 | /* Begin PBXProject section */ 241 | 1FF3487F1F58F14500BD0112 /* Project object */ = { 242 | isa = PBXProject; 243 | attributes = { 244 | LastSwiftUpdateCheck = 0830; 245 | LastUpgradeCheck = 0900; 246 | ORGANIZATIONNAME = cwwise; 247 | TargetAttributes = { 248 | 1FF348861F58F14500BD0112 = { 249 | CreatedOnToolsVersion = 8.3.3; 250 | LastSwiftMigration = 0900; 251 | ProvisioningStyle = Automatic; 252 | }; 253 | 1FF3489A1F58F14500BD0112 = { 254 | CreatedOnToolsVersion = 8.3.3; 255 | LastSwiftMigration = 0900; 256 | ProvisioningStyle = Automatic; 257 | TestTargetID = 1FF348861F58F14500BD0112; 258 | }; 259 | 1FF348B51F58F1AB00BD0112 = { 260 | CreatedOnToolsVersion = 8.3.3; 261 | LastSwiftMigration = 0900; 262 | ProvisioningStyle = Automatic; 263 | }; 264 | }; 265 | }; 266 | buildConfigurationList = 1FF348821F58F14500BD0112 /* Build configuration list for PBXProject "CWShareViewDemo" */; 267 | compatibilityVersion = "Xcode 3.2"; 268 | developmentRegion = English; 269 | hasScannedForEncodings = 0; 270 | knownRegions = ( 271 | en, 272 | Base, 273 | ); 274 | mainGroup = 1FF3487E1F58F14500BD0112; 275 | productRefGroup = 1FF348881F58F14500BD0112 /* Products */; 276 | projectDirPath = ""; 277 | projectRoot = ""; 278 | targets = ( 279 | 1FF348861F58F14500BD0112 /* CWShareViewDemo */, 280 | 1FF3489A1F58F14500BD0112 /* CWShareViewDemoTests */, 281 | 1FF348B51F58F1AB00BD0112 /* CWShareView */, 282 | ); 283 | }; 284 | /* End PBXProject section */ 285 | 286 | /* Begin PBXResourcesBuildPhase section */ 287 | 1FF348851F58F14500BD0112 /* Resources */ = { 288 | isa = PBXResourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | 1FF348921F58F14500BD0112 /* Assets.xcassets in Resources */, 292 | 1FF348D31F59258300BD0112 /* LaunchScreen.storyboard in Resources */, 293 | 1FF348901F58F14500BD0112 /* Main.storyboard in Resources */, 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | }; 297 | 1FF348991F58F14500BD0112 /* Resources */ = { 298 | isa = PBXResourcesBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | }; 304 | 1FF348B41F58F1AB00BD0112 /* Resources */ = { 305 | isa = PBXResourcesBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | /* End PBXResourcesBuildPhase section */ 312 | 313 | /* Begin PBXSourcesBuildPhase section */ 314 | 1FF348831F58F14500BD0112 /* Sources */ = { 315 | isa = PBXSourcesBuildPhase; 316 | buildActionMask = 2147483647; 317 | files = ( 318 | 1FF3488D1F58F14500BD0112 /* ViewController.swift in Sources */, 319 | 1FF348E31F5A4F2600BD0112 /* WebViewController.swift in Sources */, 320 | 1FF3488B1F58F14500BD0112 /* AppDelegate.swift in Sources */, 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | }; 324 | 1FF348971F58F14500BD0112 /* Sources */ = { 325 | isa = PBXSourcesBuildPhase; 326 | buildActionMask = 2147483647; 327 | files = ( 328 | 1FF348A01F58F14500BD0112 /* CWShareViewDemoTests.swift in Sources */, 329 | ); 330 | runOnlyForDeploymentPostprocessing = 0; 331 | }; 332 | 1FF348B11F58F1AB00BD0112 /* Sources */ = { 333 | isa = PBXSourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | 1FF348CA1F58F1D400BD0112 /* ShareView.swift in Sources */, 337 | 1FF348C81F58F1D400BD0112 /* ShareItem.swift in Sources */, 338 | 1FF348CB1F58F1D400BD0112 /* ShareItemCell.swift in Sources */, 339 | 1FF348D91F599AE400BD0112 /* ShareSheetCell.swift in Sources */, 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | }; 343 | /* End PBXSourcesBuildPhase section */ 344 | 345 | /* Begin PBXTargetDependency section */ 346 | 1FF3489D1F58F14500BD0112 /* PBXTargetDependency */ = { 347 | isa = PBXTargetDependency; 348 | target = 1FF348861F58F14500BD0112 /* CWShareViewDemo */; 349 | targetProxy = 1FF3489C1F58F14500BD0112 /* PBXContainerItemProxy */; 350 | }; 351 | 1FF348BC1F58F1AB00BD0112 /* PBXTargetDependency */ = { 352 | isa = PBXTargetDependency; 353 | target = 1FF348B51F58F1AB00BD0112 /* CWShareView */; 354 | targetProxy = 1FF348BB1F58F1AB00BD0112 /* PBXContainerItemProxy */; 355 | }; 356 | /* End PBXTargetDependency section */ 357 | 358 | /* Begin PBXVariantGroup section */ 359 | 1FF3488E1F58F14500BD0112 /* Main.storyboard */ = { 360 | isa = PBXVariantGroup; 361 | children = ( 362 | 1FF3488F1F58F14500BD0112 /* Base */, 363 | ); 364 | name = Main.storyboard; 365 | sourceTree = ""; 366 | }; 367 | /* End PBXVariantGroup section */ 368 | 369 | /* Begin XCBuildConfiguration section */ 370 | 1FF348A21F58F14500BD0112 /* Debug */ = { 371 | isa = XCBuildConfiguration; 372 | buildSettings = { 373 | ALWAYS_SEARCH_USER_PATHS = NO; 374 | CLANG_ANALYZER_NONNULL = YES; 375 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 376 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 377 | CLANG_CXX_LIBRARY = "libc++"; 378 | CLANG_ENABLE_MODULES = YES; 379 | CLANG_ENABLE_OBJC_ARC = YES; 380 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 381 | CLANG_WARN_BOOL_CONVERSION = YES; 382 | CLANG_WARN_COMMA = YES; 383 | CLANG_WARN_CONSTANT_CONVERSION = YES; 384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 385 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 386 | CLANG_WARN_EMPTY_BODY = YES; 387 | CLANG_WARN_ENUM_CONVERSION = YES; 388 | CLANG_WARN_INFINITE_RECURSION = YES; 389 | CLANG_WARN_INT_CONVERSION = YES; 390 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 394 | CLANG_WARN_STRICT_PROTOTYPES = YES; 395 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 396 | CLANG_WARN_UNREACHABLE_CODE = YES; 397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 399 | COPY_PHASE_STRIP = NO; 400 | DEBUG_INFORMATION_FORMAT = dwarf; 401 | ENABLE_STRICT_OBJC_MSGSEND = YES; 402 | ENABLE_TESTABILITY = YES; 403 | GCC_C_LANGUAGE_STANDARD = gnu99; 404 | GCC_DYNAMIC_NO_PIC = NO; 405 | GCC_NO_COMMON_BLOCKS = YES; 406 | GCC_OPTIMIZATION_LEVEL = 0; 407 | GCC_PREPROCESSOR_DEFINITIONS = ( 408 | "DEBUG=1", 409 | "$(inherited)", 410 | ); 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 418 | MTL_ENABLE_DEBUG_INFO = YES; 419 | ONLY_ACTIVE_ARCH = YES; 420 | SDKROOT = iphoneos; 421 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 422 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 423 | }; 424 | name = Debug; 425 | }; 426 | 1FF348A31F58F14500BD0112 /* Release */ = { 427 | isa = XCBuildConfiguration; 428 | buildSettings = { 429 | ALWAYS_SEARCH_USER_PATHS = NO; 430 | CLANG_ANALYZER_NONNULL = YES; 431 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 432 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 433 | CLANG_CXX_LIBRARY = "libc++"; 434 | CLANG_ENABLE_MODULES = YES; 435 | CLANG_ENABLE_OBJC_ARC = YES; 436 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 437 | CLANG_WARN_BOOL_CONVERSION = YES; 438 | CLANG_WARN_COMMA = YES; 439 | CLANG_WARN_CONSTANT_CONVERSION = YES; 440 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 441 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 442 | CLANG_WARN_EMPTY_BODY = YES; 443 | CLANG_WARN_ENUM_CONVERSION = YES; 444 | CLANG_WARN_INFINITE_RECURSION = YES; 445 | CLANG_WARN_INT_CONVERSION = YES; 446 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 448 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 449 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 450 | CLANG_WARN_STRICT_PROTOTYPES = YES; 451 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 452 | CLANG_WARN_UNREACHABLE_CODE = YES; 453 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 454 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 455 | COPY_PHASE_STRIP = NO; 456 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 457 | ENABLE_NS_ASSERTIONS = NO; 458 | ENABLE_STRICT_OBJC_MSGSEND = YES; 459 | GCC_C_LANGUAGE_STANDARD = gnu99; 460 | GCC_NO_COMMON_BLOCKS = YES; 461 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 462 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 463 | GCC_WARN_UNDECLARED_SELECTOR = YES; 464 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 465 | GCC_WARN_UNUSED_FUNCTION = YES; 466 | GCC_WARN_UNUSED_VARIABLE = YES; 467 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 468 | MTL_ENABLE_DEBUG_INFO = NO; 469 | SDKROOT = iphoneos; 470 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 471 | VALIDATE_PRODUCT = YES; 472 | }; 473 | name = Release; 474 | }; 475 | 1FF348A51F58F14500BD0112 /* Debug */ = { 476 | isa = XCBuildConfiguration; 477 | buildSettings = { 478 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 479 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 480 | FRAMEWORK_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/CWShareViewDemo", 483 | ); 484 | INFOPLIST_FILE = CWShareViewDemo/Info.plist; 485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 486 | PRODUCT_BUNDLE_IDENTIFIER = com.cwwise.CWShareViewDemo; 487 | PRODUCT_NAME = "$(TARGET_NAME)"; 488 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 489 | SWIFT_VERSION = 4.0; 490 | }; 491 | name = Debug; 492 | }; 493 | 1FF348A61F58F14500BD0112 /* Release */ = { 494 | isa = XCBuildConfiguration; 495 | buildSettings = { 496 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 497 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 498 | FRAMEWORK_SEARCH_PATHS = ( 499 | "$(inherited)", 500 | "$(PROJECT_DIR)/CWShareViewDemo", 501 | ); 502 | INFOPLIST_FILE = CWShareViewDemo/Info.plist; 503 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 504 | PRODUCT_BUNDLE_IDENTIFIER = com.cwwise.CWShareViewDemo; 505 | PRODUCT_NAME = "$(TARGET_NAME)"; 506 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 507 | SWIFT_VERSION = 4.0; 508 | }; 509 | name = Release; 510 | }; 511 | 1FF348A81F58F14500BD0112 /* Debug */ = { 512 | isa = XCBuildConfiguration; 513 | buildSettings = { 514 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 515 | BUNDLE_LOADER = "$(TEST_HOST)"; 516 | INFOPLIST_FILE = CWShareViewDemoTests/Info.plist; 517 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 518 | PRODUCT_BUNDLE_IDENTIFIER = com.cwwise.CWShareViewDemoTests; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 521 | SWIFT_VERSION = 4.0; 522 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CWShareViewDemo.app/CWShareViewDemo"; 523 | }; 524 | name = Debug; 525 | }; 526 | 1FF348A91F58F14500BD0112 /* Release */ = { 527 | isa = XCBuildConfiguration; 528 | buildSettings = { 529 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 530 | BUNDLE_LOADER = "$(TEST_HOST)"; 531 | INFOPLIST_FILE = CWShareViewDemoTests/Info.plist; 532 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 533 | PRODUCT_BUNDLE_IDENTIFIER = com.cwwise.CWShareViewDemoTests; 534 | PRODUCT_NAME = "$(TARGET_NAME)"; 535 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 536 | SWIFT_VERSION = 4.0; 537 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CWShareViewDemo.app/CWShareViewDemo"; 538 | }; 539 | name = Release; 540 | }; 541 | 1FF348C01F58F1AB00BD0112 /* Debug */ = { 542 | isa = XCBuildConfiguration; 543 | buildSettings = { 544 | CODE_SIGN_IDENTITY = ""; 545 | CURRENT_PROJECT_VERSION = 1; 546 | DEFINES_MODULE = YES; 547 | DYLIB_COMPATIBILITY_VERSION = 1; 548 | DYLIB_CURRENT_VERSION = 1; 549 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 550 | INFOPLIST_FILE = CWShareView/Info.plist; 551 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 552 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 553 | PRODUCT_BUNDLE_IDENTIFIER = com.cwwise.CWShareView; 554 | PRODUCT_NAME = "$(TARGET_NAME)"; 555 | SKIP_INSTALL = YES; 556 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 557 | SWIFT_VERSION = 4.0; 558 | TARGETED_DEVICE_FAMILY = "1,2"; 559 | VERSIONING_SYSTEM = "apple-generic"; 560 | VERSION_INFO_PREFIX = ""; 561 | }; 562 | name = Debug; 563 | }; 564 | 1FF348C11F58F1AB00BD0112 /* Release */ = { 565 | isa = XCBuildConfiguration; 566 | buildSettings = { 567 | CODE_SIGN_IDENTITY = ""; 568 | CURRENT_PROJECT_VERSION = 1; 569 | DEFINES_MODULE = YES; 570 | DYLIB_COMPATIBILITY_VERSION = 1; 571 | DYLIB_CURRENT_VERSION = 1; 572 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 573 | INFOPLIST_FILE = CWShareView/Info.plist; 574 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 575 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 576 | PRODUCT_BUNDLE_IDENTIFIER = com.cwwise.CWShareView; 577 | PRODUCT_NAME = "$(TARGET_NAME)"; 578 | SKIP_INSTALL = YES; 579 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 580 | SWIFT_VERSION = 4.0; 581 | TARGETED_DEVICE_FAMILY = "1,2"; 582 | VERSIONING_SYSTEM = "apple-generic"; 583 | VERSION_INFO_PREFIX = ""; 584 | }; 585 | name = Release; 586 | }; 587 | /* End XCBuildConfiguration section */ 588 | 589 | /* Begin XCConfigurationList section */ 590 | 1FF348821F58F14500BD0112 /* Build configuration list for PBXProject "CWShareViewDemo" */ = { 591 | isa = XCConfigurationList; 592 | buildConfigurations = ( 593 | 1FF348A21F58F14500BD0112 /* Debug */, 594 | 1FF348A31F58F14500BD0112 /* Release */, 595 | ); 596 | defaultConfigurationIsVisible = 0; 597 | defaultConfigurationName = Release; 598 | }; 599 | 1FF348A41F58F14500BD0112 /* Build configuration list for PBXNativeTarget "CWShareViewDemo" */ = { 600 | isa = XCConfigurationList; 601 | buildConfigurations = ( 602 | 1FF348A51F58F14500BD0112 /* Debug */, 603 | 1FF348A61F58F14500BD0112 /* Release */, 604 | ); 605 | defaultConfigurationIsVisible = 0; 606 | defaultConfigurationName = Release; 607 | }; 608 | 1FF348A71F58F14500BD0112 /* Build configuration list for PBXNativeTarget "CWShareViewDemoTests" */ = { 609 | isa = XCConfigurationList; 610 | buildConfigurations = ( 611 | 1FF348A81F58F14500BD0112 /* Debug */, 612 | 1FF348A91F58F14500BD0112 /* Release */, 613 | ); 614 | defaultConfigurationIsVisible = 0; 615 | defaultConfigurationName = Release; 616 | }; 617 | 1FF348BF1F58F1AB00BD0112 /* Build configuration list for PBXNativeTarget "CWShareView" */ = { 618 | isa = XCConfigurationList; 619 | buildConfigurations = ( 620 | 1FF348C01F58F1AB00BD0112 /* Debug */, 621 | 1FF348C11F58F1AB00BD0112 /* Release */, 622 | ); 623 | defaultConfigurationIsVisible = 0; 624 | defaultConfigurationName = Release; 625 | }; 626 | /* End XCConfigurationList section */ 627 | }; 628 | rootObject = 1FF3487F1F58F14500BD0112 /* Project object */; 629 | } 630 | --------------------------------------------------------------------------------