├── SwiftMFMessageComposeViewController.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── README.md ├── SwiftMFMessageComposeViewControllerTests ├── Info.plist └── SwiftMFMessageComposeViewControllerTests.swift └── SwiftMFMessageComposeViewController ├── ViewController.swift ├── MessageComposer.swift ├── Images.xcassets └── AppIcon.appiconset │ └── Contents.json ├── Info.plist ├── AppDelegate.swift └── Base.lproj ├── Main.storyboard └── LaunchScreen.xib /SwiftMFMessageComposeViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SwiftMFMessageComposeViewController 2 | 3 | ## Resources 4 | This repository contains an example XCode project for the blog post at [andrewcbancroft.com](http://www.andrewcbancroft.com) titled [Send Text Message In-App – Using MFMessageComposeViewController with Swift](http://www.andrewcbancroft.com/2014/10/28/send-text-message-in-app-using-mfmessagecomposeviewcontroller-with-swift/). 5 | 6 | ## Compatibility 7 | Verified that this repository's code works in XCode 6.3 with Swift 1.2 8 | -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewControllerTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.andrewcbancroft.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewController/ViewController.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | class ViewController: UIViewController { 4 | // Create a MessageComposer 5 | let messageComposer = MessageComposer() 6 | 7 | @IBAction func sendTextMessageButtonTapped(sender: UIButton) { 8 | // Make sure the device can send text messages 9 | if (messageComposer.canSendText()) { 10 | // Obtain a configured MFMessageComposeViewController 11 | let messageComposeVC = messageComposer.configuredMessageComposeViewController() 12 | 13 | // Present the configured MFMessageComposeViewController instance 14 | // Note that the dismissal of the VC will be handled by the messageComposer instance, 15 | // since it implements the appropriate delegate call-back 16 | presentViewController(messageComposeVC, animated: true, completion: nil) 17 | } else { 18 | // Let the user know if his/her device isn't able to send text messages 19 | let errorAlert = UIAlertView(title: "Cannot Send Text Message", message: "Your device is not able to send text messages.", delegate: self, cancelButtonTitle: "OK") 20 | errorAlert.show() 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewControllerTests/SwiftMFMessageComposeViewControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SwiftMFMessageComposeViewControllerTests.swift 3 | // SwiftMFMessageComposeViewControllerTests 4 | // 5 | // Created by Andrew Bancroft on 10/26/14. 6 | // Copyright (c) 2014 Andrew Bancroft. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class SwiftMFMessageComposeViewControllerTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewController/MessageComposer.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import MessageUI 3 | 4 | let textMessageRecipients = ["1-800-867-5309"] // for pre-populating the recipients list (optional, depending on your needs) 5 | 6 | class MessageComposer: NSObject, MFMessageComposeViewControllerDelegate { 7 | 8 | // A wrapper function to indicate whether or not a text message can be sent from the user's device 9 | func canSendText() -> Bool { 10 | return MFMessageComposeViewController.canSendText() 11 | } 12 | 13 | // Configures and returns a MFMessageComposeViewController instance 14 | func configuredMessageComposeViewController() -> MFMessageComposeViewController { 15 | let messageComposeVC = MFMessageComposeViewController() 16 | messageComposeVC.messageComposeDelegate = self // Make sure to set this property to self, so that the controller can be dismissed! 17 | messageComposeVC.recipients = textMessageRecipients 18 | messageComposeVC.body = "Hey friend - Just sending a text message in-app using Swift!" 19 | return messageComposeVC 20 | } 21 | 22 | // MFMessageComposeViewControllerDelegate callback - dismisses the view controller when the user is finished with it 23 | func messageComposeViewController(controller: MFMessageComposeViewController!, didFinishWithResult result: MessageComposeResult) { 24 | controller.dismissViewControllerAnimated(true, completion: nil) 25 | } 26 | } -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewController/Images.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 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewController/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.andrewcbancroft.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewController/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SwiftMFMessageComposeViewController 4 | // 5 | // Created by Andrew Bancroft on 10/26/14. 6 | // Copyright (c) 2014 Andrew Bancroft. 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: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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 | -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewController/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewController/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /SwiftMFMessageComposeViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | F25208FE19FDA43000F08AFE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F25208FD19FDA43000F08AFE /* AppDelegate.swift */; }; 11 | F252090019FDA43000F08AFE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F25208FF19FDA43000F08AFE /* ViewController.swift */; }; 12 | F252090319FDA43000F08AFE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F252090119FDA43000F08AFE /* Main.storyboard */; }; 13 | F252090519FDA43000F08AFE /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F252090419FDA43000F08AFE /* Images.xcassets */; }; 14 | F252090819FDA43000F08AFE /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = F252090619FDA43000F08AFE /* LaunchScreen.xib */; }; 15 | F252091419FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F252091319FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests.swift */; }; 16 | F252091E19FDAAAC00F08AFE /* MessageComposer.swift in Sources */ = {isa = PBXBuildFile; fileRef = F252091D19FDAAAC00F08AFE /* MessageComposer.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | F252090E19FDA43000F08AFE /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = F25208F019FDA43000F08AFE /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = F25208F719FDA43000F08AFE; 25 | remoteInfo = SwiftMFMessageComposeViewController; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | F25208F819FDA43000F08AFE /* SwiftMFMessageComposeViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftMFMessageComposeViewController.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | F25208FC19FDA43000F08AFE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | F25208FD19FDA43000F08AFE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33 | F25208FF19FDA43000F08AFE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 34 | F252090219FDA43000F08AFE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 35 | F252090419FDA43000F08AFE /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 36 | F252090719FDA43000F08AFE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 37 | F252090D19FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwiftMFMessageComposeViewControllerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | F252091219FDA43000F08AFE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | F252091319FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftMFMessageComposeViewControllerTests.swift; sourceTree = ""; }; 40 | F252091D19FDAAAC00F08AFE /* MessageComposer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MessageComposer.swift; sourceTree = ""; }; 41 | /* End PBXFileReference section */ 42 | 43 | /* Begin PBXFrameworksBuildPhase section */ 44 | F25208F519FDA43000F08AFE /* Frameworks */ = { 45 | isa = PBXFrameworksBuildPhase; 46 | buildActionMask = 2147483647; 47 | files = ( 48 | ); 49 | runOnlyForDeploymentPostprocessing = 0; 50 | }; 51 | F252090A19FDA43000F08AFE /* Frameworks */ = { 52 | isa = PBXFrameworksBuildPhase; 53 | buildActionMask = 2147483647; 54 | files = ( 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | /* End PBXFrameworksBuildPhase section */ 59 | 60 | /* Begin PBXGroup section */ 61 | F25208EF19FDA43000F08AFE = { 62 | isa = PBXGroup; 63 | children = ( 64 | F25208FA19FDA43000F08AFE /* SwiftMFMessageComposeViewController */, 65 | F252091019FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests */, 66 | F25208F919FDA43000F08AFE /* Products */, 67 | ); 68 | sourceTree = ""; 69 | }; 70 | F25208F919FDA43000F08AFE /* Products */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | F25208F819FDA43000F08AFE /* SwiftMFMessageComposeViewController.app */, 74 | F252090D19FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests.xctest */, 75 | ); 76 | name = Products; 77 | sourceTree = ""; 78 | }; 79 | F25208FA19FDA43000F08AFE /* SwiftMFMessageComposeViewController */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | F252090119FDA43000F08AFE /* Main.storyboard */, 83 | F25208FF19FDA43000F08AFE /* ViewController.swift */, 84 | F252091D19FDAAAC00F08AFE /* MessageComposer.swift */, 85 | F25208FD19FDA43000F08AFE /* AppDelegate.swift */, 86 | F252090419FDA43000F08AFE /* Images.xcassets */, 87 | F252090619FDA43000F08AFE /* LaunchScreen.xib */, 88 | F25208FB19FDA43000F08AFE /* Supporting Files */, 89 | ); 90 | path = SwiftMFMessageComposeViewController; 91 | sourceTree = ""; 92 | }; 93 | F25208FB19FDA43000F08AFE /* Supporting Files */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | F25208FC19FDA43000F08AFE /* Info.plist */, 97 | ); 98 | name = "Supporting Files"; 99 | sourceTree = ""; 100 | }; 101 | F252091019FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | F252091319FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests.swift */, 105 | F252091119FDA43000F08AFE /* Supporting Files */, 106 | ); 107 | path = SwiftMFMessageComposeViewControllerTests; 108 | sourceTree = ""; 109 | }; 110 | F252091119FDA43000F08AFE /* Supporting Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | F252091219FDA43000F08AFE /* Info.plist */, 114 | ); 115 | name = "Supporting Files"; 116 | sourceTree = ""; 117 | }; 118 | /* End PBXGroup section */ 119 | 120 | /* Begin PBXNativeTarget section */ 121 | F25208F719FDA43000F08AFE /* SwiftMFMessageComposeViewController */ = { 122 | isa = PBXNativeTarget; 123 | buildConfigurationList = F252091719FDA43000F08AFE /* Build configuration list for PBXNativeTarget "SwiftMFMessageComposeViewController" */; 124 | buildPhases = ( 125 | F25208F419FDA43000F08AFE /* Sources */, 126 | F25208F519FDA43000F08AFE /* Frameworks */, 127 | F25208F619FDA43000F08AFE /* Resources */, 128 | ); 129 | buildRules = ( 130 | ); 131 | dependencies = ( 132 | ); 133 | name = SwiftMFMessageComposeViewController; 134 | productName = SwiftMFMessageComposeViewController; 135 | productReference = F25208F819FDA43000F08AFE /* SwiftMFMessageComposeViewController.app */; 136 | productType = "com.apple.product-type.application"; 137 | }; 138 | F252090C19FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests */ = { 139 | isa = PBXNativeTarget; 140 | buildConfigurationList = F252091A19FDA43000F08AFE /* Build configuration list for PBXNativeTarget "SwiftMFMessageComposeViewControllerTests" */; 141 | buildPhases = ( 142 | F252090919FDA43000F08AFE /* Sources */, 143 | F252090A19FDA43000F08AFE /* Frameworks */, 144 | F252090B19FDA43000F08AFE /* Resources */, 145 | ); 146 | buildRules = ( 147 | ); 148 | dependencies = ( 149 | F252090F19FDA43000F08AFE /* PBXTargetDependency */, 150 | ); 151 | name = SwiftMFMessageComposeViewControllerTests; 152 | productName = SwiftMFMessageComposeViewControllerTests; 153 | productReference = F252090D19FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests.xctest */; 154 | productType = "com.apple.product-type.bundle.unit-test"; 155 | }; 156 | /* End PBXNativeTarget section */ 157 | 158 | /* Begin PBXProject section */ 159 | F25208F019FDA43000F08AFE /* Project object */ = { 160 | isa = PBXProject; 161 | attributes = { 162 | LastUpgradeCheck = 0600; 163 | ORGANIZATIONNAME = "Andrew Bancroft"; 164 | TargetAttributes = { 165 | F25208F719FDA43000F08AFE = { 166 | CreatedOnToolsVersion = 6.0; 167 | }; 168 | F252090C19FDA43000F08AFE = { 169 | CreatedOnToolsVersion = 6.0; 170 | TestTargetID = F25208F719FDA43000F08AFE; 171 | }; 172 | }; 173 | }; 174 | buildConfigurationList = F25208F319FDA43000F08AFE /* Build configuration list for PBXProject "SwiftMFMessageComposeViewController" */; 175 | compatibilityVersion = "Xcode 3.2"; 176 | developmentRegion = English; 177 | hasScannedForEncodings = 0; 178 | knownRegions = ( 179 | en, 180 | Base, 181 | ); 182 | mainGroup = F25208EF19FDA43000F08AFE; 183 | productRefGroup = F25208F919FDA43000F08AFE /* Products */; 184 | projectDirPath = ""; 185 | projectRoot = ""; 186 | targets = ( 187 | F25208F719FDA43000F08AFE /* SwiftMFMessageComposeViewController */, 188 | F252090C19FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests */, 189 | ); 190 | }; 191 | /* End PBXProject section */ 192 | 193 | /* Begin PBXResourcesBuildPhase section */ 194 | F25208F619FDA43000F08AFE /* Resources */ = { 195 | isa = PBXResourcesBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | F252090319FDA43000F08AFE /* Main.storyboard in Resources */, 199 | F252090819FDA43000F08AFE /* LaunchScreen.xib in Resources */, 200 | F252090519FDA43000F08AFE /* Images.xcassets in Resources */, 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | }; 204 | F252090B19FDA43000F08AFE /* Resources */ = { 205 | isa = PBXResourcesBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | /* End PBXResourcesBuildPhase section */ 212 | 213 | /* Begin PBXSourcesBuildPhase section */ 214 | F25208F419FDA43000F08AFE /* Sources */ = { 215 | isa = PBXSourcesBuildPhase; 216 | buildActionMask = 2147483647; 217 | files = ( 218 | F252091E19FDAAAC00F08AFE /* MessageComposer.swift in Sources */, 219 | F252090019FDA43000F08AFE /* ViewController.swift in Sources */, 220 | F25208FE19FDA43000F08AFE /* AppDelegate.swift in Sources */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | F252090919FDA43000F08AFE /* Sources */ = { 225 | isa = PBXSourcesBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | F252091419FDA43000F08AFE /* SwiftMFMessageComposeViewControllerTests.swift in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXTargetDependency section */ 235 | F252090F19FDA43000F08AFE /* PBXTargetDependency */ = { 236 | isa = PBXTargetDependency; 237 | target = F25208F719FDA43000F08AFE /* SwiftMFMessageComposeViewController */; 238 | targetProxy = F252090E19FDA43000F08AFE /* PBXContainerItemProxy */; 239 | }; 240 | /* End PBXTargetDependency section */ 241 | 242 | /* Begin PBXVariantGroup section */ 243 | F252090119FDA43000F08AFE /* Main.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | F252090219FDA43000F08AFE /* Base */, 247 | ); 248 | name = Main.storyboard; 249 | sourceTree = ""; 250 | }; 251 | F252090619FDA43000F08AFE /* LaunchScreen.xib */ = { 252 | isa = PBXVariantGroup; 253 | children = ( 254 | F252090719FDA43000F08AFE /* Base */, 255 | ); 256 | name = LaunchScreen.xib; 257 | sourceTree = ""; 258 | }; 259 | /* End PBXVariantGroup section */ 260 | 261 | /* Begin XCBuildConfiguration section */ 262 | F252091519FDA43000F08AFE /* Debug */ = { 263 | isa = XCBuildConfiguration; 264 | buildSettings = { 265 | ALWAYS_SEARCH_USER_PATHS = NO; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BOOL_CONVERSION = YES; 271 | CLANG_WARN_CONSTANT_CONVERSION = YES; 272 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 273 | CLANG_WARN_EMPTY_BODY = YES; 274 | CLANG_WARN_ENUM_CONVERSION = YES; 275 | CLANG_WARN_INT_CONVERSION = YES; 276 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 277 | CLANG_WARN_UNREACHABLE_CODE = YES; 278 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 279 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 280 | COPY_PHASE_STRIP = NO; 281 | ENABLE_STRICT_OBJC_MSGSEND = YES; 282 | GCC_C_LANGUAGE_STANDARD = gnu99; 283 | GCC_DYNAMIC_NO_PIC = NO; 284 | GCC_OPTIMIZATION_LEVEL = 0; 285 | GCC_PREPROCESSOR_DEFINITIONS = ( 286 | "DEBUG=1", 287 | "$(inherited)", 288 | ); 289 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 297 | MTL_ENABLE_DEBUG_INFO = YES; 298 | ONLY_ACTIVE_ARCH = YES; 299 | SDKROOT = iphoneos; 300 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 301 | TARGETED_DEVICE_FAMILY = "1,2"; 302 | }; 303 | name = Debug; 304 | }; 305 | F252091619FDA43000F08AFE /* Release */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 310 | CLANG_CXX_LIBRARY = "libc++"; 311 | CLANG_ENABLE_MODULES = YES; 312 | CLANG_ENABLE_OBJC_ARC = YES; 313 | CLANG_WARN_BOOL_CONVERSION = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 316 | CLANG_WARN_EMPTY_BODY = YES; 317 | CLANG_WARN_ENUM_CONVERSION = YES; 318 | CLANG_WARN_INT_CONVERSION = YES; 319 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 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 = YES; 324 | ENABLE_NS_ASSERTIONS = NO; 325 | ENABLE_STRICT_OBJC_MSGSEND = YES; 326 | GCC_C_LANGUAGE_STANDARD = gnu99; 327 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 328 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 329 | GCC_WARN_UNDECLARED_SELECTOR = YES; 330 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 331 | GCC_WARN_UNUSED_FUNCTION = YES; 332 | GCC_WARN_UNUSED_VARIABLE = YES; 333 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 334 | MTL_ENABLE_DEBUG_INFO = NO; 335 | SDKROOT = iphoneos; 336 | TARGETED_DEVICE_FAMILY = "1,2"; 337 | VALIDATE_PRODUCT = YES; 338 | }; 339 | name = Release; 340 | }; 341 | F252091819FDA43000F08AFE /* Debug */ = { 342 | isa = XCBuildConfiguration; 343 | buildSettings = { 344 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 345 | INFOPLIST_FILE = SwiftMFMessageComposeViewController/Info.plist; 346 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 347 | PRODUCT_NAME = "$(TARGET_NAME)"; 348 | }; 349 | name = Debug; 350 | }; 351 | F252091919FDA43000F08AFE /* Release */ = { 352 | isa = XCBuildConfiguration; 353 | buildSettings = { 354 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 355 | INFOPLIST_FILE = SwiftMFMessageComposeViewController/Info.plist; 356 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 357 | PRODUCT_NAME = "$(TARGET_NAME)"; 358 | }; 359 | name = Release; 360 | }; 361 | F252091B19FDA43000F08AFE /* Debug */ = { 362 | isa = XCBuildConfiguration; 363 | buildSettings = { 364 | BUNDLE_LOADER = "$(TEST_HOST)"; 365 | FRAMEWORK_SEARCH_PATHS = ( 366 | "$(SDKROOT)/Developer/Library/Frameworks", 367 | "$(inherited)", 368 | ); 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | INFOPLIST_FILE = SwiftMFMessageComposeViewControllerTests/Info.plist; 374 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 375 | PRODUCT_NAME = "$(TARGET_NAME)"; 376 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwiftMFMessageComposeViewController.app/SwiftMFMessageComposeViewController"; 377 | }; 378 | name = Debug; 379 | }; 380 | F252091C19FDA43000F08AFE /* Release */ = { 381 | isa = XCBuildConfiguration; 382 | buildSettings = { 383 | BUNDLE_LOADER = "$(TEST_HOST)"; 384 | FRAMEWORK_SEARCH_PATHS = ( 385 | "$(SDKROOT)/Developer/Library/Frameworks", 386 | "$(inherited)", 387 | ); 388 | INFOPLIST_FILE = SwiftMFMessageComposeViewControllerTests/Info.plist; 389 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 390 | PRODUCT_NAME = "$(TARGET_NAME)"; 391 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwiftMFMessageComposeViewController.app/SwiftMFMessageComposeViewController"; 392 | }; 393 | name = Release; 394 | }; 395 | /* End XCBuildConfiguration section */ 396 | 397 | /* Begin XCConfigurationList section */ 398 | F25208F319FDA43000F08AFE /* Build configuration list for PBXProject "SwiftMFMessageComposeViewController" */ = { 399 | isa = XCConfigurationList; 400 | buildConfigurations = ( 401 | F252091519FDA43000F08AFE /* Debug */, 402 | F252091619FDA43000F08AFE /* Release */, 403 | ); 404 | defaultConfigurationIsVisible = 0; 405 | defaultConfigurationName = Release; 406 | }; 407 | F252091719FDA43000F08AFE /* Build configuration list for PBXNativeTarget "SwiftMFMessageComposeViewController" */ = { 408 | isa = XCConfigurationList; 409 | buildConfigurations = ( 410 | F252091819FDA43000F08AFE /* Debug */, 411 | F252091919FDA43000F08AFE /* Release */, 412 | ); 413 | defaultConfigurationIsVisible = 0; 414 | }; 415 | F252091A19FDA43000F08AFE /* Build configuration list for PBXNativeTarget "SwiftMFMessageComposeViewControllerTests" */ = { 416 | isa = XCConfigurationList; 417 | buildConfigurations = ( 418 | F252091B19FDA43000F08AFE /* Debug */, 419 | F252091C19FDA43000F08AFE /* Release */, 420 | ); 421 | defaultConfigurationIsVisible = 0; 422 | }; 423 | /* End XCConfigurationList section */ 424 | }; 425 | rootObject = F25208F019FDA43000F08AFE /* Project object */; 426 | } 427 | --------------------------------------------------------------------------------