├── Screenshot └── KUIPopOver.gif ├── Example.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── project.pbxproj ├── KUIPopOver.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── xcshareddata │ └── xcschemes │ │ └── KUIPopOver.xcscheme └── project.pbxproj ├── .travis.yml ├── KUIPopOver ├── KUIPopOver.h ├── Info.plist └── Classes │ ├── KUIPopOverUsable.swift │ └── KUIPopOver.swift ├── Package.swift ├── Example ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.swift └── ViewController.swift ├── LICENSE ├── .gitignore ├── README.md └── KUIPopOver.podspec /Screenshot/KUIPopOver.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kofktu/KUIPopOver/HEAD/Screenshot/KUIPopOver.gif -------------------------------------------------------------------------------- /Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /KUIPopOver.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /KUIPopOver.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | os: osx 2 | osx_image: xcode10.3 3 | sudo: false 4 | language: objective-c 5 | 6 | env: 7 | - SDK="iphoneos12.4" 8 | 9 | script: 10 | - xcodebuild -project KUIPopOver.xcodeproj clean build -sdk $SDK -configuration Debug CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO 11 | 12 | before_install: 13 | - xcodebuild -showsdks 14 | -------------------------------------------------------------------------------- /KUIPopOver/KUIPopOver.h: -------------------------------------------------------------------------------- 1 | // 2 | // KUIPopOver.h 3 | // KUIPopOver 4 | // 5 | // Created by kofktu on 2017. 8. 31.. 6 | // Copyright © 2017년 Kofktu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for KUIPopOver. 12 | FOUNDATION_EXPORT double KUIPopOverVersionNumber; 13 | 14 | //! Project version string for KUIPopOver. 15 | FOUNDATION_EXPORT const unsigned char KUIPopOverVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.5 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "KUIPopOver", 6 | platforms: [ 7 | .iOS(.v8) 8 | ], 9 | products: [ 10 | .library( 11 | name: "KUIPopOver", 12 | targets: ["KUIPopOver"] 13 | ), 14 | ], 15 | dependencies: [], 16 | targets: [ 17 | .target( 18 | name: "KUIPopOver", 19 | dependencies: [], 20 | path: "KUIPopOver", 21 | sources: ["Classes"], 22 | publicHeadersPath: "Classes" 23 | ) 24 | ], 25 | swiftLanguageVersions: [.v5] 26 | ) 27 | -------------------------------------------------------------------------------- /Example/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /KUIPopOver/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.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /KUIPopOver/Classes/KUIPopOverUsable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KUIPopOverUsable.swift 3 | // KUIPopOver 4 | // 5 | // Created by kofktu on 2017. 8. 31.. 6 | // Copyright © 2017년 Kofktu. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | public protocol KUIPopOverUsable { 13 | 14 | var contentSize: CGSize { get } 15 | var contentView: UIView { get } 16 | var popOverBackgroundColor: UIColor? { get } 17 | var arrowDirection: UIPopoverArrowDirection { get } 18 | } 19 | 20 | extension KUIPopOverUsable { 21 | 22 | public var popOverBackgroundColor: UIColor? { 23 | return nil 24 | } 25 | 26 | public var arrowDirection: UIPopoverArrowDirection { 27 | return .any 28 | } 29 | } 30 | 31 | public extension UIPopoverArrowDirection { 32 | static var none: UIPopoverArrowDirection { 33 | return UIPopoverArrowDirection(rawValue: 0) 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Taeun Kim 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 | -------------------------------------------------------------------------------- /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 | APPL 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleVersion 20 | 1.0.0 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 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Example 4 | // 5 | // Created by kofktu on 2017. 8. 31.. 6 | // Copyright © 2017년 Kofktu. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> 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 | -------------------------------------------------------------------------------- /KUIPopOver.xcodeproj/xcshareddata/xcschemes/KUIPopOver.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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KUIPopOver 2 | 3 | ![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg) 4 | [![CocoaPods](http://img.shields.io/cocoapods/v/KUIPopOver.svg?style=flat)](http://cocoapods.org/?q=name%3AKUIPopOver%20author%3AKofktu) 5 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 6 | 7 | - Easy to use PopOver in iOS (iPhone, iPad) 8 | 9 | ![alt tag](Screenshot/KUIPopOver.gif) 10 | 11 | ## Requirements 12 | - iOS 8.0+ 13 | - Swift 4.2 ([1.1.2](https://github.com/Kofktu/KUIPopOver/tree/1.1.2)) 14 | - Swift 4.0 ([1.0.4](https://github.com/Kofktu/KUIPopOver/tree/1.0.4)) 15 | - Swift 3.0 ([0.0.4](https://github.com/Kofktu/KUIPopOver/tree/0.0.4)) 16 | 17 | ## Installation 18 | 19 | #### CocoaPods 20 | KUIPopOver is available through [CocoaPods](http://cocoapods.org). To install 21 | it, simply add the following line to your Podfile: 22 | 23 | ```ruby 24 | pod 'KUIPopOver' 25 | ``` 26 | 27 | #### Carthage 28 | For iOS 8+ projects with [Carthage](https://github.com/Carthage/Carthage) 29 | 30 | ``` 31 | github "Kofktu/KUIPopOver" 32 | ``` 33 | 34 | ## Usage 35 | 36 | #### Before 37 | 38 | ```swift 39 | let popOverViewController = DefaultPopOverViewController() 40 | popOverViewController.preferredContentSize = CGSize(width: 200.0, height: 300.0) 41 | popOverViewController.popoverPresentationController?.sourceView = sender 42 | 43 | let customView = CustomPopOverView(frame: CGRect(origin: CGPoint(x: 0.0, y: 0.0), size: CGSize(width: 200.0, height: 300.0))) 44 | popOverViewController.view.addSubview(customView) 45 | popOverViewController.popoverPresentationController?.sourceRect = sender.bounds 46 | present(popOverViewController, animated: true, completion: nil) 47 | ``` 48 | 49 | #### KUIPopOverUsable 50 | 51 | ```swift 52 | public protocol KUIPopOverUsable { 53 | var contentSize: CGSize { get } 54 | var contentView: UIView { get } 55 | var popOverBackgroundColor: UIColor? { get } 56 | var arrowDirection: UIPopoverArrowDirection { get } 57 | } 58 | 59 | ``` 60 | 61 | #### UIView 62 | 63 | ```swift 64 | public func showPopover(sourceView: UIView, sourceRect: CGRect?, completion: ShowPopoverCompletion?) 65 | public func showPopover(barButtonItem: UIBarButtonItem, completion: ShowPopoverCompletion?) 66 | public func dismissPopover(animated: Bool, completion: DismissPopoverCompletion?) 67 | ``` 68 | 69 | #### UIViewController 70 | 71 | ```swift 72 | public func showPopover(sourceView: UIView, sourceRect: CGRect?, completion: ShowPopoverCompletion?) 73 | public func showPopoverWithNavigationController(sourceView: UIView, sourceRect: CGRect?, completion: ShowPopoverCompletion?) 74 | public func showPopover(barButtonItem: UIBarButtonItem, completion: ShowPopoverCompletion?) 75 | public func showPopoverWithNavigationController(barButtonItem: UIBarButtonItem, completion: ShowPopoverCompletion?) 76 | public func dismissPopover(animated: Bool, completion: DismissPopoverCompletion?) 77 | ``` 78 | 79 | ## At a Glance 80 | 81 | #### UIView 82 | 83 | ```swift 84 | class CustomView: UIView, KUIPopOverUsable { 85 | // The default size is the size of the view, and you can override it if you want to customize it. 86 | var contentSize: CGSize { 87 | return Size 88 | } 89 | } 90 | 91 | let view = CustomView() 92 | view.showPopover(barButtonItem: sender) 93 | view.dismissPopover(animated: true) 94 | view.dismissPopover(animated: true, completion: { 95 | }) 96 | ``` 97 | 98 | #### UIViewController 99 | 100 | ```swift 101 | class CustomViewController: UIViewController, KUIPopOverUsable { 102 | var contentSize: CGSize { 103 | // PopOver preferredContentSize 104 | } 105 | } 106 | 107 | let customViewController = CustomViewController() 108 | 109 | // from senderView 110 | customViewController.showPopover(sourceView: sender, sourceRect: sender.bounds) 111 | 112 | // from barButtonItem 113 | customViewController.showPopover(barButtonItem: sender) 114 | 115 | // with NavigationController 116 | customViewController.showPopoverWithNavigationController(sourceView: sender, sourceRect: sender.bounds) 117 | 118 | customViewController.dismissPopover(animated: true) 119 | customViewController.dismissPopover(animated: true, completion: { 120 | }) 121 | ``` 122 | 123 | ## Authors 124 | 125 | Taeun Kim (kofktu), 126 | 127 | ## License 128 | 129 | KUIPopOver is available under the ```MIT``` license. See the ```LICENSE``` file for more info. 130 | -------------------------------------------------------------------------------- /KUIPopOver.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod spec lint KUIActionSheet.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 = "KUIPopOver" 19 | s.version = "1.2.0" 20 | s.summary = "Easy to use PopOver in iOS" 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 = "Easy to use PopOver in iOS (iPhone, iPad)" 28 | 29 | s.homepage = "https://github.com/Kofktu/KUIPopOver" 30 | # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" 31 | 32 | 33 | # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 34 | # 35 | # Licensing your code is important. See http://choosealicense.com for more info. 36 | # CocoaPods will detect a license file if there is a named LICENSE* 37 | # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. 38 | # 39 | 40 | # s.license = "MIT (example)" 41 | s.license = { :type => "MIT", :file => "LICENSE" } 42 | 43 | 44 | # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 45 | # 46 | # Specify the authors of the library, with email addresses. Email addresses 47 | # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also 48 | # accepts just a name if you'd rather not provide an email address. 49 | # 50 | # Specify a social_media_url where others can refer to, for example a twitter 51 | # profile URL. 52 | # 53 | 54 | s.author = { "Kofktu" => "kofktu@gmail.com" } 55 | # Or just: s.author = "Kofktu" 56 | # s.authors = { "Kofktu" => "email@address.com" } 57 | # s.social_media_url = "http://twitter.com/Kofktu" 58 | 59 | # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 60 | # 61 | # If this Pod runs only on iOS or OS X, then specify the platform and 62 | # the deployment target. You can optionally include the target after the platform. 63 | # 64 | 65 | # s.platform = :ios 66 | s.platform = :ios, "8.0" 67 | 68 | # When using multiple platforms 69 | # s.ios.deployment_target = "5.0" 70 | # s.osx.deployment_target = "10.7" 71 | # s.watchos.deployment_target = "2.0" 72 | # s.tvos.deployment_target = "9.0" 73 | 74 | 75 | # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 76 | # 77 | # Specify the location from where the source should be retrieved. 78 | # Supports git, hg, bzr, svn and HTTP. 79 | # 80 | 81 | s.source = { :git => "https://github.com/Kofktu/KUIPopOver.git", :tag => s.version.to_s } 82 | 83 | 84 | # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 85 | # 86 | # CocoaPods is smart about how it includes source code. For source files 87 | # giving a folder will include any swift, h, m, mm, c & cpp files. 88 | # For header files it will include any header in the folder. 89 | # Not including the public_header_files will make all headers public. 90 | # 91 | 92 | s.source_files = "KUIPopOver/Classes/**/*.{swift}" 93 | # s.exclude_files = "Classes/Exclude" 94 | 95 | # s.public_header_files = "Classes/**/*.h" 96 | 97 | 98 | # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 99 | # 100 | # A list of resources included with the Pod. These are copied into the 101 | # target bundle with a build phase script. Anything else will be cleaned. 102 | # You can preserve files from being cleaned, please don't preserve 103 | # non-essential files like tests, examples and documentation. 104 | # 105 | 106 | # s.resource = "icon.png" 107 | # s.resources = "KUIButtonBar/Assets/*.{png,xib}" 108 | 109 | # s.preserve_paths = "FilesToSave", "MoreFilesToSave" 110 | 111 | 112 | # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 113 | # 114 | # Link your library with frameworks, or libraries. Libraries do not include 115 | # the lib prefix of their name. 116 | # 117 | 118 | # s.framework = "SomeFramework" 119 | # s.frameworks = "SomeFramework", "AnotherFramework" 120 | 121 | # s.library = "iconv" 122 | # s.libraries = "iconv", "xml2" 123 | 124 | 125 | # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 126 | # 127 | # If your library depends on compiler flags you can set them in the xcconfig hash 128 | # where they will only apply to your library. If you depend on other Podspecs 129 | # you can include multiple dependencies to ensure it works. 130 | 131 | s.requires_arc = true 132 | 133 | # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } 134 | # s.dependency "JSONKit", "~> 1.4" 135 | s.swift_versions = [5.0] 136 | end 137 | -------------------------------------------------------------------------------- /Example/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Example 4 | // 5 | // Created by kofktu on 2017. 8. 31.. 6 | // Copyright © 2017년 Kofktu. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import KUIPopOver 11 | import WebKit 12 | 13 | class ViewController: UIViewController { 14 | 15 | // MARK: - Action 16 | @IBAction func onDefaultPopoverShow(_ sender: UIButton) { 17 | let popOverViewController = DefaultPopOverViewController() 18 | popOverViewController.preferredContentSize = CGSize(width: 200.0, height: 300.0) 19 | popOverViewController.popoverPresentationController?.sourceView = sender 20 | 21 | let customView = CustomPopOverView(frame: CGRect(origin: CGPoint(x: 0.0, y: 0.0), size: CGSize(width: 200.0, height: 300.0))) 22 | popOverViewController.view.addSubview(customView) 23 | popOverViewController.popoverPresentationController?.sourceRect = sender.bounds 24 | present(popOverViewController, animated: true, completion: nil) 25 | } 26 | 27 | @IBAction func onBarButtonItem(_ sender: UIBarButtonItem) { 28 | let customView = CustomPopOverView(frame: CGRect(origin: CGPoint(x: 0.0, y: 0.0), size: CGSize(width: 150.0, height: 200.0))) 29 | customView.showPopover(barButtonItem: sender) { 30 | print("CustomPopOverView.BarButtonItem.show.completion") 31 | } 32 | 33 | DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) { 34 | customView.dismissPopover(animated: true, completion: { 35 | print("CustomPopOverView.BarButtonItem.dismiss.completion") 36 | }) 37 | } 38 | } 39 | 40 | @IBAction func onCustomPopOverView(_ sender: UIButton) { 41 | let customView = CustomPopOverView(frame: CGRect(origin: CGPoint(x: 0.0, y: 0.0), size: CGSize(width: 150.0, height: 200.0))) 42 | customView.showPopover(sourceView: sender) { 43 | print("CustomPopOverView.show.completion") 44 | } 45 | } 46 | 47 | @IBAction func onCustomPopOverViewController(_ sender: UIButton) { 48 | let customViewController = CustomPopOverViewController() 49 | customViewController.showPopover(sourceView: sender) 50 | 51 | DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) { 52 | customViewController.dismissPopover(animated: true, completion: { 53 | print("CustomPopOverViewController.dismiss.completion") 54 | }) 55 | } 56 | } 57 | 58 | @IBAction func onPopOverNavigationViewController(_ sender: UIButton) { 59 | let storyboard = UIStoryboard(name: "Main", bundle: nil) 60 | let viewController = storyboard.instantiateViewController(withIdentifier: "CustomPushViewController") as! CustomPushViewController 61 | viewController.showPopoverWithNavigationController(sourceView: sender, shouldDismissOnTap: false) 62 | } 63 | } 64 | 65 | class DefaultPopOverViewController: UIViewController, UIPopoverPresentationControllerDelegate { 66 | 67 | init() { 68 | super.init(nibName: nil, bundle: nil) 69 | modalPresentationStyle = .popover 70 | popoverPresentationController?.delegate = self 71 | } 72 | 73 | required init?(coder aDecoder: NSCoder) { 74 | fatalError("init(coder:) has not been implemented") 75 | } 76 | 77 | // MARK: - UIPopoverPresentationControllerDelegate 78 | func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle { 79 | return .none 80 | } 81 | 82 | } 83 | 84 | class CustomPopOverView: UIView, KUIPopOverUsable { 85 | 86 | var contentSize: CGSize { 87 | return CGSize(width: 300.0, height: 400.0) 88 | } 89 | 90 | var popOverBackgroundColor: UIColor? { 91 | return .black 92 | } 93 | 94 | var arrowDirection: UIPopoverArrowDirection { 95 | return .up 96 | } 97 | 98 | lazy var webView: WKWebView = { 99 | let webView: WKWebView = WKWebView(frame: self.frame) 100 | webView.load(URLRequest(url: URL(string: "http://github.com")!)) 101 | return webView 102 | }() 103 | 104 | override init(frame: CGRect) { 105 | super.init(frame: frame) 106 | addSubview(webView) 107 | } 108 | 109 | required init?(coder aDecoder: NSCoder) { 110 | fatalError("init(coder:) has not been implemented") 111 | } 112 | 113 | override func layoutSubviews() { 114 | super.layoutSubviews() 115 | webView.frame = self.bounds 116 | } 117 | 118 | } 119 | 120 | class CustomPopOverViewController: UIViewController, KUIPopOverUsable { 121 | 122 | var contentSize: CGSize { 123 | return CGSize(width: 300.0, height: 400.0) 124 | } 125 | 126 | var popOverBackgroundColor: UIColor? { 127 | return .blue 128 | } 129 | 130 | lazy var webView: WKWebView = { 131 | let webView: WKWebView = WKWebView(frame: self.view.frame) 132 | webView.load(URLRequest(url: URL(string: "http://github.com")!)) 133 | return webView 134 | }() 135 | 136 | override func viewDidLoad() { 137 | super.viewDidLoad() 138 | view.addSubview(webView) 139 | } 140 | 141 | override func viewDidLayoutSubviews() { 142 | super.viewDidLayoutSubviews() 143 | webView.frame = view.bounds 144 | } 145 | 146 | } 147 | 148 | class CustomPushViewController: UIViewController, KUIPopOverUsable { 149 | 150 | private lazy var size: CGSize = { 151 | return CGSize(width: 250.0, height: 100.0 + CGFloat(arc4random_uniform(200))) 152 | }() 153 | 154 | var contentSize: CGSize { 155 | return size 156 | } 157 | 158 | override func viewDidLoad() { 159 | super.viewDidLoad() 160 | preferredContentSize = size 161 | navigationItem.title = size.debugDescription 162 | navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Done", style: .done, target: self, action: #selector(onDoneButton(_:))) 163 | } 164 | 165 | @IBAction func onPushViewController(_ sender: UIButton) { 166 | let storyboard = UIStoryboard(name: "Main", bundle: nil) 167 | let viewController = storyboard.instantiateViewController(withIdentifier: "CustomPushViewController") as! CustomPushViewController 168 | navigationController?.pushViewController(viewController, animated: true) 169 | } 170 | 171 | @objc 172 | private func onDoneButton(_ sender: UIButton) { 173 | dismissPopover(animated: true) 174 | } 175 | } 176 | -------------------------------------------------------------------------------- /KUIPopOver/Classes/KUIPopOver.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KUIPopOver.swift 3 | // KUIPopOver 4 | // 5 | // Created by kofktu on 2017. 8. 31.. 6 | // Copyright © 2017년 Kofktu. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | public typealias ShowPopoverCompletion = () -> Void 13 | public typealias DismissPopoverCompletion = () -> Void 14 | 15 | fileprivate class KUIPopOverUsableDismissHandlerWrapper { 16 | typealias DismissHandler = ((Bool, DismissPopoverCompletion?) -> Void) 17 | var closure: DismissHandler? 18 | 19 | init(_ closure: DismissHandler?) { 20 | self.closure = closure 21 | } 22 | } 23 | 24 | fileprivate extension UIView { 25 | 26 | struct AssociatedKeys { 27 | static var onDismissHandler = "onDismissHandler" 28 | } 29 | 30 | var onDismissHandler: KUIPopOverUsableDismissHandlerWrapper.DismissHandler? { 31 | get { return (objc_getAssociatedObject(self, &AssociatedKeys.onDismissHandler) as? KUIPopOverUsableDismissHandlerWrapper)?.closure } 32 | set { objc_setAssociatedObject(self, &AssociatedKeys.onDismissHandler, KUIPopOverUsableDismissHandlerWrapper(newValue), .OBJC_ASSOCIATION_RETAIN_NONATOMIC) } 33 | } 34 | 35 | } 36 | 37 | extension KUIPopOverUsable where Self: UIView { 38 | 39 | public var contentView: UIView { 40 | return self 41 | } 42 | 43 | public var contentSize: CGSize { 44 | return frame.size 45 | } 46 | 47 | public func showPopover(sourceView: UIView, sourceRect: CGRect? = nil, shouldDismissOnTap: Bool = true, completion: ShowPopoverCompletion? = nil) { 48 | let usableViewController = KUIPopOverUsableViewController(popOverUsable: self) 49 | usableViewController.showPopover(sourceView: sourceView, 50 | sourceRect: sourceRect, 51 | shouldDismissOnTap: shouldDismissOnTap, 52 | completion: completion) 53 | onDismissHandler = { [weak self] (animated, completion) in 54 | self?.dismiss(usableViewController: usableViewController, animated: animated, completion: completion) 55 | } 56 | } 57 | 58 | public func showPopover(barButtonItem: UIBarButtonItem, shouldDismissOnTap: Bool = true, completion: ShowPopoverCompletion? = nil) { 59 | let usableViewController = KUIPopOverUsableViewController(popOverUsable: self) 60 | usableViewController.showPopover(barButtonItem: barButtonItem, 61 | shouldDismissOnTap: shouldDismissOnTap, 62 | completion: completion) 63 | onDismissHandler = { [weak self] (animated, completion) in 64 | self?.dismiss(usableViewController: usableViewController, animated: animated, completion: completion) 65 | } 66 | } 67 | 68 | public func dismissPopover(animated: Bool, completion: DismissPopoverCompletion? = nil) { 69 | onDismissHandler?(animated, completion) 70 | } 71 | 72 | 73 | // MARK: - Private 74 | private func dismiss(usableViewController: KUIPopOverUsableViewController, animated: Bool, completion: DismissPopoverCompletion? = nil) { 75 | if let completion = completion { 76 | usableViewController.dismiss(animated: animated, completion: { [weak self] in 77 | self?.onDismissHandler = nil 78 | completion() 79 | }) 80 | } else { 81 | usableViewController.dismiss(animated: animated, completion: nil) 82 | onDismissHandler = nil 83 | } 84 | } 85 | } 86 | 87 | extension KUIPopOverUsable where Self: UIViewController { 88 | 89 | public var contentView: UIView { 90 | return view 91 | } 92 | 93 | private var rootViewController: UIViewController? { 94 | return UIApplication.shared.keyWindow?.rootViewController?.topPresentedViewController 95 | } 96 | 97 | private var popOverUsableNavigationController: KUIPopOverUsableNavigationController { 98 | let naviController = KUIPopOverUsableNavigationController(rootViewController: self) 99 | naviController.modalPresentationStyle = .popover 100 | naviController.popoverPresentationController?.delegate = KUIPopOverDelegation.shared 101 | naviController.popoverPresentationController?.backgroundColor = popOverBackgroundColor 102 | naviController.popoverPresentationController?.permittedArrowDirections = arrowDirection 103 | return naviController 104 | } 105 | 106 | private func setup() { 107 | modalPresentationStyle = .popover 108 | preferredContentSize = contentSize 109 | popoverPresentationController?.delegate = KUIPopOverDelegation.shared 110 | popoverPresentationController?.backgroundColor = popOverBackgroundColor 111 | popoverPresentationController?.permittedArrowDirections = arrowDirection 112 | } 113 | 114 | public func setupPopover(sourceView: UIView, sourceRect: CGRect? = nil) { 115 | setup() 116 | popoverPresentationController?.sourceView = sourceView 117 | popoverPresentationController?.sourceRect = sourceRect ?? sourceView.bounds 118 | } 119 | 120 | public func setupPopover(barButtonItem: UIBarButtonItem) { 121 | setup() 122 | popoverPresentationController?.barButtonItem = barButtonItem 123 | } 124 | 125 | public func showPopover(sourceView: UIView, sourceRect: CGRect? = nil, shouldDismissOnTap: Bool = true, completion: ShowPopoverCompletion? = nil) { 126 | setupPopover(sourceView: sourceView, sourceRect: sourceRect) 127 | KUIPopOverDelegation.shared.shouldDismissOnOutsideTap = shouldDismissOnTap 128 | rootViewController?.present(self, animated: true, completion: completion) 129 | } 130 | 131 | public func showPopoverWithNavigationController(sourceView: UIView, sourceRect: CGRect? = nil, shouldDismissOnTap: Bool = true, completion: ShowPopoverCompletion? = nil) { 132 | let naviController = popOverUsableNavigationController 133 | naviController.popoverPresentationController?.sourceView = sourceView 134 | naviController.popoverPresentationController?.sourceRect = sourceRect ?? sourceView.bounds 135 | KUIPopOverDelegation.shared.shouldDismissOnOutsideTap = shouldDismissOnTap 136 | rootViewController?.present(naviController, animated: true, completion: completion) 137 | } 138 | 139 | public func showPopover(barButtonItem: UIBarButtonItem, shouldDismissOnTap: Bool = true, completion: ShowPopoverCompletion? = nil) { 140 | setupPopover(barButtonItem: barButtonItem) 141 | KUIPopOverDelegation.shared.shouldDismissOnOutsideTap = shouldDismissOnTap 142 | rootViewController?.present(self, animated: true, completion: completion) 143 | } 144 | 145 | public func showPopoverWithNavigationController(barButtonItem: UIBarButtonItem, shouldDismissOnTap: Bool = true, completion: ShowPopoverCompletion? = nil) { 146 | let naviController = popOverUsableNavigationController 147 | naviController.popoverPresentationController?.barButtonItem = barButtonItem 148 | KUIPopOverDelegation.shared.shouldDismissOnOutsideTap = shouldDismissOnTap 149 | rootViewController?.present(naviController, animated: true, completion: completion) 150 | } 151 | 152 | public func dismissPopover(animated: Bool, completion: DismissPopoverCompletion? = nil) { 153 | dismiss(animated: animated, completion: completion) 154 | } 155 | } 156 | 157 | private final class KUIPopOverUsableNavigationController: UINavigationController { 158 | 159 | override func viewWillLayoutSubviews() { 160 | super.viewWillLayoutSubviews() 161 | 162 | if let popOverUsable = visibleViewController as? KUIPopOverUsable { 163 | preferredContentSize = popOverUsable.contentSize 164 | } else { 165 | preferredContentSize = visibleViewController?.preferredContentSize ?? preferredContentSize 166 | } 167 | } 168 | 169 | } 170 | 171 | private final class KUIPopOverUsableViewController: UIViewController, KUIPopOverUsable { 172 | 173 | var contentSize: CGSize { 174 | return popOverUsable.contentSize 175 | } 176 | 177 | var contentView: UIView { 178 | return view 179 | } 180 | 181 | var popOverBackgroundColor: UIColor? { 182 | return popOverUsable.popOverBackgroundColor 183 | } 184 | 185 | var arrowDirection: UIPopoverArrowDirection { 186 | return popOverUsable.arrowDirection 187 | } 188 | 189 | private var popOverUsable: KUIPopOverUsable! 190 | 191 | convenience init(popOverUsable: KUIPopOverUsable) { 192 | self.init() 193 | self.popOverUsable = popOverUsable 194 | preferredContentSize = popOverUsable.contentSize 195 | } 196 | 197 | override func viewDidLoad() { 198 | super.viewDidLoad() 199 | view.addSubview(popOverUsable.contentView) 200 | } 201 | 202 | override func viewDidLayoutSubviews() { 203 | super.viewDidLayoutSubviews() 204 | popOverUsable.contentView.frame = view.bounds 205 | } 206 | 207 | } 208 | 209 | private final class KUIPopOverDelegation: NSObject, UIPopoverPresentationControllerDelegate { 210 | 211 | static let shared = KUIPopOverDelegation() 212 | var shouldDismissOnOutsideTap: Bool = false 213 | 214 | // MARK: - UIPopoverPresentationControllerDelegate 215 | func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle { 216 | return .none 217 | } 218 | 219 | func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle { 220 | return .none 221 | } 222 | 223 | func popoverPresentationControllerShouldDismissPopover(_ popoverPresentationController: UIPopoverPresentationController) -> Bool { 224 | return shouldDismissOnOutsideTap 225 | } 226 | } 227 | 228 | private extension UIViewController { 229 | 230 | var topPresentedViewController: UIViewController { 231 | return presentedViewController?.topPresentedViewController ?? self 232 | } 233 | 234 | } 235 | -------------------------------------------------------------------------------- /Example/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 50 | 60 | 70 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /KUIPopOver.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C39F31FB1F57E55F00B5F269 /* KUIPopOver.h in Headers */ = {isa = PBXBuildFile; fileRef = C39F31F91F57E55F00B5F269 /* KUIPopOver.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | C39F322D1F57E65300B5F269 /* KUIPopOver.swift in Sources */ = {isa = PBXBuildFile; fileRef = C39F322C1F57E65300B5F269 /* KUIPopOver.swift */; }; 12 | C39F322F1F57E77E00B5F269 /* KUIPopOverUsable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C39F322E1F57E77E00B5F269 /* KUIPopOverUsable.swift */; }; 13 | /* End PBXBuildFile section */ 14 | 15 | /* Begin PBXFileReference section */ 16 | C39F31F61F57E55F00B5F269 /* KUIPopOver.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = KUIPopOver.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 17 | C39F31F91F57E55F00B5F269 /* KUIPopOver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KUIPopOver.h; sourceTree = ""; }; 18 | C39F31FA1F57E55F00B5F269 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 19 | C39F322C1F57E65300B5F269 /* KUIPopOver.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KUIPopOver.swift; sourceTree = ""; }; 20 | C39F322E1F57E77E00B5F269 /* KUIPopOverUsable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KUIPopOverUsable.swift; sourceTree = ""; }; 21 | /* End PBXFileReference section */ 22 | 23 | /* Begin PBXFrameworksBuildPhase section */ 24 | C39F31F21F57E55F00B5F269 /* Frameworks */ = { 25 | isa = PBXFrameworksBuildPhase; 26 | buildActionMask = 2147483647; 27 | files = ( 28 | ); 29 | runOnlyForDeploymentPostprocessing = 0; 30 | }; 31 | /* End PBXFrameworksBuildPhase section */ 32 | 33 | /* Begin PBXGroup section */ 34 | C39F31EC1F57E55F00B5F269 = { 35 | isa = PBXGroup; 36 | children = ( 37 | C39F31F81F57E55F00B5F269 /* KUIPopOver */, 38 | C39F31F71F57E55F00B5F269 /* Products */, 39 | ); 40 | sourceTree = ""; 41 | }; 42 | C39F31F71F57E55F00B5F269 /* Products */ = { 43 | isa = PBXGroup; 44 | children = ( 45 | C39F31F61F57E55F00B5F269 /* KUIPopOver.framework */, 46 | ); 47 | name = Products; 48 | sourceTree = ""; 49 | }; 50 | C39F31F81F57E55F00B5F269 /* KUIPopOver */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | C39F322B1F57E64C00B5F269 /* Classes */, 54 | C39F31F91F57E55F00B5F269 /* KUIPopOver.h */, 55 | C39F31FA1F57E55F00B5F269 /* Info.plist */, 56 | ); 57 | path = KUIPopOver; 58 | sourceTree = ""; 59 | }; 60 | C39F322B1F57E64C00B5F269 /* Classes */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | C39F322C1F57E65300B5F269 /* KUIPopOver.swift */, 64 | C39F322E1F57E77E00B5F269 /* KUIPopOverUsable.swift */, 65 | ); 66 | path = Classes; 67 | sourceTree = ""; 68 | }; 69 | /* End PBXGroup section */ 70 | 71 | /* Begin PBXHeadersBuildPhase section */ 72 | C39F31F31F57E55F00B5F269 /* Headers */ = { 73 | isa = PBXHeadersBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | C39F31FB1F57E55F00B5F269 /* KUIPopOver.h in Headers */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | /* End PBXHeadersBuildPhase section */ 81 | 82 | /* Begin PBXNativeTarget section */ 83 | C39F31F51F57E55F00B5F269 /* KUIPopOver */ = { 84 | isa = PBXNativeTarget; 85 | buildConfigurationList = C39F31FE1F57E55F00B5F269 /* Build configuration list for PBXNativeTarget "KUIPopOver" */; 86 | buildPhases = ( 87 | C39F31F11F57E55F00B5F269 /* Sources */, 88 | C39F31F21F57E55F00B5F269 /* Frameworks */, 89 | C39F31F31F57E55F00B5F269 /* Headers */, 90 | C39F31F41F57E55F00B5F269 /* Resources */, 91 | ); 92 | buildRules = ( 93 | ); 94 | dependencies = ( 95 | ); 96 | name = KUIPopOver; 97 | productName = KUIPopOver; 98 | productReference = C39F31F61F57E55F00B5F269 /* KUIPopOver.framework */; 99 | productType = "com.apple.product-type.framework"; 100 | }; 101 | /* End PBXNativeTarget section */ 102 | 103 | /* Begin PBXProject section */ 104 | C39F31ED1F57E55F00B5F269 /* Project object */ = { 105 | isa = PBXProject; 106 | attributes = { 107 | LastUpgradeCheck = 0900; 108 | ORGANIZATIONNAME = Kofktu; 109 | TargetAttributes = { 110 | C39F31F51F57E55F00B5F269 = { 111 | CreatedOnToolsVersion = 8.3.3; 112 | LastSwiftMigration = 0830; 113 | ProvisioningStyle = Automatic; 114 | }; 115 | }; 116 | }; 117 | buildConfigurationList = C39F31F01F57E55F00B5F269 /* Build configuration list for PBXProject "KUIPopOver" */; 118 | compatibilityVersion = "Xcode 3.2"; 119 | developmentRegion = English; 120 | hasScannedForEncodings = 0; 121 | knownRegions = ( 122 | English, 123 | en, 124 | ); 125 | mainGroup = C39F31EC1F57E55F00B5F269; 126 | productRefGroup = C39F31F71F57E55F00B5F269 /* Products */; 127 | projectDirPath = ""; 128 | projectRoot = ""; 129 | targets = ( 130 | C39F31F51F57E55F00B5F269 /* KUIPopOver */, 131 | ); 132 | }; 133 | /* End PBXProject section */ 134 | 135 | /* Begin PBXResourcesBuildPhase section */ 136 | C39F31F41F57E55F00B5F269 /* Resources */ = { 137 | isa = PBXResourcesBuildPhase; 138 | buildActionMask = 2147483647; 139 | files = ( 140 | ); 141 | runOnlyForDeploymentPostprocessing = 0; 142 | }; 143 | /* End PBXResourcesBuildPhase section */ 144 | 145 | /* Begin PBXSourcesBuildPhase section */ 146 | C39F31F11F57E55F00B5F269 /* Sources */ = { 147 | isa = PBXSourcesBuildPhase; 148 | buildActionMask = 2147483647; 149 | files = ( 150 | C39F322D1F57E65300B5F269 /* KUIPopOver.swift in Sources */, 151 | C39F322F1F57E77E00B5F269 /* KUIPopOverUsable.swift in Sources */, 152 | ); 153 | runOnlyForDeploymentPostprocessing = 0; 154 | }; 155 | /* End PBXSourcesBuildPhase section */ 156 | 157 | /* Begin XCBuildConfiguration section */ 158 | C39F31FC1F57E55F00B5F269 /* Debug */ = { 159 | isa = XCBuildConfiguration; 160 | buildSettings = { 161 | ALWAYS_SEARCH_USER_PATHS = NO; 162 | CLANG_ANALYZER_NONNULL = YES; 163 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 164 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 165 | CLANG_CXX_LIBRARY = "libc++"; 166 | CLANG_ENABLE_MODULES = YES; 167 | CLANG_ENABLE_OBJC_ARC = YES; 168 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 169 | CLANG_WARN_BOOL_CONVERSION = YES; 170 | CLANG_WARN_COMMA = YES; 171 | CLANG_WARN_CONSTANT_CONVERSION = YES; 172 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 173 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 174 | CLANG_WARN_EMPTY_BODY = YES; 175 | CLANG_WARN_ENUM_CONVERSION = YES; 176 | CLANG_WARN_INFINITE_RECURSION = YES; 177 | CLANG_WARN_INT_CONVERSION = YES; 178 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 179 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 180 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 181 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 182 | CLANG_WARN_STRICT_PROTOTYPES = YES; 183 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 184 | CLANG_WARN_UNREACHABLE_CODE = YES; 185 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 186 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 187 | COPY_PHASE_STRIP = NO; 188 | CURRENT_PROJECT_VERSION = 1; 189 | DEBUG_INFORMATION_FORMAT = dwarf; 190 | ENABLE_STRICT_OBJC_MSGSEND = YES; 191 | ENABLE_TESTABILITY = YES; 192 | GCC_C_LANGUAGE_STANDARD = gnu99; 193 | GCC_DYNAMIC_NO_PIC = NO; 194 | GCC_NO_COMMON_BLOCKS = YES; 195 | GCC_OPTIMIZATION_LEVEL = 0; 196 | GCC_PREPROCESSOR_DEFINITIONS = ( 197 | "DEBUG=1", 198 | "$(inherited)", 199 | ); 200 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 201 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 202 | GCC_WARN_UNDECLARED_SELECTOR = YES; 203 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 204 | GCC_WARN_UNUSED_FUNCTION = YES; 205 | GCC_WARN_UNUSED_VARIABLE = YES; 206 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 207 | MTL_ENABLE_DEBUG_INFO = YES; 208 | ONLY_ACTIVE_ARCH = YES; 209 | SDKROOT = iphoneos; 210 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 211 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 212 | SWIFT_VERSION = 5.0; 213 | TARGETED_DEVICE_FAMILY = "1,2"; 214 | VERSIONING_SYSTEM = "apple-generic"; 215 | VERSION_INFO_PREFIX = ""; 216 | }; 217 | name = Debug; 218 | }; 219 | C39F31FD1F57E55F00B5F269 /* Release */ = { 220 | isa = XCBuildConfiguration; 221 | buildSettings = { 222 | ALWAYS_SEARCH_USER_PATHS = NO; 223 | CLANG_ANALYZER_NONNULL = YES; 224 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 225 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 226 | CLANG_CXX_LIBRARY = "libc++"; 227 | CLANG_ENABLE_MODULES = YES; 228 | CLANG_ENABLE_OBJC_ARC = YES; 229 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 230 | CLANG_WARN_BOOL_CONVERSION = YES; 231 | CLANG_WARN_COMMA = YES; 232 | CLANG_WARN_CONSTANT_CONVERSION = YES; 233 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 234 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 235 | CLANG_WARN_EMPTY_BODY = YES; 236 | CLANG_WARN_ENUM_CONVERSION = YES; 237 | CLANG_WARN_INFINITE_RECURSION = YES; 238 | CLANG_WARN_INT_CONVERSION = YES; 239 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 240 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 241 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 242 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 243 | CLANG_WARN_STRICT_PROTOTYPES = YES; 244 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 245 | CLANG_WARN_UNREACHABLE_CODE = YES; 246 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 247 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 248 | COPY_PHASE_STRIP = NO; 249 | CURRENT_PROJECT_VERSION = 1; 250 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 251 | ENABLE_NS_ASSERTIONS = NO; 252 | ENABLE_STRICT_OBJC_MSGSEND = YES; 253 | GCC_C_LANGUAGE_STANDARD = gnu99; 254 | GCC_NO_COMMON_BLOCKS = YES; 255 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 256 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 257 | GCC_WARN_UNDECLARED_SELECTOR = YES; 258 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 259 | GCC_WARN_UNUSED_FUNCTION = YES; 260 | GCC_WARN_UNUSED_VARIABLE = YES; 261 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 262 | MTL_ENABLE_DEBUG_INFO = NO; 263 | SDKROOT = iphoneos; 264 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 265 | SWIFT_VERSION = 5.0; 266 | TARGETED_DEVICE_FAMILY = "1,2"; 267 | VALIDATE_PRODUCT = YES; 268 | VERSIONING_SYSTEM = "apple-generic"; 269 | VERSION_INFO_PREFIX = ""; 270 | }; 271 | name = Release; 272 | }; 273 | C39F31FF1F57E55F00B5F269 /* Debug */ = { 274 | isa = XCBuildConfiguration; 275 | buildSettings = { 276 | CLANG_ENABLE_MODULES = YES; 277 | CODE_SIGN_IDENTITY = "iPhone Developer"; 278 | CODE_SIGN_STYLE = Automatic; 279 | DEFINES_MODULE = YES; 280 | DEVELOPMENT_TEAM = ""; 281 | DYLIB_COMPATIBILITY_VERSION = 1; 282 | DYLIB_CURRENT_VERSION = 1; 283 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 284 | INFOPLIST_FILE = KUIPopOver/Info.plist; 285 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 286 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 287 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 288 | PRODUCT_BUNDLE_IDENTIFIER = com.homefactory.KUIPopOver; 289 | PRODUCT_NAME = "$(TARGET_NAME)"; 290 | PROVISIONING_PROFILE_SPECIFIER = ""; 291 | SKIP_INSTALL = YES; 292 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 293 | SWIFT_VERSION = 5.0; 294 | }; 295 | name = Debug; 296 | }; 297 | C39F32001F57E55F00B5F269 /* Release */ = { 298 | isa = XCBuildConfiguration; 299 | buildSettings = { 300 | CLANG_ENABLE_MODULES = YES; 301 | CODE_SIGN_IDENTITY = "iPhone Developer"; 302 | CODE_SIGN_STYLE = Automatic; 303 | DEFINES_MODULE = YES; 304 | DEVELOPMENT_TEAM = ""; 305 | DYLIB_COMPATIBILITY_VERSION = 1; 306 | DYLIB_CURRENT_VERSION = 1; 307 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 308 | INFOPLIST_FILE = KUIPopOver/Info.plist; 309 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 310 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 311 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 312 | PRODUCT_BUNDLE_IDENTIFIER = com.homefactory.KUIPopOver; 313 | PRODUCT_NAME = "$(TARGET_NAME)"; 314 | PROVISIONING_PROFILE_SPECIFIER = ""; 315 | SKIP_INSTALL = YES; 316 | SWIFT_VERSION = 5.0; 317 | }; 318 | name = Release; 319 | }; 320 | /* End XCBuildConfiguration section */ 321 | 322 | /* Begin XCConfigurationList section */ 323 | C39F31F01F57E55F00B5F269 /* Build configuration list for PBXProject "KUIPopOver" */ = { 324 | isa = XCConfigurationList; 325 | buildConfigurations = ( 326 | C39F31FC1F57E55F00B5F269 /* Debug */, 327 | C39F31FD1F57E55F00B5F269 /* Release */, 328 | ); 329 | defaultConfigurationIsVisible = 0; 330 | defaultConfigurationName = Release; 331 | }; 332 | C39F31FE1F57E55F00B5F269 /* Build configuration list for PBXNativeTarget "KUIPopOver" */ = { 333 | isa = XCConfigurationList; 334 | buildConfigurations = ( 335 | C39F31FF1F57E55F00B5F269 /* Debug */, 336 | C39F32001F57E55F00B5F269 /* Release */, 337 | ); 338 | defaultConfigurationIsVisible = 0; 339 | defaultConfigurationName = Release; 340 | }; 341 | /* End XCConfigurationList section */ 342 | }; 343 | rootObject = C39F31ED1F57E55F00B5F269 /* Project object */; 344 | } 345 | -------------------------------------------------------------------------------- /Example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C338E6BF2170A11900C268B6 /* KUIPopOver.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3887ECF215C7E3F00BFDFAB /* KUIPopOver.framework */; }; 11 | C338E6C02170A11900C268B6 /* KUIPopOver.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C3887ECF215C7E3F00BFDFAB /* KUIPopOver.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 12 | C39F320E1F57E56E00B5F269 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C39F320D1F57E56E00B5F269 /* AppDelegate.swift */; }; 13 | C39F32101F57E56E00B5F269 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C39F320F1F57E56E00B5F269 /* ViewController.swift */; }; 14 | C39F32131F57E56E00B5F269 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C39F32111F57E56E00B5F269 /* Main.storyboard */; }; 15 | C39F32151F57E56E00B5F269 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C39F32141F57E56E00B5F269 /* Assets.xcassets */; }; 16 | C39F32181F57E56E00B5F269 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C39F32161F57E56E00B5F269 /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | C338E6C12170A11900C268B6 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = C3887ECA215C7E3F00BFDFAB /* KUIPopOver.xcodeproj */; 23 | proxyType = 1; 24 | remoteGlobalIDString = C39F31F51F57E55F00B5F269; 25 | remoteInfo = KUIPopOver; 26 | }; 27 | C3887ECE215C7E3F00BFDFAB /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = C3887ECA215C7E3F00BFDFAB /* KUIPopOver.xcodeproj */; 30 | proxyType = 2; 31 | remoteGlobalIDString = C39F31F61F57E55F00B5F269; 32 | remoteInfo = KUIPopOver; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXCopyFilesBuildPhase section */ 37 | C39F32291F57E5C200B5F269 /* Embed Frameworks */ = { 38 | isa = PBXCopyFilesBuildPhase; 39 | buildActionMask = 2147483647; 40 | dstPath = ""; 41 | dstSubfolderSpec = 10; 42 | files = ( 43 | C338E6C02170A11900C268B6 /* KUIPopOver.framework in Embed Frameworks */, 44 | ); 45 | name = "Embed Frameworks"; 46 | runOnlyForDeploymentPostprocessing = 0; 47 | }; 48 | /* End PBXCopyFilesBuildPhase section */ 49 | 50 | /* Begin PBXFileReference section */ 51 | C3887ECA215C7E3F00BFDFAB /* KUIPopOver.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = KUIPopOver.xcodeproj; sourceTree = ""; }; 52 | C39F320A1F57E56E00B5F269 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | C39F320D1F57E56E00B5F269 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 54 | C39F320F1F57E56E00B5F269 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 55 | C39F32121F57E56E00B5F269 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 56 | C39F32141F57E56E00B5F269 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 57 | C39F32171F57E56E00B5F269 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 58 | C39F32191F57E56E00B5F269 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | C39F32071F57E56E00B5F269 /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | C338E6BF2170A11900C268B6 /* KUIPopOver.framework in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | /* End PBXFrameworksBuildPhase section */ 71 | 72 | /* Begin PBXGroup section */ 73 | C3887ECB215C7E3F00BFDFAB /* Products */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | C3887ECF215C7E3F00BFDFAB /* KUIPopOver.framework */, 77 | ); 78 | name = Products; 79 | sourceTree = ""; 80 | }; 81 | C39F32011F57E56E00B5F269 = { 82 | isa = PBXGroup; 83 | children = ( 84 | C3887ECA215C7E3F00BFDFAB /* KUIPopOver.xcodeproj */, 85 | C39F320C1F57E56E00B5F269 /* Example */, 86 | C39F320B1F57E56E00B5F269 /* Products */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | C39F320B1F57E56E00B5F269 /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | C39F320A1F57E56E00B5F269 /* Example.app */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | C39F320C1F57E56E00B5F269 /* Example */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | C39F320D1F57E56E00B5F269 /* AppDelegate.swift */, 102 | C39F320F1F57E56E00B5F269 /* ViewController.swift */, 103 | C39F32111F57E56E00B5F269 /* Main.storyboard */, 104 | C39F32141F57E56E00B5F269 /* Assets.xcassets */, 105 | C39F32161F57E56E00B5F269 /* LaunchScreen.storyboard */, 106 | C39F32191F57E56E00B5F269 /* Info.plist */, 107 | ); 108 | path = Example; 109 | sourceTree = ""; 110 | }; 111 | /* End PBXGroup section */ 112 | 113 | /* Begin PBXNativeTarget section */ 114 | C39F32091F57E56E00B5F269 /* Example */ = { 115 | isa = PBXNativeTarget; 116 | buildConfigurationList = C39F321C1F57E56E00B5F269 /* Build configuration list for PBXNativeTarget "Example" */; 117 | buildPhases = ( 118 | C39F32061F57E56E00B5F269 /* Sources */, 119 | C39F32071F57E56E00B5F269 /* Frameworks */, 120 | C39F32081F57E56E00B5F269 /* Resources */, 121 | C39F32291F57E5C200B5F269 /* Embed Frameworks */, 122 | ); 123 | buildRules = ( 124 | ); 125 | dependencies = ( 126 | C338E6C22170A11900C268B6 /* PBXTargetDependency */, 127 | ); 128 | name = Example; 129 | productName = Example; 130 | productReference = C39F320A1F57E56E00B5F269 /* Example.app */; 131 | productType = "com.apple.product-type.application"; 132 | }; 133 | /* End PBXNativeTarget section */ 134 | 135 | /* Begin PBXProject section */ 136 | C39F32021F57E56E00B5F269 /* Project object */ = { 137 | isa = PBXProject; 138 | attributes = { 139 | LastSwiftUpdateCheck = 0830; 140 | LastUpgradeCheck = 0900; 141 | ORGANIZATIONNAME = Kofktu; 142 | TargetAttributes = { 143 | C39F32091F57E56E00B5F269 = { 144 | CreatedOnToolsVersion = 8.3.3; 145 | DevelopmentTeam = KLVLNTBFM4; 146 | ProvisioningStyle = Automatic; 147 | }; 148 | }; 149 | }; 150 | buildConfigurationList = C39F32051F57E56E00B5F269 /* Build configuration list for PBXProject "Example" */; 151 | compatibilityVersion = "Xcode 3.2"; 152 | developmentRegion = English; 153 | hasScannedForEncodings = 0; 154 | knownRegions = ( 155 | English, 156 | en, 157 | Base, 158 | ); 159 | mainGroup = C39F32011F57E56E00B5F269; 160 | productRefGroup = C39F320B1F57E56E00B5F269 /* Products */; 161 | projectDirPath = ""; 162 | projectReferences = ( 163 | { 164 | ProductGroup = C3887ECB215C7E3F00BFDFAB /* Products */; 165 | ProjectRef = C3887ECA215C7E3F00BFDFAB /* KUIPopOver.xcodeproj */; 166 | }, 167 | ); 168 | projectRoot = ""; 169 | targets = ( 170 | C39F32091F57E56E00B5F269 /* Example */, 171 | ); 172 | }; 173 | /* End PBXProject section */ 174 | 175 | /* Begin PBXReferenceProxy section */ 176 | C3887ECF215C7E3F00BFDFAB /* KUIPopOver.framework */ = { 177 | isa = PBXReferenceProxy; 178 | fileType = wrapper.framework; 179 | path = KUIPopOver.framework; 180 | remoteRef = C3887ECE215C7E3F00BFDFAB /* PBXContainerItemProxy */; 181 | sourceTree = BUILT_PRODUCTS_DIR; 182 | }; 183 | /* End PBXReferenceProxy section */ 184 | 185 | /* Begin PBXResourcesBuildPhase section */ 186 | C39F32081F57E56E00B5F269 /* Resources */ = { 187 | isa = PBXResourcesBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | C39F32181F57E56E00B5F269 /* LaunchScreen.storyboard in Resources */, 191 | C39F32151F57E56E00B5F269 /* Assets.xcassets in Resources */, 192 | C39F32131F57E56E00B5F269 /* Main.storyboard in Resources */, 193 | ); 194 | runOnlyForDeploymentPostprocessing = 0; 195 | }; 196 | /* End PBXResourcesBuildPhase section */ 197 | 198 | /* Begin PBXSourcesBuildPhase section */ 199 | C39F32061F57E56E00B5F269 /* Sources */ = { 200 | isa = PBXSourcesBuildPhase; 201 | buildActionMask = 2147483647; 202 | files = ( 203 | C39F32101F57E56E00B5F269 /* ViewController.swift in Sources */, 204 | C39F320E1F57E56E00B5F269 /* AppDelegate.swift in Sources */, 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | /* End PBXSourcesBuildPhase section */ 209 | 210 | /* Begin PBXTargetDependency section */ 211 | C338E6C22170A11900C268B6 /* PBXTargetDependency */ = { 212 | isa = PBXTargetDependency; 213 | name = KUIPopOver; 214 | targetProxy = C338E6C12170A11900C268B6 /* PBXContainerItemProxy */; 215 | }; 216 | /* End PBXTargetDependency section */ 217 | 218 | /* Begin PBXVariantGroup section */ 219 | C39F32111F57E56E00B5F269 /* Main.storyboard */ = { 220 | isa = PBXVariantGroup; 221 | children = ( 222 | C39F32121F57E56E00B5F269 /* Base */, 223 | ); 224 | name = Main.storyboard; 225 | sourceTree = ""; 226 | }; 227 | C39F32161F57E56E00B5F269 /* LaunchScreen.storyboard */ = { 228 | isa = PBXVariantGroup; 229 | children = ( 230 | C39F32171F57E56E00B5F269 /* Base */, 231 | ); 232 | name = LaunchScreen.storyboard; 233 | sourceTree = ""; 234 | }; 235 | /* End PBXVariantGroup section */ 236 | 237 | /* Begin XCBuildConfiguration section */ 238 | C39F321A1F57E56E00B5F269 /* Debug */ = { 239 | isa = XCBuildConfiguration; 240 | buildSettings = { 241 | ALWAYS_SEARCH_USER_PATHS = NO; 242 | CLANG_ANALYZER_NONNULL = YES; 243 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 244 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 245 | CLANG_CXX_LIBRARY = "libc++"; 246 | CLANG_ENABLE_MODULES = YES; 247 | CLANG_ENABLE_OBJC_ARC = YES; 248 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 249 | CLANG_WARN_BOOL_CONVERSION = YES; 250 | CLANG_WARN_COMMA = YES; 251 | CLANG_WARN_CONSTANT_CONVERSION = YES; 252 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 253 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 254 | CLANG_WARN_EMPTY_BODY = YES; 255 | CLANG_WARN_ENUM_CONVERSION = YES; 256 | CLANG_WARN_INFINITE_RECURSION = YES; 257 | CLANG_WARN_INT_CONVERSION = YES; 258 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 259 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 260 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 261 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 262 | CLANG_WARN_STRICT_PROTOTYPES = YES; 263 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 264 | CLANG_WARN_UNREACHABLE_CODE = YES; 265 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 266 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 267 | COPY_PHASE_STRIP = NO; 268 | DEBUG_INFORMATION_FORMAT = dwarf; 269 | ENABLE_STRICT_OBJC_MSGSEND = YES; 270 | ENABLE_TESTABILITY = YES; 271 | GCC_C_LANGUAGE_STANDARD = gnu99; 272 | GCC_DYNAMIC_NO_PIC = NO; 273 | GCC_NO_COMMON_BLOCKS = YES; 274 | GCC_OPTIMIZATION_LEVEL = 0; 275 | GCC_PREPROCESSOR_DEFINITIONS = ( 276 | "DEBUG=1", 277 | "$(inherited)", 278 | ); 279 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 280 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 281 | GCC_WARN_UNDECLARED_SELECTOR = YES; 282 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 283 | GCC_WARN_UNUSED_FUNCTION = YES; 284 | GCC_WARN_UNUSED_VARIABLE = YES; 285 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 286 | MTL_ENABLE_DEBUG_INFO = YES; 287 | ONLY_ACTIVE_ARCH = YES; 288 | SDKROOT = iphoneos; 289 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 290 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 291 | }; 292 | name = Debug; 293 | }; 294 | C39F321B1F57E56E00B5F269 /* Release */ = { 295 | isa = XCBuildConfiguration; 296 | buildSettings = { 297 | ALWAYS_SEARCH_USER_PATHS = NO; 298 | CLANG_ANALYZER_NONNULL = YES; 299 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 300 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 301 | CLANG_CXX_LIBRARY = "libc++"; 302 | CLANG_ENABLE_MODULES = YES; 303 | CLANG_ENABLE_OBJC_ARC = YES; 304 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 305 | CLANG_WARN_BOOL_CONVERSION = YES; 306 | CLANG_WARN_COMMA = YES; 307 | CLANG_WARN_CONSTANT_CONVERSION = YES; 308 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 309 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 310 | CLANG_WARN_EMPTY_BODY = YES; 311 | CLANG_WARN_ENUM_CONVERSION = YES; 312 | CLANG_WARN_INFINITE_RECURSION = YES; 313 | CLANG_WARN_INT_CONVERSION = YES; 314 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 315 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 316 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 317 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 318 | CLANG_WARN_STRICT_PROTOTYPES = YES; 319 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 320 | CLANG_WARN_UNREACHABLE_CODE = YES; 321 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 322 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 323 | COPY_PHASE_STRIP = NO; 324 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 325 | ENABLE_NS_ASSERTIONS = NO; 326 | ENABLE_STRICT_OBJC_MSGSEND = YES; 327 | GCC_C_LANGUAGE_STANDARD = gnu99; 328 | GCC_NO_COMMON_BLOCKS = YES; 329 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 330 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 331 | GCC_WARN_UNDECLARED_SELECTOR = YES; 332 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 333 | GCC_WARN_UNUSED_FUNCTION = YES; 334 | GCC_WARN_UNUSED_VARIABLE = YES; 335 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 336 | MTL_ENABLE_DEBUG_INFO = NO; 337 | SDKROOT = iphoneos; 338 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 339 | VALIDATE_PRODUCT = YES; 340 | }; 341 | name = Release; 342 | }; 343 | C39F321D1F57E56E00B5F269 /* Debug */ = { 344 | isa = XCBuildConfiguration; 345 | buildSettings = { 346 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 347 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 348 | DEVELOPMENT_TEAM = KLVLNTBFM4; 349 | INFOPLIST_FILE = Example/Info.plist; 350 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 351 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 352 | PRODUCT_BUNDLE_IDENTIFIER = com.homefactory.Example; 353 | PRODUCT_NAME = "$(TARGET_NAME)"; 354 | SWIFT_VERSION = 5.0; 355 | }; 356 | name = Debug; 357 | }; 358 | C39F321E1F57E56E00B5F269 /* Release */ = { 359 | isa = XCBuildConfiguration; 360 | buildSettings = { 361 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 362 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 | DEVELOPMENT_TEAM = KLVLNTBFM4; 364 | INFOPLIST_FILE = Example/Info.plist; 365 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 366 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 367 | PRODUCT_BUNDLE_IDENTIFIER = com.homefactory.Example; 368 | PRODUCT_NAME = "$(TARGET_NAME)"; 369 | SWIFT_VERSION = 5.0; 370 | }; 371 | name = Release; 372 | }; 373 | /* End XCBuildConfiguration section */ 374 | 375 | /* Begin XCConfigurationList section */ 376 | C39F32051F57E56E00B5F269 /* Build configuration list for PBXProject "Example" */ = { 377 | isa = XCConfigurationList; 378 | buildConfigurations = ( 379 | C39F321A1F57E56E00B5F269 /* Debug */, 380 | C39F321B1F57E56E00B5F269 /* Release */, 381 | ); 382 | defaultConfigurationIsVisible = 0; 383 | defaultConfigurationName = Release; 384 | }; 385 | C39F321C1F57E56E00B5F269 /* Build configuration list for PBXNativeTarget "Example" */ = { 386 | isa = XCConfigurationList; 387 | buildConfigurations = ( 388 | C39F321D1F57E56E00B5F269 /* Debug */, 389 | C39F321E1F57E56E00B5F269 /* Release */, 390 | ); 391 | defaultConfigurationIsVisible = 0; 392 | defaultConfigurationName = Release; 393 | }; 394 | /* End XCConfigurationList section */ 395 | }; 396 | rootObject = C39F32021F57E56E00B5F269 /* Project object */; 397 | } 398 | --------------------------------------------------------------------------------