├── Readme_img
├── JDMailBoxDemo.gif
└── JDMailBoxLogo.png
├── JDMailBox.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── JamesDouble.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
├── xcuserdata
│ └── JamesDouble.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── JDMailBox.xcscheme
└── project.pbxproj
├── JDMailBox.podspec
├── JDMailBoxTests
├── Info.plist
└── JDMailBoxTests.swift
├── JDMailBoxUITests
├── Info.plist
└── JDMailBoxUITests.swift
├── JDMailBox
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── ViewController.swift
├── JDMailBox
│ ├── JDMailBox.swift
│ ├── JDMailBoxComponent.swift
│ └── JDMailBoxTransition.swift
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
└── AppDelegate.swift
├── LICENSE
└── README.md
/Readme_img/JDMailBoxDemo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDMailBox/HEAD/Readme_img/JDMailBoxDemo.gif
--------------------------------------------------------------------------------
/Readme_img/JDMailBoxLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDMailBox/HEAD/Readme_img/JDMailBoxLogo.png
--------------------------------------------------------------------------------
/JDMailBox.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/JDMailBox.xcodeproj/project.xcworkspace/xcuserdata/JamesDouble.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDMailBox/HEAD/JDMailBox.xcodeproj/project.xcworkspace/xcuserdata/JamesDouble.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/JDMailBox.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |s|
2 | s.name = 'JDMailBox'
3 | s.version = '1.0.0'
4 | s.summary = 'Send Mail Animation'
5 | s.description = <<-DESC
6 | JDMailBox is basically a MFMailComposeViewController 📬 , but I think it will be more interesting with an animation..
7 | DESC
8 |
9 | s.homepage = 'https://github.com/jamesdouble/JDMailBox'
10 | s.license = { :type => 'MIT', :file => 'LICENSE' }
11 | s.author = { 'JamesDouble' => 'jameskuo12345@gmail.com' }
12 | s.source = { :git => 'https://github.com/jamesdouble/JDMailBox.git', :tag => s.version.to_s }
13 |
14 | s.ios.deployment_target = '8.0'
15 | s.source_files = 'JDMailBox/JDMailBox/*'
16 |
17 | end
18 |
--------------------------------------------------------------------------------
/JDMailBoxTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/JDMailBoxUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/JDMailBox/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 | }
--------------------------------------------------------------------------------
/JDMailBox.xcodeproj/xcuserdata/JamesDouble.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | JDMailBox.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 4FB7D1D71EC70B3A004ACAFF
16 |
17 | primary
18 |
19 |
20 | 4FB7D1EB1EC70B3A004ACAFF
21 |
22 | primary
23 |
24 |
25 | 4FB7D1F61EC70B3B004ACAFF
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/JDMailBoxTests/JDMailBoxTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JDMailBoxTests.swift
3 | // JDMailBoxTests
4 | //
5 | // Created by 郭介騵 on 2017/5/13.
6 | // Copyright © 2017年 james12345. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import JDMailBox
11 |
12 | class JDMailBoxTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | // Use XCTAssert and related functions to verify your tests produce the correct results.
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measure {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 JAMES郭 - IOS Develop
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 |
--------------------------------------------------------------------------------
/JDMailBox/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/JDMailBox/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // JDMailBox
4 | //
5 | // Created by 郭介騵 on 2017/5/13.
6 | // Copyright © 2017年 james12345. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import MessageUI
11 |
12 | class ViewController: UIViewController {
13 |
14 | var jdmailbox:JDMailBoxComposeVC!
15 |
16 | override func viewDidLoad() {
17 | super.viewDidLoad()
18 | }
19 |
20 | override func viewDidAppear(_ animated: Bool) {
21 | super.viewDidAppear(true)
22 | }
23 |
24 | @IBAction func demo(_ sender: Any) {
25 | if(JDMailBoxComposeVC.canSendMail()) /* importnat */
26 | {
27 | jdmailbox = JDMailBoxComposeVC(rootVC: self)
28 | jdmailbox.maildelegate = self
29 | jdmailbox.setSignature(signature: "JamesDouble")
30 | self.present(jdmailbox, animated: true, completion: nil)
31 | }
32 | }
33 |
34 | override func didReceiveMemoryWarning() {
35 | super.didReceiveMemoryWarning()
36 | // Dispose of any resources that can be recreated.
37 | }
38 | }
39 |
40 | extension ViewController:MFMailComposeViewControllerDelegate
41 | {
42 | func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?)
43 | {
44 | print("User Defined Delegate")
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/JDMailBoxUITests/JDMailBoxUITests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JDMailBoxUITests.swift
3 | // JDMailBoxUITests
4 | //
5 | // Created by 郭介騵 on 2017/5/13.
6 | // Copyright © 2017年 james12345. All rights reserved.
7 | //
8 |
9 | import XCTest
10 |
11 | class JDMailBoxUITests: XCTestCase {
12 |
13 | override func setUp() {
14 | super.setUp()
15 |
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 |
18 | // In UI tests it is usually best to stop immediately when a failure occurs.
19 | continueAfterFailure = false
20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
21 | XCUIApplication().launch()
22 |
23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
24 | }
25 |
26 | override func tearDown() {
27 | // Put teardown code here. This method is called after the invocation of each test method in the class.
28 | super.tearDown()
29 | }
30 |
31 | func testExample() {
32 | // Use recording to get started writing UI tests.
33 | // Use XCTAssert and related functions to verify your tests produce the correct results.
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # JDMailBox
2 | (IOS)An animation after the mail send.
3 | ***
4 | # Introduction
5 | JDMailBox is basically a **MFMailComposeViewController** :mailbox_with_mail: , but I think it will be more interesting with an animation.:yum::yum::yum:
6 |
7 |
8 |
9 | # Installation
10 | 1. **Cocoapod**
11 |
12 | ```
13 | pod 'JDMailBox'
14 | ```
15 | 2. **Fork my reop.**
16 |
17 | # Demo
18 |
19 |
20 |
21 | # Usage
22 |
23 | :e-mail: JDMailBox is a kind of MFMailComposeViewController, so all you need to do is treat it like this:
24 |
25 | ### Basic
26 | ```Swift
27 | jdmailbox = JDMailBoxComposeVC(rootVC: self)
28 | if(JDMailBoxComposeVC.canSendMail()) /* importnat */
29 | {
30 | self.present(jdmailbox, animated: true, completion: nil)
31 | }
32 | ```
33 | ### Signature :pencil2:
34 | ```Swift
35 | jdmailbox = JDMailBoxComposeVC(rootVC: self)
36 | jdmailbox.setSignature(signature: "JamesDouble")
37 | self.present(jdmailbox, animated: true, completion: nil)
38 | ```
39 |
40 | ## Notice
41 | It is important to call this function
42 | **JDMailBoxComposeVC.canSendMail()**
43 |
44 |
45 |
46 | ### More About MFMailComposeViewController Usage
47 | You should reference:
48 | https://developer.apple.com/reference/messageui/mfmailcomposeviewcontroller
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/JDMailBox/JDMailBox/JDMailBox.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JDMailBox.swift
3 | // JDMailBox
4 | //
5 | // Created by 郭介騵 on 2017/5/13.
6 | // Copyright © 2017年 james12345. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import MessageUI
11 |
12 | public class JDMailBoxComposeVC:MFMailComposeViewController
13 | {
14 | var root:UIViewController?
15 | public var maildelegate:MFMailComposeViewControllerDelegate?
16 | var UserDefinedText:String?
17 | var isCancel:Bool = false
18 |
19 | public init(rootVC:UIViewController)
20 | {
21 | super.init(nibName: nil, bundle: nil)
22 | root = rootVC
23 | self.transitioningDelegate = self
24 | self.mailComposeDelegate = self
25 | }
26 |
27 | public func setSignature(signature:String)
28 | {
29 | UserDefinedText = signature
30 | }
31 |
32 | func getUserDefinedText()->String?
33 | {
34 | return UserDefinedText
35 | }
36 |
37 | required public init?(coder aDecoder: NSCoder) {
38 | fatalError("init(coder:) has not been implemented")
39 | }
40 | }
41 |
42 | extension JDMailBoxComposeVC:MFMailComposeViewControllerDelegate
43 | {
44 | public func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?)
45 | {
46 | controller.dismiss(animated: true, completion: nil)
47 | print(#function)
48 | if let userDelegate = maildelegate?.mailComposeController
49 | {
50 | userDelegate(controller, result, error)
51 | }
52 |
53 | if(result == .cancelled || result == .failed)
54 | {
55 | isCancel = true
56 | }
57 | else
58 | {
59 | isCancel = false
60 | }
61 | }
62 | }
63 |
64 |
65 |
--------------------------------------------------------------------------------
/JDMailBox/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 |
--------------------------------------------------------------------------------
/JDMailBox/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // JDMailBox
4 | //
5 | // Created by 郭介騵 on 2017/5/13.
6 | // Copyright © 2017年 james12345. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/JDMailBox/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 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/JDMailBox.xcodeproj/xcuserdata/JamesDouble.xcuserdatad/xcschemes/JDMailBox.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/JDMailBox/JDMailBox/JDMailBoxComponent.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JDMailBoxComponent.swift
3 | // JDMailBox
4 | //
5 | // Created by 郭介騵 on 2017/5/15.
6 | // Copyright © 2017年 james12345. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class JDEnvelope: UIView {
12 |
13 | var bottmPaperView:UIView = UIView()
14 | var upperPaperView:UIView = UIView()
15 | var sealPaperView:UIView = UIView()
16 | var LeftsealimgView:UIImageView = UIImageView()
17 | var RightsealimgView:UIImageView = UIImageView()
18 |
19 | override init(frame: CGRect) {
20 | super.init(frame: frame)
21 | self.backgroundColor = UIColor.clear
22 | bottmPaperView = UIView(frame: CGRect(origin: CGPoint.zero, size: self.frame.size))
23 | self.addSubview(bottmPaperView)
24 | upperPaperView = UIView(frame: CGRect(origin: CGPoint.zero, size: self.frame.size))
25 | self.addSubview(upperPaperView)
26 | let sealsize = CGSize(width: self.frame.width / 2 + 30, height: self.frame.height)
27 | sealPaperView = UIView(frame: CGRect(origin: CGPoint.zero, size: sealsize))
28 | initBottomView()
29 | initUpperView()
30 | initsealView()
31 | }
32 |
33 | func initBottomView()
34 | {
35 | //
36 | let Frame = bottmPaperView.frame
37 | let path = UIBezierPath()
38 | path.move(to: CGPoint.zero)
39 | path.addLine(to: CGPoint(x: Frame.midX, y: Frame.midY))
40 | path.addLine(to: CGPoint(x: 0, y: Frame.maxY))
41 | path.addLine(to: CGPoint(x: Frame.maxX, y: Frame.maxY))
42 | path.addLine(to: CGPoint(x: Frame.maxX, y: 0))
43 | path.addLine(to: CGPoint.zero)
44 |
45 | let layer = createPapaerLayer(path: path.cgPath)
46 | // add the new layer to our custom view
47 | bottmPaperView.layer.addSublayer(layer)
48 | }
49 |
50 | func initUpperView()
51 | {
52 | let Frame = upperPaperView.frame
53 | let path = UIBezierPath()
54 | path.move(to: CGPoint(x: Frame.maxX, y: 0))
55 | path.addLine(to: CGPoint(x: Frame.midX - 20, y: Frame.midY - 20))
56 | path.addQuadCurve(to: CGPoint(x: Frame.midX - 20, y: Frame.midY + 20), controlPoint: CGPoint(x: Frame.midX - 30, y: Frame.midY))
57 | path.addLine(to: CGPoint(x: Frame.maxX, y: Frame.maxY))
58 | path.addLine(to: CGPoint(x: Frame.maxX, y: 0))
59 | let layer = createPapaerLayer(path: path.cgPath)
60 | // add the new layer to our custom view
61 | upperPaperView.layer.addSublayer(layer)
62 | }
63 |
64 | func initsealView()
65 | {
66 | sealPaperView.backgroundColor = UIColor.clear
67 | let Frame = sealPaperView.frame
68 | let path = UIBezierPath()
69 | path.move(to: CGPoint.zero)
70 | path.addLine(to: CGPoint(x: Frame.maxX - 10, y: Frame.midY - 20))
71 | path.addQuadCurve(to: CGPoint(x: Frame.maxX - 10, y: Frame.midY + 20), controlPoint: CGPoint(x: Frame.maxX, y: Frame.midY))
72 | path.addLine(to: CGPoint(x: 0, y: Frame.maxY))
73 | path.addLine(to: CGPoint.zero)
74 | let layer = createPapaerLayer(path: path.cgPath)
75 | sealPaperView.layer.backgroundColor = UIColor.clear.cgColor
76 | sealPaperView.layer.addSublayer(layer)
77 | //
78 | func ViewToImage()->UIImage?
79 | {
80 | UIGraphicsBeginImageContextWithOptions(sealPaperView.bounds.size, false, 0)
81 | let sucess = sealPaperView.drawHierarchy(in: sealPaperView.bounds, afterScreenUpdates: true)
82 | if(sucess)
83 | {
84 | let image = UIGraphicsGetImageFromCurrentImageContext()
85 | return image
86 | }
87 | UIGraphicsEndImageContext()
88 | return nil
89 | }
90 | if let sealUIImage = ViewToImage()
91 | {
92 | LeftsealimgView = UIImageView(image: sealUIImage)
93 | LeftsealimgView.layer.contentsRect = CGRect(x: 0, y: 0, width: 0.5, height: 1)
94 | LeftsealimgView.layer.anchorPoint = CGPoint(x: 0, y: 0.5)
95 | LeftsealimgView.frame = CGRect(x: 0, y: 0, width: Frame.width / 2 , height: Frame.height)
96 | self.addSubview(LeftsealimgView)
97 | RightsealimgView = UIImageView(image: sealUIImage)
98 | RightsealimgView.layer.contentsRect = CGRect(x: 0.5, y: 0, width: 0.5, height: 1)
99 | RightsealimgView.layer.anchorPoint = CGPoint(x: -0.5, y: 0.5)
100 | RightsealimgView.frame = CGRect(x: 0, y: 0, width: Frame.width / 2 , height: Frame.height)
101 | self.addSubview(RightsealimgView)
102 | }
103 | var filpUp:CATransform3D = CATransform3DMakeRotation(-CGFloat(Double.pi * 0.5), 0, 1, 0)
104 | filpUp.m34 = -1 / 1000.0
105 | LeftsealimgView.layer.transform = filpUp
106 | RightsealimgView.layer.transform = filpUp
107 | }
108 |
109 | func createPapaerLayer(path:CGPath)->CAShapeLayer
110 | {
111 | let shapeLayer = CAShapeLayer()
112 | shapeLayer.path = path
113 | // apply other properties related to the path
114 | shapeLayer.strokeColor = UIColor.lightGray.cgColor
115 | shapeLayer.fillColor = UIColor.white.cgColor
116 | shapeLayer.lineWidth = 0.5
117 | shapeLayer.backgroundColor = UIColor.clear.cgColor
118 | // add the new layer to our custom view
119 | return shapeLayer
120 | }
121 |
122 | required init?(coder aDecoder: NSCoder) {
123 | fatalError("init(coder:) has not been implemented")
124 | }
125 |
126 | }
127 |
128 | class JDMailSignatureLabel:UILabel
129 | {
130 | override init(frame: CGRect) {
131 | super.init(frame: frame)
132 | self.transform = CGAffineTransform(rotationAngle: CGFloat(-Double.pi/2))
133 | self.textAlignment = .center
134 | self.lineBreakMode = .byWordWrapping
135 | self.font = UIFont.systemFont(ofSize: 30.0)
136 | }
137 |
138 | required init?(coder aDecoder: NSCoder) {
139 | fatalError("init(coder:) has not been implemented")
140 | }
141 |
142 | }
143 |
144 | class JDEnvelopImage:UIImageView
145 | {
146 | var shadowLayer:CAGradientLayer = CAGradientLayer()
147 | init(image: UIImage?,isDown:Bool,frame:CGRect,size:CGSize) {
148 | super.init(image: image)
149 | if(isDown)
150 | {
151 | self.layer.contentsRect = CGRect(x: 0, y: 0.5, width: 1, height: 0.5)
152 | self.frame = CGRect(origin: CGPoint(x: frame.origin.x, y: frame.origin.y + frame.height/2), size: size)
153 | self.layer.masksToBounds = true
154 | shadowLayer.colors = [UIColor.clear.cgColor,UIColor.black.cgColor]
155 | shadowLayer.frame = CGRect(origin: CGPoint.zero, size: (self.frame.size))
156 | shadowLayer.opacity = 0
157 | self.layer.addSublayer(shadowLayer)
158 | }
159 | else
160 | {
161 | self.layer.anchorPoint = CGPoint(x: 0.5, y: 1)
162 | self.layer.contentsRect = CGRect(x: 0, y: 0, width: 1, height: 0.5)
163 | self.frame = CGRect(origin: CGPoint(x: frame.origin.x, y: frame.origin.y), size: size)
164 | self.layer.masksToBounds = true
165 | }
166 | }
167 |
168 | required init?(coder aDecoder: NSCoder) {
169 | fatalError("init(coder:) has not been implemented")
170 | }
171 | }
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
--------------------------------------------------------------------------------
/JDMailBox/JDMailBox/JDMailBoxTransition.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JDMailBoxTransition.swift
3 | // JDMailBox
4 | //
5 | // Created by 郭介騵 on 2017/5/13.
6 | // Copyright © 2017年 james12345. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | extension JDMailBoxComposeVC:UIViewControllerTransitioningDelegate
12 | {
13 | public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning?
14 | {
15 | print(#function)
16 | let jdmailboxpresentanimation:JDMailBoxPresentAnimationController = JDMailBoxPresentAnimationController()
17 | jdmailboxpresentanimation.originFrame = self.view.frame
18 | jdmailboxpresentanimation.UserDefinedText = getUserDefinedText()
19 | // jdmailboxpresentanimation.isCancel = self.isCancel
20 | return jdmailboxpresentanimation
21 | }
22 |
23 | }
24 |
25 |
26 | class JDMailBoxPresentAnimationController: NSObject, UIViewControllerAnimatedTransitioning {
27 | fileprivate var originFrame:CGRect = CGRect()
28 | fileprivate var UserDefinedText:String?
29 | fileprivate var isCancel:Bool = false
30 | private let Envelopeduration = 8.0
31 | private let FoldDuration = 6.0
32 |
33 | func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval
34 | {
35 | return Envelopeduration + FoldDuration
36 | }
37 |
38 | func animateTransition(using transitionContext: UIViewControllerContextTransitioning)
39 | {
40 | print(#function)
41 | guard let fromVC = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.from),
42 | let toVC = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.to)
43 | else {
44 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
45 | return
46 | }
47 | var isCancel:Bool = false
48 | if let mailVC:JDMailBoxComposeVC = fromVC as? JDMailBoxComposeVC
49 | {
50 | isCancel = mailVC.isCancel
51 | }
52 | if(isCancel)
53 | {
54 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
55 | return
56 | }
57 | //
58 | let toVCView = toVC.view
59 | toVCView?.alpha = 0
60 | let containerView = transitionContext.containerView
61 | if let toView = toVCView
62 | {
63 | containerView.addSubview(toView)
64 | }
65 | /**
66 | 1 Envelope
67 | **/
68 |
69 | let envelopeStartFrame = CGRect(origin: CGPoint(x: originFrame.width, y: 0), size: originFrame.size)
70 | let EnvelopeView = JDEnvelope(frame: envelopeStartFrame)
71 | containerView.addSubview(EnvelopeView)
72 |
73 | UIView.animateKeyframes(withDuration: Envelopeduration, delay: 0.0, options: .calculationModeLinear, animations: {
74 | UIView.addKeyframe(withRelativeStartTime: 0.0, relativeDuration: 1/5, animations: {
75 | EnvelopeView.frame = self.originFrame
76 | })
77 | // Put mail in Envelope
78 | UIView.addKeyframe(withRelativeStartTime: 1/5, relativeDuration: 1.9/5, animations: {
79 | EnvelopeView.RightsealimgView.frame = CGRect(x: EnvelopeView.sealPaperView.frame.width / 2, y: 0, width: EnvelopeView.sealPaperView.frame.width / 2 , height: EnvelopeView.sealPaperView.frame.height)
80 | })
81 | // Sealing
82 | UIView.addKeyframe(withRelativeStartTime: 1/5, relativeDuration: 3/5, animations: {
83 | EnvelopeView.LeftsealimgView.layer.transform = CATransform3DIdentity
84 | })
85 | UIView.addKeyframe(withRelativeStartTime: 1.5/5, relativeDuration: 3/5, animations: {
86 | EnvelopeView.RightsealimgView.layer.transform = CATransform3DIdentity
87 | })
88 | // Scale
89 | UIView.addKeyframe(withRelativeStartTime: 4/5, relativeDuration: 1/5, animations: {
90 | EnvelopeView.transform = CGAffineTransform(scaleX: 0.9, y: 0.9)
91 | fromVC.view.alpha = 0
92 | })
93 | })
94 | { (_) in
95 | var UpperEnvelopImg:UIImageView?
96 | var UpperEnvelopCoverImg:UIImageView?
97 | var BottomEnvelopImg:JDEnvelopImage?
98 | // TypeText
99 | let TextFreeEnvelopeImg:UIImage? = self.ViewToImage(view: EnvelopeView,update: true)
100 | func TypeTextOnMail()
101 | {
102 | guard let TheText = self.UserDefinedText else {
103 | cutImageToTwo()
104 | return
105 | }
106 | let LeftFrame:CGRect = EnvelopeView.LeftsealimgView.frame
107 | let Frame:CGRect = CGRect(x: LeftFrame.width / 2 - LeftFrame.height/2 , y: LeftFrame.height / 2 - LeftFrame.width / 2, width: LeftFrame.height, height: LeftFrame.width)
108 | let signatureLabel:UILabel = JDMailSignatureLabel(frame: Frame)
109 | EnvelopeView.addSubview(signatureLabel)
110 | let charecterTime:Double = 3.0 / Double(TheText.characters.count)
111 | DispatchQueue.main.async {
112 | signatureLabel.text = ""
113 | for (index, character) in TheText.characters.enumerated() {
114 | DispatchQueue.main.asyncAfter(deadline: .now() + charecterTime * Double(index)) {
115 | signatureLabel.text = (signatureLabel.text!) + String(character)
116 | if(index == TheText.characters.count - 1 )
117 | {
118 | cutImageToTwo()
119 | }
120 | }
121 | }
122 | }
123 | }
124 | TypeTextOnMail()
125 | // Cut EnvelopeImg into two
126 | func cutImageToTwo()
127 | {
128 | guard let TextedEnvelopeImg:UIImage = self.ViewToImage(view: EnvelopeView,update: true)
129 | else {
130 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
131 | return
132 | }
133 | let EnvelopeFrame:CGRect = EnvelopeView.frame
134 | let PieceSize:CGSize = CGSize(width: EnvelopeFrame.width, height: EnvelopeFrame.height/2)
135 | BottomEnvelopImg = JDEnvelopImage(image: TextedEnvelopeImg, isDown: true, frame: EnvelopeFrame, size: PieceSize)
136 | UpperEnvelopCoverImg = JDEnvelopImage(image: TextFreeEnvelopeImg, isDown: false, frame: EnvelopeFrame, size: PieceSize)
137 | UpperEnvelopImg = JDEnvelopImage(image: TextedEnvelopeImg, isDown: false, frame: EnvelopeFrame, size: PieceSize)
138 | guard let bottom = BottomEnvelopImg,let cover = UpperEnvelopCoverImg,let upper = UpperEnvelopImg else {
139 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
140 | return
141 | }
142 | containerView.addSubview(bottom)
143 | containerView.addSubview(cover)
144 | containerView.addSubview(upper)
145 | EnvelopeView.isHidden = true
146 | foldMail()
147 | }
148 | /**
149 | 2 Fold the mail
150 | **/
151 | func foldMail()
152 | {
153 | guard let up = UpperEnvelopImg,let up2 = UpperEnvelopCoverImg,let down = BottomEnvelopImg else {
154 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
155 | return
156 | }
157 |
158 | let flash = CABasicAnimation(keyPath: "opacity")
159 | flash.fromValue = 0.0
160 | flash.toValue = 1.0
161 | flash.duration = self.FoldDuration
162 | down.shadowLayer.add(flash, forKey: nil)
163 | UIView.animateKeyframes(withDuration: self.FoldDuration * 5/6, delay: 0.0, options: .calculationModeLinear, animations: {
164 | UIView.addKeyframe(withRelativeStartTime: 0, relativeDuration: 1, animations: {
165 | up.layer.transform = self.config3DTransformWithRotateAngle(angle: -150, y: -up.frame.height / 4)
166 | up2.layer.transform = self.config3DTransformWithRotateAngle(angle: -150, y: -up.frame.height / 4)
167 | down.layer.transform = self.config3DTransformWithRotateAngle(angle: 0, y: -up.frame.height / 4)
168 | })
169 | }){ (_) in
170 | if let Upper = UpperEnvelopImg,let cover = UpperEnvelopCoverImg
171 | {
172 | Upper.removeFromSuperview()
173 | containerView.bringSubview(toFront: cover)
174 | }
175 | foldMailEnd()
176 | }
177 | func foldMailEnd()
178 | {
179 | UIView.animateKeyframes(withDuration: self.FoldDuration * 1/6, delay: 0.0, options: .calculationModeLinear, animations: {
180 | UIView.addKeyframe(withRelativeStartTime: 0, relativeDuration: 1, animations: {
181 | up2.layer.transform = self.config3DTransformWithRotateAngle(angle: -180, y: -up.frame.height / 4 )
182 | down.layer.transform = self.config3DTransformWithRotateAngle(angle: 0, y: -up.frame.height / 4)
183 | })
184 | }){ (_) in
185 | if let Bottom = BottomEnvelopImg
186 | {
187 | Bottom.removeFromSuperview()
188 | }
189 | sendIt()
190 | }
191 | }
192 | }
193 | /**
194 | 2 Send the mail
195 | **/
196 | func sendIt()
197 | {
198 | guard let cover = UpperEnvelopCoverImg
199 | else
200 | {
201 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
202 | return
203 | }
204 | UIView.animate(withDuration: 3, animations: {
205 | cover.layer.transform = CATransform3DMakeScale(0.5, 0.5, 0.0)
206 | }, completion: { (_) in
207 | UIView.animate(withDuration: 4, animations: {
208 | cover.frame.origin.y = -300
209 | toVCView?.alpha = 1.0
210 | }, completion: { (_) in
211 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
212 | })
213 | })
214 | }
215 |
216 | }
217 | }
218 |
219 | func animationEnded(_ transitionCompleted: Bool)
220 | {
221 | print(#function)
222 | }
223 | }
224 |
225 | extension JDMailBoxPresentAnimationController
226 | {
227 | //refrence http://www.jianshu.com/p/4b26a1f641a3
228 | func config3DTransformWithRotateAngle(angle:Double,y:CGFloat)->CATransform3D
229 | {
230 | var transform = CATransform3DIdentity
231 | transform.m34 = -1/1000.0
232 | let rotateTransform = CATransform3DRotate(transform, CGFloat(Double.pi * angle / 180), 1, 0, 0)
233 | let moveTransform = CATransform3DMakeAffineTransform(CGAffineTransform.init(translationX: 0, y: y))
234 | let concatTransform = CATransform3DConcat(rotateTransform, moveTransform)
235 | return concatTransform
236 | }
237 |
238 | func ViewToImage(view:UIView,update:Bool)->UIImage?
239 | {
240 | UIGraphicsBeginImageContextWithOptions(view.bounds.size, true, 0)
241 | let sucess = view.drawHierarchy(in: view.bounds, afterScreenUpdates: update)
242 | if(sucess)
243 | {
244 | let image = UIGraphicsGetImageFromCurrentImageContext()
245 | return image
246 | }
247 | UIGraphicsEndImageContext()
248 | return nil
249 | }
250 |
251 |
252 | }
253 |
--------------------------------------------------------------------------------
/JDMailBox.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 4F628EA01ED67EB600473FF6 /* JDMailBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F628E9D1ED67EB600473FF6 /* JDMailBox.swift */; };
11 | 4F628EA11ED67EB600473FF6 /* JDMailBoxComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F628E9E1ED67EB600473FF6 /* JDMailBoxComponent.swift */; };
12 | 4F628EA21ED67EB600473FF6 /* JDMailBoxTransition.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F628E9F1ED67EB600473FF6 /* JDMailBoxTransition.swift */; };
13 | 4FB7D1DC1EC70B3A004ACAFF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FB7D1DB1EC70B3A004ACAFF /* AppDelegate.swift */; };
14 | 4FB7D1DE1EC70B3A004ACAFF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FB7D1DD1EC70B3A004ACAFF /* ViewController.swift */; };
15 | 4FB7D1E11EC70B3A004ACAFF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4FB7D1DF1EC70B3A004ACAFF /* Main.storyboard */; };
16 | 4FB7D1E31EC70B3A004ACAFF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4FB7D1E21EC70B3A004ACAFF /* Assets.xcassets */; };
17 | 4FB7D1E61EC70B3A004ACAFF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4FB7D1E41EC70B3A004ACAFF /* LaunchScreen.storyboard */; };
18 | 4FB7D1F11EC70B3B004ACAFF /* JDMailBoxTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FB7D1F01EC70B3B004ACAFF /* JDMailBoxTests.swift */; };
19 | 4FB7D1FC1EC70B3B004ACAFF /* JDMailBoxUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FB7D1FB1EC70B3B004ACAFF /* JDMailBoxUITests.swift */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXContainerItemProxy section */
23 | 4FB7D1ED1EC70B3A004ACAFF /* PBXContainerItemProxy */ = {
24 | isa = PBXContainerItemProxy;
25 | containerPortal = 4FB7D1D01EC70B3A004ACAFF /* Project object */;
26 | proxyType = 1;
27 | remoteGlobalIDString = 4FB7D1D71EC70B3A004ACAFF;
28 | remoteInfo = JDMailBox;
29 | };
30 | 4FB7D1F81EC70B3B004ACAFF /* PBXContainerItemProxy */ = {
31 | isa = PBXContainerItemProxy;
32 | containerPortal = 4FB7D1D01EC70B3A004ACAFF /* Project object */;
33 | proxyType = 1;
34 | remoteGlobalIDString = 4FB7D1D71EC70B3A004ACAFF;
35 | remoteInfo = JDMailBox;
36 | };
37 | /* End PBXContainerItemProxy section */
38 |
39 | /* Begin PBXFileReference section */
40 | 4F628E9D1ED67EB600473FF6 /* JDMailBox.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JDMailBox.swift; path = JDMailBox/JDMailBox.swift; sourceTree = ""; };
41 | 4F628E9E1ED67EB600473FF6 /* JDMailBoxComponent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JDMailBoxComponent.swift; path = JDMailBox/JDMailBoxComponent.swift; sourceTree = ""; };
42 | 4F628E9F1ED67EB600473FF6 /* JDMailBoxTransition.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JDMailBoxTransition.swift; path = JDMailBox/JDMailBoxTransition.swift; sourceTree = ""; };
43 | 4FB7D1D81EC70B3A004ACAFF /* JDMailBox.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JDMailBox.app; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 4FB7D1DB1EC70B3A004ACAFF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
45 | 4FB7D1DD1EC70B3A004ACAFF /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
46 | 4FB7D1E01EC70B3A004ACAFF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
47 | 4FB7D1E21EC70B3A004ACAFF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
48 | 4FB7D1E51EC70B3A004ACAFF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
49 | 4FB7D1E71EC70B3A004ACAFF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
50 | 4FB7D1EC1EC70B3A004ACAFF /* JDMailBoxTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JDMailBoxTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 4FB7D1F01EC70B3B004ACAFF /* JDMailBoxTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JDMailBoxTests.swift; sourceTree = ""; };
52 | 4FB7D1F21EC70B3B004ACAFF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
53 | 4FB7D1F71EC70B3B004ACAFF /* JDMailBoxUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JDMailBoxUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
54 | 4FB7D1FB1EC70B3B004ACAFF /* JDMailBoxUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JDMailBoxUITests.swift; sourceTree = ""; };
55 | 4FB7D1FD1EC70B3B004ACAFF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
56 | /* End PBXFileReference section */
57 |
58 | /* Begin PBXFrameworksBuildPhase section */
59 | 4FB7D1D51EC70B3A004ACAFF /* Frameworks */ = {
60 | isa = PBXFrameworksBuildPhase;
61 | buildActionMask = 2147483647;
62 | files = (
63 | );
64 | runOnlyForDeploymentPostprocessing = 0;
65 | };
66 | 4FB7D1E91EC70B3A004ACAFF /* Frameworks */ = {
67 | isa = PBXFrameworksBuildPhase;
68 | buildActionMask = 2147483647;
69 | files = (
70 | );
71 | runOnlyForDeploymentPostprocessing = 0;
72 | };
73 | 4FB7D1F41EC70B3B004ACAFF /* Frameworks */ = {
74 | isa = PBXFrameworksBuildPhase;
75 | buildActionMask = 2147483647;
76 | files = (
77 | );
78 | runOnlyForDeploymentPostprocessing = 0;
79 | };
80 | /* End PBXFrameworksBuildPhase section */
81 |
82 | /* Begin PBXGroup section */
83 | 4FB7D1CF1EC70B3A004ACAFF = {
84 | isa = PBXGroup;
85 | children = (
86 | 4FB7D1DA1EC70B3A004ACAFF /* JDMailBox */,
87 | 4FB7D1EF1EC70B3A004ACAFF /* JDMailBoxTests */,
88 | 4FB7D1FA1EC70B3B004ACAFF /* JDMailBoxUITests */,
89 | 4FB7D1D91EC70B3A004ACAFF /* Products */,
90 | );
91 | sourceTree = "";
92 | };
93 | 4FB7D1D91EC70B3A004ACAFF /* Products */ = {
94 | isa = PBXGroup;
95 | children = (
96 | 4FB7D1D81EC70B3A004ACAFF /* JDMailBox.app */,
97 | 4FB7D1EC1EC70B3A004ACAFF /* JDMailBoxTests.xctest */,
98 | 4FB7D1F71EC70B3B004ACAFF /* JDMailBoxUITests.xctest */,
99 | );
100 | name = Products;
101 | sourceTree = "";
102 | };
103 | 4FB7D1DA1EC70B3A004ACAFF /* JDMailBox */ = {
104 | isa = PBXGroup;
105 | children = (
106 | 4FB7D2091EC70D62004ACAFF /* JDMailBox */,
107 | 4FB7D1DB1EC70B3A004ACAFF /* AppDelegate.swift */,
108 | 4FB7D1DD1EC70B3A004ACAFF /* ViewController.swift */,
109 | 4FB7D1DF1EC70B3A004ACAFF /* Main.storyboard */,
110 | 4FB7D1E21EC70B3A004ACAFF /* Assets.xcassets */,
111 | 4FB7D1E41EC70B3A004ACAFF /* LaunchScreen.storyboard */,
112 | 4FB7D1E71EC70B3A004ACAFF /* Info.plist */,
113 | );
114 | path = JDMailBox;
115 | sourceTree = "";
116 | };
117 | 4FB7D1EF1EC70B3A004ACAFF /* JDMailBoxTests */ = {
118 | isa = PBXGroup;
119 | children = (
120 | 4FB7D1F01EC70B3B004ACAFF /* JDMailBoxTests.swift */,
121 | 4FB7D1F21EC70B3B004ACAFF /* Info.plist */,
122 | );
123 | path = JDMailBoxTests;
124 | sourceTree = "";
125 | };
126 | 4FB7D1FA1EC70B3B004ACAFF /* JDMailBoxUITests */ = {
127 | isa = PBXGroup;
128 | children = (
129 | 4FB7D1FB1EC70B3B004ACAFF /* JDMailBoxUITests.swift */,
130 | 4FB7D1FD1EC70B3B004ACAFF /* Info.plist */,
131 | );
132 | path = JDMailBoxUITests;
133 | sourceTree = "";
134 | };
135 | 4FB7D2091EC70D62004ACAFF /* JDMailBox */ = {
136 | isa = PBXGroup;
137 | children = (
138 | 4F628E9D1ED67EB600473FF6 /* JDMailBox.swift */,
139 | 4F628E9E1ED67EB600473FF6 /* JDMailBoxComponent.swift */,
140 | 4F628E9F1ED67EB600473FF6 /* JDMailBoxTransition.swift */,
141 | );
142 | name = JDMailBox;
143 | sourceTree = "";
144 | };
145 | /* End PBXGroup section */
146 |
147 | /* Begin PBXNativeTarget section */
148 | 4FB7D1D71EC70B3A004ACAFF /* JDMailBox */ = {
149 | isa = PBXNativeTarget;
150 | buildConfigurationList = 4FB7D2001EC70B3B004ACAFF /* Build configuration list for PBXNativeTarget "JDMailBox" */;
151 | buildPhases = (
152 | 4FB7D1D41EC70B3A004ACAFF /* Sources */,
153 | 4FB7D1D51EC70B3A004ACAFF /* Frameworks */,
154 | 4FB7D1D61EC70B3A004ACAFF /* Resources */,
155 | );
156 | buildRules = (
157 | );
158 | dependencies = (
159 | );
160 | name = JDMailBox;
161 | productName = JDMailBox;
162 | productReference = 4FB7D1D81EC70B3A004ACAFF /* JDMailBox.app */;
163 | productType = "com.apple.product-type.application";
164 | };
165 | 4FB7D1EB1EC70B3A004ACAFF /* JDMailBoxTests */ = {
166 | isa = PBXNativeTarget;
167 | buildConfigurationList = 4FB7D2031EC70B3B004ACAFF /* Build configuration list for PBXNativeTarget "JDMailBoxTests" */;
168 | buildPhases = (
169 | 4FB7D1E81EC70B3A004ACAFF /* Sources */,
170 | 4FB7D1E91EC70B3A004ACAFF /* Frameworks */,
171 | 4FB7D1EA1EC70B3A004ACAFF /* Resources */,
172 | );
173 | buildRules = (
174 | );
175 | dependencies = (
176 | 4FB7D1EE1EC70B3A004ACAFF /* PBXTargetDependency */,
177 | );
178 | name = JDMailBoxTests;
179 | productName = JDMailBoxTests;
180 | productReference = 4FB7D1EC1EC70B3A004ACAFF /* JDMailBoxTests.xctest */;
181 | productType = "com.apple.product-type.bundle.unit-test";
182 | };
183 | 4FB7D1F61EC70B3B004ACAFF /* JDMailBoxUITests */ = {
184 | isa = PBXNativeTarget;
185 | buildConfigurationList = 4FB7D2061EC70B3B004ACAFF /* Build configuration list for PBXNativeTarget "JDMailBoxUITests" */;
186 | buildPhases = (
187 | 4FB7D1F31EC70B3B004ACAFF /* Sources */,
188 | 4FB7D1F41EC70B3B004ACAFF /* Frameworks */,
189 | 4FB7D1F51EC70B3B004ACAFF /* Resources */,
190 | );
191 | buildRules = (
192 | );
193 | dependencies = (
194 | 4FB7D1F91EC70B3B004ACAFF /* PBXTargetDependency */,
195 | );
196 | name = JDMailBoxUITests;
197 | productName = JDMailBoxUITests;
198 | productReference = 4FB7D1F71EC70B3B004ACAFF /* JDMailBoxUITests.xctest */;
199 | productType = "com.apple.product-type.bundle.ui-testing";
200 | };
201 | /* End PBXNativeTarget section */
202 |
203 | /* Begin PBXProject section */
204 | 4FB7D1D01EC70B3A004ACAFF /* Project object */ = {
205 | isa = PBXProject;
206 | attributes = {
207 | LastSwiftUpdateCheck = 0830;
208 | LastUpgradeCheck = 0830;
209 | ORGANIZATIONNAME = james12345;
210 | TargetAttributes = {
211 | 4FB7D1D71EC70B3A004ACAFF = {
212 | CreatedOnToolsVersion = 8.3.1;
213 | DevelopmentTeam = 857SMZQ3R8;
214 | ProvisioningStyle = Automatic;
215 | };
216 | 4FB7D1EB1EC70B3A004ACAFF = {
217 | CreatedOnToolsVersion = 8.3.1;
218 | DevelopmentTeam = 857SMZQ3R8;
219 | ProvisioningStyle = Automatic;
220 | TestTargetID = 4FB7D1D71EC70B3A004ACAFF;
221 | };
222 | 4FB7D1F61EC70B3B004ACAFF = {
223 | CreatedOnToolsVersion = 8.3.1;
224 | DevelopmentTeam = 857SMZQ3R8;
225 | ProvisioningStyle = Automatic;
226 | TestTargetID = 4FB7D1D71EC70B3A004ACAFF;
227 | };
228 | };
229 | };
230 | buildConfigurationList = 4FB7D1D31EC70B3A004ACAFF /* Build configuration list for PBXProject "JDMailBox" */;
231 | compatibilityVersion = "Xcode 3.2";
232 | developmentRegion = English;
233 | hasScannedForEncodings = 0;
234 | knownRegions = (
235 | en,
236 | Base,
237 | );
238 | mainGroup = 4FB7D1CF1EC70B3A004ACAFF;
239 | productRefGroup = 4FB7D1D91EC70B3A004ACAFF /* Products */;
240 | projectDirPath = "";
241 | projectRoot = "";
242 | targets = (
243 | 4FB7D1D71EC70B3A004ACAFF /* JDMailBox */,
244 | 4FB7D1EB1EC70B3A004ACAFF /* JDMailBoxTests */,
245 | 4FB7D1F61EC70B3B004ACAFF /* JDMailBoxUITests */,
246 | );
247 | };
248 | /* End PBXProject section */
249 |
250 | /* Begin PBXResourcesBuildPhase section */
251 | 4FB7D1D61EC70B3A004ACAFF /* Resources */ = {
252 | isa = PBXResourcesBuildPhase;
253 | buildActionMask = 2147483647;
254 | files = (
255 | 4FB7D1E61EC70B3A004ACAFF /* LaunchScreen.storyboard in Resources */,
256 | 4FB7D1E31EC70B3A004ACAFF /* Assets.xcassets in Resources */,
257 | 4FB7D1E11EC70B3A004ACAFF /* Main.storyboard in Resources */,
258 | );
259 | runOnlyForDeploymentPostprocessing = 0;
260 | };
261 | 4FB7D1EA1EC70B3A004ACAFF /* Resources */ = {
262 | isa = PBXResourcesBuildPhase;
263 | buildActionMask = 2147483647;
264 | files = (
265 | );
266 | runOnlyForDeploymentPostprocessing = 0;
267 | };
268 | 4FB7D1F51EC70B3B004ACAFF /* Resources */ = {
269 | isa = PBXResourcesBuildPhase;
270 | buildActionMask = 2147483647;
271 | files = (
272 | );
273 | runOnlyForDeploymentPostprocessing = 0;
274 | };
275 | /* End PBXResourcesBuildPhase section */
276 |
277 | /* Begin PBXSourcesBuildPhase section */
278 | 4FB7D1D41EC70B3A004ACAFF /* Sources */ = {
279 | isa = PBXSourcesBuildPhase;
280 | buildActionMask = 2147483647;
281 | files = (
282 | 4F628EA11ED67EB600473FF6 /* JDMailBoxComponent.swift in Sources */,
283 | 4F628EA21ED67EB600473FF6 /* JDMailBoxTransition.swift in Sources */,
284 | 4FB7D1DE1EC70B3A004ACAFF /* ViewController.swift in Sources */,
285 | 4F628EA01ED67EB600473FF6 /* JDMailBox.swift in Sources */,
286 | 4FB7D1DC1EC70B3A004ACAFF /* AppDelegate.swift in Sources */,
287 | );
288 | runOnlyForDeploymentPostprocessing = 0;
289 | };
290 | 4FB7D1E81EC70B3A004ACAFF /* Sources */ = {
291 | isa = PBXSourcesBuildPhase;
292 | buildActionMask = 2147483647;
293 | files = (
294 | 4FB7D1F11EC70B3B004ACAFF /* JDMailBoxTests.swift in Sources */,
295 | );
296 | runOnlyForDeploymentPostprocessing = 0;
297 | };
298 | 4FB7D1F31EC70B3B004ACAFF /* Sources */ = {
299 | isa = PBXSourcesBuildPhase;
300 | buildActionMask = 2147483647;
301 | files = (
302 | 4FB7D1FC1EC70B3B004ACAFF /* JDMailBoxUITests.swift in Sources */,
303 | );
304 | runOnlyForDeploymentPostprocessing = 0;
305 | };
306 | /* End PBXSourcesBuildPhase section */
307 |
308 | /* Begin PBXTargetDependency section */
309 | 4FB7D1EE1EC70B3A004ACAFF /* PBXTargetDependency */ = {
310 | isa = PBXTargetDependency;
311 | target = 4FB7D1D71EC70B3A004ACAFF /* JDMailBox */;
312 | targetProxy = 4FB7D1ED1EC70B3A004ACAFF /* PBXContainerItemProxy */;
313 | };
314 | 4FB7D1F91EC70B3B004ACAFF /* PBXTargetDependency */ = {
315 | isa = PBXTargetDependency;
316 | target = 4FB7D1D71EC70B3A004ACAFF /* JDMailBox */;
317 | targetProxy = 4FB7D1F81EC70B3B004ACAFF /* PBXContainerItemProxy */;
318 | };
319 | /* End PBXTargetDependency section */
320 |
321 | /* Begin PBXVariantGroup section */
322 | 4FB7D1DF1EC70B3A004ACAFF /* Main.storyboard */ = {
323 | isa = PBXVariantGroup;
324 | children = (
325 | 4FB7D1E01EC70B3A004ACAFF /* Base */,
326 | );
327 | name = Main.storyboard;
328 | sourceTree = "";
329 | };
330 | 4FB7D1E41EC70B3A004ACAFF /* LaunchScreen.storyboard */ = {
331 | isa = PBXVariantGroup;
332 | children = (
333 | 4FB7D1E51EC70B3A004ACAFF /* Base */,
334 | );
335 | name = LaunchScreen.storyboard;
336 | sourceTree = "";
337 | };
338 | /* End PBXVariantGroup section */
339 |
340 | /* Begin XCBuildConfiguration section */
341 | 4FB7D1FE1EC70B3B004ACAFF /* Debug */ = {
342 | isa = XCBuildConfiguration;
343 | buildSettings = {
344 | ALWAYS_SEARCH_USER_PATHS = NO;
345 | CLANG_ANALYZER_NONNULL = YES;
346 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
347 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
348 | CLANG_CXX_LIBRARY = "libc++";
349 | CLANG_ENABLE_MODULES = YES;
350 | CLANG_ENABLE_OBJC_ARC = YES;
351 | CLANG_WARN_BOOL_CONVERSION = YES;
352 | CLANG_WARN_CONSTANT_CONVERSION = YES;
353 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
354 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
355 | CLANG_WARN_EMPTY_BODY = YES;
356 | CLANG_WARN_ENUM_CONVERSION = YES;
357 | CLANG_WARN_INFINITE_RECURSION = YES;
358 | CLANG_WARN_INT_CONVERSION = YES;
359 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
360 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
361 | CLANG_WARN_UNREACHABLE_CODE = YES;
362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
364 | COPY_PHASE_STRIP = NO;
365 | DEBUG_INFORMATION_FORMAT = dwarf;
366 | ENABLE_STRICT_OBJC_MSGSEND = YES;
367 | ENABLE_TESTABILITY = YES;
368 | GCC_C_LANGUAGE_STANDARD = gnu99;
369 | GCC_DYNAMIC_NO_PIC = NO;
370 | GCC_NO_COMMON_BLOCKS = YES;
371 | GCC_OPTIMIZATION_LEVEL = 0;
372 | GCC_PREPROCESSOR_DEFINITIONS = (
373 | "DEBUG=1",
374 | "$(inherited)",
375 | );
376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
378 | GCC_WARN_UNDECLARED_SELECTOR = YES;
379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
380 | GCC_WARN_UNUSED_FUNCTION = YES;
381 | GCC_WARN_UNUSED_VARIABLE = YES;
382 | IPHONEOS_DEPLOYMENT_TARGET = 10.3;
383 | MTL_ENABLE_DEBUG_INFO = YES;
384 | ONLY_ACTIVE_ARCH = YES;
385 | SDKROOT = iphoneos;
386 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
387 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
388 | };
389 | name = Debug;
390 | };
391 | 4FB7D1FF1EC70B3B004ACAFF /* Release */ = {
392 | isa = XCBuildConfiguration;
393 | buildSettings = {
394 | ALWAYS_SEARCH_USER_PATHS = NO;
395 | CLANG_ANALYZER_NONNULL = YES;
396 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
397 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
398 | CLANG_CXX_LIBRARY = "libc++";
399 | CLANG_ENABLE_MODULES = YES;
400 | CLANG_ENABLE_OBJC_ARC = YES;
401 | CLANG_WARN_BOOL_CONVERSION = YES;
402 | CLANG_WARN_CONSTANT_CONVERSION = YES;
403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
404 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
405 | CLANG_WARN_EMPTY_BODY = YES;
406 | CLANG_WARN_ENUM_CONVERSION = YES;
407 | CLANG_WARN_INFINITE_RECURSION = YES;
408 | CLANG_WARN_INT_CONVERSION = YES;
409 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
410 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
411 | CLANG_WARN_UNREACHABLE_CODE = YES;
412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
414 | COPY_PHASE_STRIP = NO;
415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
416 | ENABLE_NS_ASSERTIONS = NO;
417 | ENABLE_STRICT_OBJC_MSGSEND = YES;
418 | GCC_C_LANGUAGE_STANDARD = gnu99;
419 | GCC_NO_COMMON_BLOCKS = YES;
420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
422 | GCC_WARN_UNDECLARED_SELECTOR = YES;
423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
424 | GCC_WARN_UNUSED_FUNCTION = YES;
425 | GCC_WARN_UNUSED_VARIABLE = YES;
426 | IPHONEOS_DEPLOYMENT_TARGET = 10.3;
427 | MTL_ENABLE_DEBUG_INFO = NO;
428 | SDKROOT = iphoneos;
429 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
430 | VALIDATE_PRODUCT = YES;
431 | };
432 | name = Release;
433 | };
434 | 4FB7D2011EC70B3B004ACAFF /* Debug */ = {
435 | isa = XCBuildConfiguration;
436 | buildSettings = {
437 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
438 | DEVELOPMENT_TEAM = 857SMZQ3R8;
439 | INFOPLIST_FILE = JDMailBox/Info.plist;
440 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
441 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
442 | PRODUCT_BUNDLE_IDENTIFIER = com.jameskuo12345.JDMailBox;
443 | PRODUCT_NAME = "$(TARGET_NAME)";
444 | SWIFT_VERSION = 3.0;
445 | };
446 | name = Debug;
447 | };
448 | 4FB7D2021EC70B3B004ACAFF /* Release */ = {
449 | isa = XCBuildConfiguration;
450 | buildSettings = {
451 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
452 | DEVELOPMENT_TEAM = 857SMZQ3R8;
453 | INFOPLIST_FILE = JDMailBox/Info.plist;
454 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
455 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
456 | PRODUCT_BUNDLE_IDENTIFIER = com.jameskuo12345.JDMailBox;
457 | PRODUCT_NAME = "$(TARGET_NAME)";
458 | SWIFT_VERSION = 3.0;
459 | };
460 | name = Release;
461 | };
462 | 4FB7D2041EC70B3B004ACAFF /* Debug */ = {
463 | isa = XCBuildConfiguration;
464 | buildSettings = {
465 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
466 | BUNDLE_LOADER = "$(TEST_HOST)";
467 | DEVELOPMENT_TEAM = 857SMZQ3R8;
468 | INFOPLIST_FILE = JDMailBoxTests/Info.plist;
469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
470 | PRODUCT_BUNDLE_IDENTIFIER = com.jameskuo12345.JDMailBoxTests;
471 | PRODUCT_NAME = "$(TARGET_NAME)";
472 | SWIFT_VERSION = 3.0;
473 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JDMailBox.app/JDMailBox";
474 | };
475 | name = Debug;
476 | };
477 | 4FB7D2051EC70B3B004ACAFF /* Release */ = {
478 | isa = XCBuildConfiguration;
479 | buildSettings = {
480 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
481 | BUNDLE_LOADER = "$(TEST_HOST)";
482 | DEVELOPMENT_TEAM = 857SMZQ3R8;
483 | INFOPLIST_FILE = JDMailBoxTests/Info.plist;
484 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
485 | PRODUCT_BUNDLE_IDENTIFIER = com.jameskuo12345.JDMailBoxTests;
486 | PRODUCT_NAME = "$(TARGET_NAME)";
487 | SWIFT_VERSION = 3.0;
488 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JDMailBox.app/JDMailBox";
489 | };
490 | name = Release;
491 | };
492 | 4FB7D2071EC70B3B004ACAFF /* Debug */ = {
493 | isa = XCBuildConfiguration;
494 | buildSettings = {
495 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
496 | DEVELOPMENT_TEAM = 857SMZQ3R8;
497 | INFOPLIST_FILE = JDMailBoxUITests/Info.plist;
498 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
499 | PRODUCT_BUNDLE_IDENTIFIER = com.jameskuo12345.JDMailBoxUITests;
500 | PRODUCT_NAME = "$(TARGET_NAME)";
501 | SWIFT_VERSION = 3.0;
502 | TEST_TARGET_NAME = JDMailBox;
503 | };
504 | name = Debug;
505 | };
506 | 4FB7D2081EC70B3B004ACAFF /* Release */ = {
507 | isa = XCBuildConfiguration;
508 | buildSettings = {
509 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
510 | DEVELOPMENT_TEAM = 857SMZQ3R8;
511 | INFOPLIST_FILE = JDMailBoxUITests/Info.plist;
512 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
513 | PRODUCT_BUNDLE_IDENTIFIER = com.jameskuo12345.JDMailBoxUITests;
514 | PRODUCT_NAME = "$(TARGET_NAME)";
515 | SWIFT_VERSION = 3.0;
516 | TEST_TARGET_NAME = JDMailBox;
517 | };
518 | name = Release;
519 | };
520 | /* End XCBuildConfiguration section */
521 |
522 | /* Begin XCConfigurationList section */
523 | 4FB7D1D31EC70B3A004ACAFF /* Build configuration list for PBXProject "JDMailBox" */ = {
524 | isa = XCConfigurationList;
525 | buildConfigurations = (
526 | 4FB7D1FE1EC70B3B004ACAFF /* Debug */,
527 | 4FB7D1FF1EC70B3B004ACAFF /* Release */,
528 | );
529 | defaultConfigurationIsVisible = 0;
530 | defaultConfigurationName = Release;
531 | };
532 | 4FB7D2001EC70B3B004ACAFF /* Build configuration list for PBXNativeTarget "JDMailBox" */ = {
533 | isa = XCConfigurationList;
534 | buildConfigurations = (
535 | 4FB7D2011EC70B3B004ACAFF /* Debug */,
536 | 4FB7D2021EC70B3B004ACAFF /* Release */,
537 | );
538 | defaultConfigurationIsVisible = 0;
539 | defaultConfigurationName = Release;
540 | };
541 | 4FB7D2031EC70B3B004ACAFF /* Build configuration list for PBXNativeTarget "JDMailBoxTests" */ = {
542 | isa = XCConfigurationList;
543 | buildConfigurations = (
544 | 4FB7D2041EC70B3B004ACAFF /* Debug */,
545 | 4FB7D2051EC70B3B004ACAFF /* Release */,
546 | );
547 | defaultConfigurationIsVisible = 0;
548 | defaultConfigurationName = Release;
549 | };
550 | 4FB7D2061EC70B3B004ACAFF /* Build configuration list for PBXNativeTarget "JDMailBoxUITests" */ = {
551 | isa = XCConfigurationList;
552 | buildConfigurations = (
553 | 4FB7D2071EC70B3B004ACAFF /* Debug */,
554 | 4FB7D2081EC70B3B004ACAFF /* Release */,
555 | );
556 | defaultConfigurationIsVisible = 0;
557 | defaultConfigurationName = Release;
558 | };
559 | /* End XCConfigurationList section */
560 | };
561 | rootObject = 4FB7D1D01EC70B3A004ACAFF /* Project object */;
562 | }
563 |
--------------------------------------------------------------------------------