├── .DS_Store ├── Preview.gif ├── plistImage.jpg ├── ProfilePicker ├── Assets.xcassets │ ├── Contents.json │ ├── placeholder-profile.imageset │ │ ├── placeholder-profile.jpg │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── AppDelegate.swift └── ProfileController.swift ├── ProfilePicker.xcodeproj ├── xcuserdata │ ├── anasaman_p.xcuserdatad │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ └── anasp.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcuserdata │ │ ├── anasp.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── anasaman_p.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── project.pbxproj └── README.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anas-p/ImagePicker/HEAD/.DS_Store -------------------------------------------------------------------------------- /Preview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anas-p/ImagePicker/HEAD/Preview.gif -------------------------------------------------------------------------------- /plistImage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anas-p/ImagePicker/HEAD/plistImage.jpg -------------------------------------------------------------------------------- /ProfilePicker/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/xcuserdata/anasaman_p.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /ProfilePicker/Assets.xcassets/placeholder-profile.imageset/placeholder-profile.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anas-p/ImagePicker/HEAD/ProfilePicker/Assets.xcassets/placeholder-profile.imageset/placeholder-profile.jpg -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/xcuserdata/anasp.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/project.xcworkspace/xcuserdata/anasp.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anas-p/ImagePicker/HEAD/ProfilePicker.xcodeproj/project.xcworkspace/xcuserdata/anasp.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/project.xcworkspace/xcuserdata/anasaman_p.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anas-p/ImagePicker/HEAD/ProfilePicker.xcodeproj/project.xcworkspace/xcuserdata/anasaman_p.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ProfilePicker/Assets.xcassets/placeholder-profile.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "placeholder-profile.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/xcuserdata/anasaman_p.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ProfilePicker.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/xcuserdata/anasp.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ProfilePicker.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ImagePicker 2 | UIImagePickerController for camera and photo library 3 | 4 | ### Preview: 5 | ![Preview](https://github.com/anasamanp/ImagePicker/blob/master/Preview.gif) 6 | 7 | Declare `var imagePicker = UIImagePickerController()` and conform the delegates `UIImagePickerControllerDelegate, UINavigationControllerDelegate` 8 | 9 | You need to ask the use permission before access the camera, do this by adding usage key ***Privacy - Camera Usage Description*** to your app’s Info.plist together with a purpose string. 10 | 11 | ![plist](https://github.com/anasamanp/ImagePicker/blob/master/plistImage.jpg) 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /ProfilePicker/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 | -------------------------------------------------------------------------------- /ProfilePicker/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Profile Picker 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSCameraUsageDescription 26 | Profile Picker requires access to your phone’s camera. 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ProfilePicker/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 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /ProfilePicker/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ProfilePicker 4 | // 5 | // Created by Anas Zaheer on 11/12/17. 6 | // Copyright © 2017 nfnlabs. 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]?) -> 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 | -------------------------------------------------------------------------------- /ProfilePicker/ProfileController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ProfileController.swift 3 | // ProfilePicker 4 | // 5 | // Created by Anas P on 11/12/17. 6 | // Updated on 31/10/2023 7 | // 8 | 9 | import UIKit 10 | 11 | class ProfileController: UIViewController{ 12 | 13 | @IBOutlet weak var imgProfile: UIImageView! 14 | @IBOutlet weak var btnChooseImage: UIButton! 15 | 16 | var imagePicker = UIImagePickerController() 17 | 18 | override func viewDidLoad() { 19 | super.viewDidLoad() 20 | // Do any additional setup after loading the view, typically from a nib. 21 | } 22 | 23 | override func viewDidLayoutSubviews() { 24 | super.viewDidLayoutSubviews() 25 | self.imgProfile.layer.cornerRadius = imgProfile.bounds.width/2 26 | self.imgProfile.layer.borderWidth = 1 27 | self.imgProfile.layer.borderColor = UIColor.lightGray.cgColor 28 | 29 | self.btnChooseImage.layer.cornerRadius = 5 30 | } 31 | 32 | /// Button action 33 | @IBAction func btnChooseImageOnClick(_ sender: UIButton) { 34 | 35 | let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) 36 | alert.addAction(UIAlertAction(title: "Take Photo", style: .default, handler: { _ in 37 | self.openCamera() 38 | })) 39 | 40 | alert.addAction(UIAlertAction(title: "Choose Photo", style: .default, handler: { _ in 41 | self.openGallary() 42 | })) 43 | 44 | alert.addAction(UIAlertAction.init(title: "Cancel", style: .cancel, handler: nil)) 45 | 46 | //If you want work actionsheet on ipad then you have to use popoverPresentationController to present the actionsheet, otherwise app will crash in iPad 47 | switch UIDevice.current.userInterfaceIdiom { 48 | case .pad: 49 | alert.popoverPresentationController?.sourceView = sender 50 | alert.popoverPresentationController?.sourceRect = sender.bounds 51 | alert.popoverPresentationController?.permittedArrowDirections = .up 52 | default: 53 | break 54 | } 55 | 56 | self.present(alert, animated: true, completion: nil) 57 | } 58 | 59 | /// Open the camera 60 | func openCamera() { 61 | if(UIImagePickerController .isSourceTypeAvailable(UIImagePickerController.SourceType.camera)){ 62 | imagePicker.sourceType = UIImagePickerController.SourceType.camera 63 | //If you dont want to edit the photo then you can set allowsEditing to false 64 | imagePicker.allowsEditing = true 65 | imagePicker.delegate = self 66 | self.present(imagePicker, animated: true, completion: nil) 67 | } 68 | else{ 69 | let alert = UIAlertController(title: "Warning", message: "You don't have camera", preferredStyle: .alert) 70 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) 71 | self.present(alert, animated: true, completion: nil) 72 | } 73 | } 74 | 75 | /// Choose image from camera roll 76 | func openGallary() { 77 | imagePicker.sourceType = UIImagePickerController.SourceType.photoLibrary 78 | // If you don't want to edit the photo then you can set allowsEditing to false 79 | imagePicker.allowsEditing = true 80 | imagePicker.delegate = self 81 | self.present(imagePicker, animated: true, completion: nil) 82 | } 83 | } 84 | 85 | // MARK: - UIImagePickerControllerDelegate 86 | 87 | extension ProfileController: UIImagePickerControllerDelegate, UINavigationControllerDelegate { 88 | func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { 89 | // Get the image from the info dictionary. 90 | if let editedImage = info[.editedImage] as? UIImage { 91 | self.imgProfile.image = editedImage 92 | } 93 | 94 | // Dismiss the UIImagePicker after selection 95 | picker.dismiss(animated: true, completion: nil) 96 | } 97 | 98 | func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { 99 | picker.isNavigationBarHidden = false 100 | self.dismiss(animated: true, completion: nil) 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /ProfilePicker/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 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /ProfilePicker.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 26AC38641FDE9AEE00FDEC16 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26AC38631FDE9AEE00FDEC16 /* AppDelegate.swift */; }; 11 | 26AC38661FDE9AEE00FDEC16 /* ProfileController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26AC38651FDE9AEE00FDEC16 /* ProfileController.swift */; }; 12 | 26AC38691FDE9AEE00FDEC16 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 26AC38671FDE9AEE00FDEC16 /* Main.storyboard */; }; 13 | 26AC386B1FDE9AEE00FDEC16 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 26AC386A1FDE9AEE00FDEC16 /* Assets.xcassets */; }; 14 | 26AC386E1FDE9AEE00FDEC16 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 26AC386C1FDE9AEE00FDEC16 /* LaunchScreen.storyboard */; }; 15 | /* End PBXBuildFile section */ 16 | 17 | /* Begin PBXFileReference section */ 18 | 26AC38601FDE9AEE00FDEC16 /* ProfilePicker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ProfilePicker.app; sourceTree = BUILT_PRODUCTS_DIR; }; 19 | 26AC38631FDE9AEE00FDEC16 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 20 | 26AC38651FDE9AEE00FDEC16 /* ProfileController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProfileController.swift; sourceTree = ""; }; 21 | 26AC38681FDE9AEE00FDEC16 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 22 | 26AC386A1FDE9AEE00FDEC16 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 23 | 26AC386D1FDE9AEE00FDEC16 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 24 | 26AC386F1FDE9AEE00FDEC16 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 25 | /* End PBXFileReference section */ 26 | 27 | /* Begin PBXFrameworksBuildPhase section */ 28 | 26AC385D1FDE9AEE00FDEC16 /* Frameworks */ = { 29 | isa = PBXFrameworksBuildPhase; 30 | buildActionMask = 2147483647; 31 | files = ( 32 | ); 33 | runOnlyForDeploymentPostprocessing = 0; 34 | }; 35 | /* End PBXFrameworksBuildPhase section */ 36 | 37 | /* Begin PBXGroup section */ 38 | 26AC38571FDE9AEE00FDEC16 = { 39 | isa = PBXGroup; 40 | children = ( 41 | 26AC38621FDE9AEE00FDEC16 /* ProfilePicker */, 42 | 26AC38611FDE9AEE00FDEC16 /* Products */, 43 | ); 44 | sourceTree = ""; 45 | }; 46 | 26AC38611FDE9AEE00FDEC16 /* Products */ = { 47 | isa = PBXGroup; 48 | children = ( 49 | 26AC38601FDE9AEE00FDEC16 /* ProfilePicker.app */, 50 | ); 51 | name = Products; 52 | sourceTree = ""; 53 | }; 54 | 26AC38621FDE9AEE00FDEC16 /* ProfilePicker */ = { 55 | isa = PBXGroup; 56 | children = ( 57 | 26AC38631FDE9AEE00FDEC16 /* AppDelegate.swift */, 58 | 26AC38651FDE9AEE00FDEC16 /* ProfileController.swift */, 59 | 26AC38671FDE9AEE00FDEC16 /* Main.storyboard */, 60 | 26AC386A1FDE9AEE00FDEC16 /* Assets.xcassets */, 61 | 26AC386C1FDE9AEE00FDEC16 /* LaunchScreen.storyboard */, 62 | 26AC386F1FDE9AEE00FDEC16 /* Info.plist */, 63 | ); 64 | path = ProfilePicker; 65 | sourceTree = ""; 66 | }; 67 | /* End PBXGroup section */ 68 | 69 | /* Begin PBXNativeTarget section */ 70 | 26AC385F1FDE9AEE00FDEC16 /* ProfilePicker */ = { 71 | isa = PBXNativeTarget; 72 | buildConfigurationList = 26AC38721FDE9AEE00FDEC16 /* Build configuration list for PBXNativeTarget "ProfilePicker" */; 73 | buildPhases = ( 74 | 26AC385C1FDE9AEE00FDEC16 /* Sources */, 75 | 26AC385D1FDE9AEE00FDEC16 /* Frameworks */, 76 | 26AC385E1FDE9AEE00FDEC16 /* Resources */, 77 | ); 78 | buildRules = ( 79 | ); 80 | dependencies = ( 81 | ); 82 | name = ProfilePicker; 83 | productName = ProfilePicker; 84 | productReference = 26AC38601FDE9AEE00FDEC16 /* ProfilePicker.app */; 85 | productType = "com.apple.product-type.application"; 86 | }; 87 | /* End PBXNativeTarget section */ 88 | 89 | /* Begin PBXProject section */ 90 | 26AC38581FDE9AEE00FDEC16 /* Project object */ = { 91 | isa = PBXProject; 92 | attributes = { 93 | BuildIndependentTargetsInParallel = YES; 94 | LastSwiftUpdateCheck = 0920; 95 | LastUpgradeCheck = 1500; 96 | ORGANIZATIONNAME = nfnlabs; 97 | TargetAttributes = { 98 | 26AC385F1FDE9AEE00FDEC16 = { 99 | CreatedOnToolsVersion = 9.2; 100 | LastSwiftMigration = 1500; 101 | ProvisioningStyle = Automatic; 102 | }; 103 | }; 104 | }; 105 | buildConfigurationList = 26AC385B1FDE9AEE00FDEC16 /* Build configuration list for PBXProject "ProfilePicker" */; 106 | compatibilityVersion = "Xcode 8.0"; 107 | developmentRegion = en; 108 | hasScannedForEncodings = 0; 109 | knownRegions = ( 110 | en, 111 | Base, 112 | ); 113 | mainGroup = 26AC38571FDE9AEE00FDEC16; 114 | productRefGroup = 26AC38611FDE9AEE00FDEC16 /* Products */; 115 | projectDirPath = ""; 116 | projectRoot = ""; 117 | targets = ( 118 | 26AC385F1FDE9AEE00FDEC16 /* ProfilePicker */, 119 | ); 120 | }; 121 | /* End PBXProject section */ 122 | 123 | /* Begin PBXResourcesBuildPhase section */ 124 | 26AC385E1FDE9AEE00FDEC16 /* Resources */ = { 125 | isa = PBXResourcesBuildPhase; 126 | buildActionMask = 2147483647; 127 | files = ( 128 | 26AC386E1FDE9AEE00FDEC16 /* LaunchScreen.storyboard in Resources */, 129 | 26AC386B1FDE9AEE00FDEC16 /* Assets.xcassets in Resources */, 130 | 26AC38691FDE9AEE00FDEC16 /* Main.storyboard in Resources */, 131 | ); 132 | runOnlyForDeploymentPostprocessing = 0; 133 | }; 134 | /* End PBXResourcesBuildPhase section */ 135 | 136 | /* Begin PBXSourcesBuildPhase section */ 137 | 26AC385C1FDE9AEE00FDEC16 /* Sources */ = { 138 | isa = PBXSourcesBuildPhase; 139 | buildActionMask = 2147483647; 140 | files = ( 141 | 26AC38661FDE9AEE00FDEC16 /* ProfileController.swift in Sources */, 142 | 26AC38641FDE9AEE00FDEC16 /* AppDelegate.swift in Sources */, 143 | ); 144 | runOnlyForDeploymentPostprocessing = 0; 145 | }; 146 | /* End PBXSourcesBuildPhase section */ 147 | 148 | /* Begin PBXVariantGroup section */ 149 | 26AC38671FDE9AEE00FDEC16 /* Main.storyboard */ = { 150 | isa = PBXVariantGroup; 151 | children = ( 152 | 26AC38681FDE9AEE00FDEC16 /* Base */, 153 | ); 154 | name = Main.storyboard; 155 | sourceTree = ""; 156 | }; 157 | 26AC386C1FDE9AEE00FDEC16 /* LaunchScreen.storyboard */ = { 158 | isa = PBXVariantGroup; 159 | children = ( 160 | 26AC386D1FDE9AEE00FDEC16 /* Base */, 161 | ); 162 | name = LaunchScreen.storyboard; 163 | sourceTree = ""; 164 | }; 165 | /* End PBXVariantGroup section */ 166 | 167 | /* Begin XCBuildConfiguration section */ 168 | 26AC38701FDE9AEE00FDEC16 /* Debug */ = { 169 | isa = XCBuildConfiguration; 170 | buildSettings = { 171 | ALWAYS_SEARCH_USER_PATHS = NO; 172 | CLANG_ANALYZER_NONNULL = YES; 173 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 174 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 175 | CLANG_CXX_LIBRARY = "libc++"; 176 | CLANG_ENABLE_MODULES = YES; 177 | CLANG_ENABLE_OBJC_ARC = YES; 178 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 179 | CLANG_WARN_BOOL_CONVERSION = YES; 180 | CLANG_WARN_COMMA = YES; 181 | CLANG_WARN_CONSTANT_CONVERSION = YES; 182 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 183 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 184 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 185 | CLANG_WARN_EMPTY_BODY = YES; 186 | CLANG_WARN_ENUM_CONVERSION = YES; 187 | CLANG_WARN_INFINITE_RECURSION = YES; 188 | CLANG_WARN_INT_CONVERSION = YES; 189 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 190 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 191 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 192 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 193 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 194 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 195 | CLANG_WARN_STRICT_PROTOTYPES = YES; 196 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 197 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 198 | CLANG_WARN_UNREACHABLE_CODE = YES; 199 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 200 | CODE_SIGN_IDENTITY = "iPhone Developer"; 201 | COPY_PHASE_STRIP = NO; 202 | DEBUG_INFORMATION_FORMAT = dwarf; 203 | ENABLE_STRICT_OBJC_MSGSEND = YES; 204 | ENABLE_TESTABILITY = YES; 205 | ENABLE_USER_SCRIPT_SANDBOXING = YES; 206 | GCC_C_LANGUAGE_STANDARD = gnu11; 207 | GCC_DYNAMIC_NO_PIC = NO; 208 | GCC_NO_COMMON_BLOCKS = YES; 209 | GCC_OPTIMIZATION_LEVEL = 0; 210 | GCC_PREPROCESSOR_DEFINITIONS = ( 211 | "DEBUG=1", 212 | "$(inherited)", 213 | ); 214 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 215 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 216 | GCC_WARN_UNDECLARED_SELECTOR = YES; 217 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 218 | GCC_WARN_UNUSED_FUNCTION = YES; 219 | GCC_WARN_UNUSED_VARIABLE = YES; 220 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 221 | MTL_ENABLE_DEBUG_INFO = YES; 222 | ONLY_ACTIVE_ARCH = YES; 223 | SDKROOT = iphoneos; 224 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 225 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 226 | }; 227 | name = Debug; 228 | }; 229 | 26AC38711FDE9AEE00FDEC16 /* Release */ = { 230 | isa = XCBuildConfiguration; 231 | buildSettings = { 232 | ALWAYS_SEARCH_USER_PATHS = NO; 233 | CLANG_ANALYZER_NONNULL = YES; 234 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 235 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 236 | CLANG_CXX_LIBRARY = "libc++"; 237 | CLANG_ENABLE_MODULES = YES; 238 | CLANG_ENABLE_OBJC_ARC = YES; 239 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 240 | CLANG_WARN_BOOL_CONVERSION = YES; 241 | CLANG_WARN_COMMA = YES; 242 | CLANG_WARN_CONSTANT_CONVERSION = YES; 243 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 244 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 245 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 246 | CLANG_WARN_EMPTY_BODY = YES; 247 | CLANG_WARN_ENUM_CONVERSION = YES; 248 | CLANG_WARN_INFINITE_RECURSION = YES; 249 | CLANG_WARN_INT_CONVERSION = YES; 250 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 251 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 252 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 253 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 254 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 255 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 256 | CLANG_WARN_STRICT_PROTOTYPES = YES; 257 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 258 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 259 | CLANG_WARN_UNREACHABLE_CODE = YES; 260 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 261 | CODE_SIGN_IDENTITY = "iPhone Developer"; 262 | COPY_PHASE_STRIP = NO; 263 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 264 | ENABLE_NS_ASSERTIONS = NO; 265 | ENABLE_STRICT_OBJC_MSGSEND = YES; 266 | ENABLE_USER_SCRIPT_SANDBOXING = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu11; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SWIFT_COMPILATION_MODE = wholemodule; 279 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Release; 283 | }; 284 | 26AC38731FDE9AEE00FDEC16 /* Debug */ = { 285 | isa = XCBuildConfiguration; 286 | buildSettings = { 287 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 288 | CODE_SIGN_STYLE = Automatic; 289 | DEVELOPMENT_TEAM = EPRAJ965WT; 290 | INFOPLIST_FILE = ProfilePicker/Info.plist; 291 | IPHONEOS_DEPLOYMENT_TARGET = 15.0; 292 | LD_RUNPATH_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "@executable_path/Frameworks", 295 | ); 296 | PRODUCT_BUNDLE_IDENTIFIER = com.anas.ProfilePicker; 297 | PRODUCT_NAME = "$(TARGET_NAME)"; 298 | SWIFT_VERSION = 5.0; 299 | TARGETED_DEVICE_FAMILY = "1,2"; 300 | }; 301 | name = Debug; 302 | }; 303 | 26AC38741FDE9AEE00FDEC16 /* Release */ = { 304 | isa = XCBuildConfiguration; 305 | buildSettings = { 306 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 307 | CODE_SIGN_STYLE = Automatic; 308 | DEVELOPMENT_TEAM = EPRAJ965WT; 309 | INFOPLIST_FILE = ProfilePicker/Info.plist; 310 | IPHONEOS_DEPLOYMENT_TARGET = 15.0; 311 | LD_RUNPATH_SEARCH_PATHS = ( 312 | "$(inherited)", 313 | "@executable_path/Frameworks", 314 | ); 315 | PRODUCT_BUNDLE_IDENTIFIER = com.anas.ProfilePicker; 316 | PRODUCT_NAME = "$(TARGET_NAME)"; 317 | SWIFT_VERSION = 5.0; 318 | TARGETED_DEVICE_FAMILY = "1,2"; 319 | }; 320 | name = Release; 321 | }; 322 | /* End XCBuildConfiguration section */ 323 | 324 | /* Begin XCConfigurationList section */ 325 | 26AC385B1FDE9AEE00FDEC16 /* Build configuration list for PBXProject "ProfilePicker" */ = { 326 | isa = XCConfigurationList; 327 | buildConfigurations = ( 328 | 26AC38701FDE9AEE00FDEC16 /* Debug */, 329 | 26AC38711FDE9AEE00FDEC16 /* Release */, 330 | ); 331 | defaultConfigurationIsVisible = 0; 332 | defaultConfigurationName = Release; 333 | }; 334 | 26AC38721FDE9AEE00FDEC16 /* Build configuration list for PBXNativeTarget "ProfilePicker" */ = { 335 | isa = XCConfigurationList; 336 | buildConfigurations = ( 337 | 26AC38731FDE9AEE00FDEC16 /* Debug */, 338 | 26AC38741FDE9AEE00FDEC16 /* Release */, 339 | ); 340 | defaultConfigurationIsVisible = 0; 341 | defaultConfigurationName = Release; 342 | }; 343 | /* End XCConfigurationList section */ 344 | }; 345 | rootObject = 26AC38581FDE9AEE00FDEC16 /* Project object */; 346 | } 347 | --------------------------------------------------------------------------------