├── README.md
├── DataPassing.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── DataPassing
├── Scenes
│ ├── Child
│ │ ├── ChildWorker.swift
│ │ ├── ChildModels.swift
│ │ ├── ChildInteractor.swift
│ │ ├── ChildPresenter.swift
│ │ ├── ChildRouter.swift
│ │ └── ChildViewController.swift
│ └── Parent
│ │ ├── ParentWorker.swift
│ │ ├── ParentModels.swift
│ │ ├── ParentPresenter.swift
│ │ ├── ParentInteractor.swift
│ │ ├── ParentRouter.swift
│ │ └── ParentViewController.swift
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
└── AppDelegate.swift
├── DataPassingTests
├── Info.plist
└── DataPassingTests.swift
├── DataPassingUITests
├── Info.plist
└── DataPassingUITests.swift
├── LICENSE
└── .gitignore
/README.md:
--------------------------------------------------------------------------------
1 | # DataPassing
2 | A sample project to illustrate how the Clean Swift architecture passes data forward and backward more elegantly without using delegation
3 |
--------------------------------------------------------------------------------
/DataPassing.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Child/ChildWorker.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ChildWorker.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | class ChildWorker
16 | {
17 | func doSomeWork()
18 | {
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Parent/ParentWorker.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ParentWorker.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | class ParentWorker
16 | {
17 | func doSomeWork()
18 | {
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DataPassingTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 |
--------------------------------------------------------------------------------
/DataPassingUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Child/ChildModels.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ChildModels.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | enum Child
16 | {
17 | // MARK: Use cases
18 |
19 | enum ShowGreeting
20 | {
21 | struct Request
22 | {
23 | }
24 | struct Response
25 | {
26 | var name: String
27 | }
28 | struct ViewModel
29 | {
30 | var greeting: String
31 | }
32 | }
33 |
34 | enum TellParent
35 | {
36 | struct Request
37 | {
38 | var name: String
39 | }
40 | struct Response
41 | {
42 | }
43 | struct ViewModel
44 | {
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Parent/ParentModels.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ParentModels.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | enum Parent
16 | {
17 | // MARK: Use cases
18 |
19 | enum ShowGreeting
20 | {
21 | struct Request
22 | {
23 | }
24 | struct Response
25 | {
26 | var name: String
27 | }
28 | struct ViewModel
29 | {
30 | var greeting: String
31 | }
32 | }
33 |
34 | enum TellChild
35 | {
36 | struct Request
37 | {
38 | var name: String
39 | }
40 | struct Response
41 | {
42 | }
43 | struct ViewModel
44 | {
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Clean Swift
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 |
--------------------------------------------------------------------------------
/DataPassingTests/DataPassingTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DataPassingTests.swift
3 | // DataPassingTests
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright © 2018 Clean Swift LLC. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import DataPassing
11 |
12 | class DataPassingTests: 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 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Child/ChildInteractor.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ChildInteractor.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol ChildBusinessLogic
16 | {
17 | func showGreeting(request: Child.ShowGreeting.Request)
18 | func tellParent(request: Child.TellParent.Request)
19 | }
20 |
21 | protocol ChildDataStore
22 | {
23 | var name: String { get set }
24 | }
25 |
26 | class ChildInteractor: ChildBusinessLogic, ChildDataStore
27 | {
28 | var presenter: ChildPresentationLogic?
29 | var worker: ChildWorker?
30 | var name: String = ""
31 |
32 | // MARK: Show greeting
33 |
34 | func showGreeting(request: Child.ShowGreeting.Request)
35 | {
36 | let response = Child.ShowGreeting.Response(name: name)
37 | presenter?.presentGreeting(response: response)
38 | }
39 |
40 | // MARK: Tell child
41 |
42 | func tellParent(request: Child.TellParent.Request)
43 | {
44 | name = request.name
45 | let response = Child.TellParent.Response()
46 | presenter?.presentTellParent(response: response)
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Parent/ParentPresenter.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ParentPresenter.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol ParentPresentationLogic
16 | {
17 | func presentGreeting(response: Parent.ShowGreeting.Response)
18 | func presentTellChild(response: Parent.TellChild.Response)
19 | }
20 |
21 | class ParentPresenter: ParentPresentationLogic
22 | {
23 | weak var viewController: ParentDisplayLogic?
24 |
25 | // MARK: Show greeting
26 |
27 | func presentGreeting(response: Parent.ShowGreeting.Response)
28 | {
29 | let greeting = response.name.isEmpty ? "Hello" : "\(response.name), nah, let's just shop on Amazon on my iPad."
30 | let viewModel = Parent.ShowGreeting.ViewModel(greeting: greeting)
31 | viewController?.displayGreeting(viewModel: viewModel)
32 | }
33 |
34 | // MARK: Tell child
35 |
36 | func presentTellChild(response: Parent.TellChild.Response)
37 | {
38 | let viewModel = Parent.TellChild.ViewModel()
39 | viewController?.displayTellChild(viewModel: viewModel)
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Child/ChildPresenter.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ChildPresenter.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol ChildPresentationLogic
16 | {
17 | func presentGreeting(response: Child.ShowGreeting.Response)
18 | func presentTellParent(response: Child.TellParent.Response)
19 | }
20 |
21 | class ChildPresenter: ChildPresentationLogic
22 | {
23 | weak var viewController: ChildDisplayLogic?
24 |
25 | // MARK: Show greeting
26 |
27 | func presentGreeting(response: Child.ShowGreeting.Response)
28 | {
29 | let greeting = response.name.isEmpty ? "Hello" : "\(response.name), do you want to go to Toys R Us before they bankrupt?"
30 | let viewModel = Child.ShowGreeting.ViewModel(greeting: greeting)
31 | viewController?.displayGreeting(viewModel: viewModel)
32 | }
33 |
34 | // MARK: Tell child
35 |
36 | func presentTellParent(response: Child.TellParent.Response)
37 | {
38 | let viewModel = Child.TellParent.ViewModel()
39 | viewController?.displayTellParent(viewModel: viewModel)
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Parent/ParentInteractor.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ParentInteractor.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol ParentBusinessLogic
16 | {
17 | func showGreeting(request: Parent.ShowGreeting.Request)
18 | func tellChild(request: Parent.TellChild.Request)
19 | }
20 |
21 | protocol ParentDataStore
22 | {
23 | var name: String { get set }
24 | }
25 |
26 | class ParentInteractor: ParentBusinessLogic, ParentDataStore
27 | {
28 | var presenter: ParentPresentationLogic?
29 | var worker: ParentWorker?
30 | var name: String = ""
31 |
32 | // MARK: Show greeting
33 |
34 | func showGreeting(request: Parent.ShowGreeting.Request)
35 | {
36 | let response = Parent.ShowGreeting.Response(name: name)
37 | presenter?.presentGreeting(response: response)
38 | }
39 |
40 | // MARK: Tell child
41 |
42 | func tellChild(request: Parent.TellChild.Request)
43 | {
44 | name = request.name
45 | let response = Parent.TellChild.Response()
46 | presenter?.presentTellChild(response: response)
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/DataPassingUITests/DataPassingUITests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DataPassingUITests.swift
3 | // DataPassingUITests
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright © 2018 Clean Swift LLC. All rights reserved.
7 | //
8 |
9 | import XCTest
10 |
11 | class DataPassingUITests: 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 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Child/ChildRouter.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ChildRouter.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | @objc protocol ChildRoutingLogic
16 | {
17 | func routeToParent(segue: UIStoryboardSegue?)
18 | }
19 |
20 | protocol ChildDataPassing
21 | {
22 | var dataStore: ChildDataStore? { get }
23 | }
24 |
25 | class ChildRouter: NSObject, ChildRoutingLogic, ChildDataPassing
26 | {
27 | weak var viewController: ChildViewController?
28 | var dataStore: ChildDataStore?
29 |
30 | // MARK: Routing
31 |
32 | func routeToParent(segue: UIStoryboardSegue?)
33 | {
34 | let destinationVC = viewController?.presentingViewController as! ParentViewController
35 | var destinationDS = destinationVC.router!.dataStore!
36 | passDataToParent(source: dataStore!, destination: &destinationDS)
37 | navigateToParent(source: viewController!, destination: destinationVC)
38 | }
39 |
40 | // MARK: Navigation
41 |
42 | func navigateToParent(source: ChildViewController, destination: ParentViewController)
43 | {
44 | source.dismiss(animated: true, completion: nil)
45 | }
46 |
47 | // MARK: Passing data
48 |
49 | func passDataToParent(source: ChildDataStore, destination: inout ParentDataStore)
50 | {
51 | destination.name = source.name
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/DataPassing/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Parent/ParentRouter.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ParentRouter.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | @objc protocol ParentRoutingLogic
16 | {
17 | func routeToChild(segue: UIStoryboardSegue?)
18 | }
19 |
20 | protocol ParentDataPassing
21 | {
22 | var dataStore: ParentDataStore? { get }
23 | }
24 |
25 | class ParentRouter: NSObject, ParentRoutingLogic, ParentDataPassing
26 | {
27 | weak var viewController: ParentViewController?
28 | var dataStore: ParentDataStore?
29 |
30 | // MARK: Routing
31 |
32 | func routeToChild(segue: UIStoryboardSegue?)
33 | {
34 | let storyboard = UIStoryboard(name: "Main", bundle: nil)
35 | let destinationVC = storyboard.instantiateViewController(withIdentifier: "ChildViewController") as! ChildViewController
36 | var destinationDS = destinationVC.router!.dataStore!
37 | passDataToChild(source: dataStore!, destination: &destinationDS)
38 | navigateToChild(source: viewController!, destination: destinationVC)
39 | }
40 |
41 | // MARK: Navigation
42 |
43 | func navigateToChild(source: ParentViewController, destination: ChildViewController)
44 | {
45 | source.show(destination, sender: nil)
46 | }
47 |
48 | // MARK: Passing data
49 |
50 | func passDataToChild(source: ParentDataStore, destination: inout ChildDataStore)
51 | {
52 | destination.name = source.name
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xccheckout
23 | *.xcscmblueprint
24 |
25 | ## Obj-C/Swift specific
26 | *.hmap
27 | *.ipa
28 | *.dSYM.zip
29 | *.dSYM
30 |
31 | ## Playgrounds
32 | timeline.xctimeline
33 | playground.xcworkspace
34 |
35 | # Swift Package Manager
36 | #
37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
38 | # Packages/
39 | # Package.pins
40 | .build/
41 |
42 | # CocoaPods
43 | #
44 | # We recommend against adding the Pods directory to your .gitignore. However
45 | # you should judge for yourself, the pros and cons are mentioned at:
46 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
47 | #
48 | # Pods/
49 |
50 | # Carthage
51 | #
52 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
53 | # Carthage/Checkouts
54 |
55 | Carthage/Build
56 |
57 | # fastlane
58 | #
59 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
60 | # screenshots whenever they are needed.
61 | # For more information about the recommended setup visit:
62 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
63 |
64 | fastlane/report.xml
65 | fastlane/Preview.html
66 | fastlane/screenshots
67 | fastlane/test_output
68 |
--------------------------------------------------------------------------------
/DataPassing/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 |
--------------------------------------------------------------------------------
/DataPassing/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 | "info" : {
90 | "version" : 1,
91 | "author" : "xcode"
92 | }
93 | }
--------------------------------------------------------------------------------
/DataPassing/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright © 2018 Clean Swift LLC. 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 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Child/ChildViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ChildViewController.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol ChildDisplayLogic: class
16 | {
17 | func displayGreeting(viewModel: Child.ShowGreeting.ViewModel)
18 | func displayTellParent(viewModel: Child.TellParent.ViewModel)
19 | }
20 |
21 | class ChildViewController: UIViewController, ChildDisplayLogic
22 | {
23 | var interactor: ChildBusinessLogic?
24 | var router: (NSObjectProtocol & ChildRoutingLogic & ChildDataPassing)?
25 |
26 | // MARK: Object lifecycle
27 |
28 | override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
29 | {
30 | super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
31 | setup()
32 | }
33 |
34 | required init?(coder aDecoder: NSCoder)
35 | {
36 | super.init(coder: aDecoder)
37 | setup()
38 | }
39 |
40 | // MARK: Setup
41 |
42 | private func setup()
43 | {
44 | let viewController = self
45 | let interactor = ChildInteractor()
46 | let presenter = ChildPresenter()
47 | let router = ChildRouter()
48 | viewController.interactor = interactor
49 | viewController.router = router
50 | interactor.presenter = presenter
51 | presenter.viewController = viewController
52 | router.viewController = viewController
53 | router.dataStore = interactor
54 | }
55 |
56 | // MARK: Routing
57 |
58 | override func prepare(for segue: UIStoryboardSegue, sender: Any?)
59 | {
60 | if let scene = segue.identifier {
61 | let selector = NSSelectorFromString("routeTo\(scene)WithSegue:")
62 | if let router = router, router.responds(to: selector) {
63 | router.perform(selector, with: segue)
64 | }
65 | }
66 | }
67 |
68 | // MARK: View lifecycle
69 |
70 | override func viewDidLoad()
71 | {
72 | super.viewDidLoad()
73 | }
74 |
75 | override func viewWillAppear(_ animated: Bool)
76 | {
77 | super.viewWillAppear(animated)
78 | showGreeting()
79 | }
80 |
81 | // MARK: Show greeting
82 |
83 | @IBOutlet weak var label: UILabel!
84 | @IBOutlet weak var textField: UITextField!
85 |
86 | func showGreeting()
87 | {
88 | let request = Child.ShowGreeting.Request()
89 | interactor?.showGreeting(request: request)
90 | }
91 |
92 | func displayGreeting(viewModel: Child.ShowGreeting.ViewModel)
93 | {
94 | label.text = viewModel.greeting
95 | }
96 |
97 | // MARK: Tell parent
98 |
99 | @IBAction func buttonTapped(_ sender: Any)
100 | {
101 | tellParent()
102 | }
103 |
104 | func tellParent()
105 | {
106 | let name = textField.text!
107 | let request = Child.TellParent.Request(name: name)
108 | interactor?.tellParent(request: request)
109 | }
110 |
111 | func displayTellParent(viewModel: Child.TellParent.ViewModel)
112 | {
113 | router?.routeToParent(segue: nil)
114 | }
115 | }
116 |
--------------------------------------------------------------------------------
/DataPassing/Scenes/Parent/ParentViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ParentViewController.swift
3 | // DataPassing
4 | //
5 | // Created by Raymond Law on 3/22/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol ParentDisplayLogic: class
16 | {
17 | func displayGreeting(viewModel: Parent.ShowGreeting.ViewModel)
18 | func displayTellChild(viewModel: Parent.TellChild.ViewModel)
19 | }
20 |
21 | class ParentViewController: UIViewController, ParentDisplayLogic
22 | {
23 | var interactor: ParentBusinessLogic?
24 | var router: (NSObjectProtocol & ParentRoutingLogic & ParentDataPassing)?
25 |
26 | // MARK: Object lifecycle
27 |
28 | override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
29 | {
30 | super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
31 | setup()
32 | }
33 |
34 | required init?(coder aDecoder: NSCoder)
35 | {
36 | super.init(coder: aDecoder)
37 | setup()
38 | }
39 |
40 | // MARK: Setup
41 |
42 | private func setup()
43 | {
44 | let viewController = self
45 | let interactor = ParentInteractor()
46 | let presenter = ParentPresenter()
47 | let router = ParentRouter()
48 | viewController.interactor = interactor
49 | viewController.router = router
50 | interactor.presenter = presenter
51 | presenter.viewController = viewController
52 | router.viewController = viewController
53 | router.dataStore = interactor
54 | }
55 |
56 | // MARK: Routing
57 |
58 | override func prepare(for segue: UIStoryboardSegue, sender: Any?)
59 | {
60 | if let scene = segue.identifier {
61 | let selector = NSSelectorFromString("routeTo\(scene)WithSegue:")
62 | if let router = router, router.responds(to: selector) {
63 | router.perform(selector, with: segue)
64 | }
65 | }
66 | }
67 |
68 | // MARK: View lifecycle
69 |
70 | override func viewDidLoad()
71 | {
72 | super.viewDidLoad()
73 | }
74 |
75 | override func viewWillAppear(_ animated: Bool)
76 | {
77 | super.viewWillAppear(animated)
78 | showGreeting()
79 | }
80 |
81 | // MARK: Show greeting
82 |
83 | @IBOutlet weak var label: UILabel!
84 | @IBOutlet weak var textField: UITextField!
85 |
86 | func showGreeting()
87 | {
88 | let request = Parent.ShowGreeting.Request()
89 | interactor?.showGreeting(request: request)
90 | }
91 |
92 | func displayGreeting(viewModel: Parent.ShowGreeting.ViewModel)
93 | {
94 | label.text = viewModel.greeting
95 | }
96 |
97 | // MARK: Tell child
98 |
99 | @IBAction func buttonTapped(_ sender: Any)
100 | {
101 | tellChild()
102 | }
103 |
104 | func tellChild()
105 | {
106 | let name = textField.text!
107 | let request = Parent.TellChild.Request(name: name)
108 | interactor?.tellChild(request: request)
109 | }
110 |
111 | func displayTellChild(viewModel: Parent.TellChild.ViewModel)
112 | {
113 | router?.routeToChild(segue: nil)
114 | }
115 | }
116 |
--------------------------------------------------------------------------------
/DataPassing/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 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
43 |
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 |
69 |
70 |
71 |
72 |
73 |
74 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/DataPassing.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 48;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 7179F12C2064031100F3D67F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F12B2064031100F3D67F /* AppDelegate.swift */; };
11 | 7179F1312064031100F3D67F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7179F12F2064031100F3D67F /* Main.storyboard */; };
12 | 7179F1332064031100F3D67F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7179F1322064031100F3D67F /* Assets.xcassets */; };
13 | 7179F1362064031100F3D67F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7179F1342064031100F3D67F /* LaunchScreen.storyboard */; };
14 | 7179F1412064031100F3D67F /* DataPassingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F1402064031100F3D67F /* DataPassingTests.swift */; };
15 | 7179F14C2064031100F3D67F /* DataPassingUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F14B2064031100F3D67F /* DataPassingUITests.swift */; };
16 | 7179F1622064043600F3D67F /* ParentInteractor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F15C2064043600F3D67F /* ParentInteractor.swift */; };
17 | 7179F1632064043600F3D67F /* ParentModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F15D2064043600F3D67F /* ParentModels.swift */; };
18 | 7179F1642064043600F3D67F /* ParentPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F15E2064043600F3D67F /* ParentPresenter.swift */; };
19 | 7179F1652064043600F3D67F /* ParentRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F15F2064043600F3D67F /* ParentRouter.swift */; };
20 | 7179F1662064043600F3D67F /* ParentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F1602064043600F3D67F /* ParentViewController.swift */; };
21 | 7179F1672064043600F3D67F /* ParentWorker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F1612064043600F3D67F /* ParentWorker.swift */; };
22 | 7179F16E2064044600F3D67F /* ChildInteractor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F1682064044600F3D67F /* ChildInteractor.swift */; };
23 | 7179F16F2064044600F3D67F /* ChildModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F1692064044600F3D67F /* ChildModels.swift */; };
24 | 7179F1702064044600F3D67F /* ChildPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F16A2064044600F3D67F /* ChildPresenter.swift */; };
25 | 7179F1712064044600F3D67F /* ChildRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F16B2064044600F3D67F /* ChildRouter.swift */; };
26 | 7179F1722064044600F3D67F /* ChildViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F16C2064044600F3D67F /* ChildViewController.swift */; };
27 | 7179F1732064044600F3D67F /* ChildWorker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7179F16D2064044600F3D67F /* ChildWorker.swift */; };
28 | /* End PBXBuildFile section */
29 |
30 | /* Begin PBXContainerItemProxy section */
31 | 7179F13D2064031100F3D67F /* PBXContainerItemProxy */ = {
32 | isa = PBXContainerItemProxy;
33 | containerPortal = 7179F1202064031100F3D67F /* Project object */;
34 | proxyType = 1;
35 | remoteGlobalIDString = 7179F1272064031100F3D67F;
36 | remoteInfo = DataPassing;
37 | };
38 | 7179F1482064031100F3D67F /* PBXContainerItemProxy */ = {
39 | isa = PBXContainerItemProxy;
40 | containerPortal = 7179F1202064031100F3D67F /* Project object */;
41 | proxyType = 1;
42 | remoteGlobalIDString = 7179F1272064031100F3D67F;
43 | remoteInfo = DataPassing;
44 | };
45 | /* End PBXContainerItemProxy section */
46 |
47 | /* Begin PBXFileReference section */
48 | 7179F1282064031100F3D67F /* DataPassing.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DataPassing.app; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 7179F12B2064031100F3D67F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
50 | 7179F1302064031100F3D67F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
51 | 7179F1322064031100F3D67F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
52 | 7179F1352064031100F3D67F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
53 | 7179F1372064031100F3D67F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
54 | 7179F13C2064031100F3D67F /* DataPassingTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DataPassingTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
55 | 7179F1402064031100F3D67F /* DataPassingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataPassingTests.swift; sourceTree = ""; };
56 | 7179F1422064031100F3D67F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
57 | 7179F1472064031100F3D67F /* DataPassingUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DataPassingUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
58 | 7179F14B2064031100F3D67F /* DataPassingUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataPassingUITests.swift; sourceTree = ""; };
59 | 7179F14D2064031100F3D67F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
60 | 7179F15C2064043600F3D67F /* ParentInteractor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParentInteractor.swift; sourceTree = ""; };
61 | 7179F15D2064043600F3D67F /* ParentModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParentModels.swift; sourceTree = ""; };
62 | 7179F15E2064043600F3D67F /* ParentPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParentPresenter.swift; sourceTree = ""; };
63 | 7179F15F2064043600F3D67F /* ParentRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParentRouter.swift; sourceTree = ""; };
64 | 7179F1602064043600F3D67F /* ParentViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParentViewController.swift; sourceTree = ""; };
65 | 7179F1612064043600F3D67F /* ParentWorker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParentWorker.swift; sourceTree = ""; };
66 | 7179F1682064044600F3D67F /* ChildInteractor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildInteractor.swift; sourceTree = ""; };
67 | 7179F1692064044600F3D67F /* ChildModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildModels.swift; sourceTree = ""; };
68 | 7179F16A2064044600F3D67F /* ChildPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildPresenter.swift; sourceTree = ""; };
69 | 7179F16B2064044600F3D67F /* ChildRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildRouter.swift; sourceTree = ""; };
70 | 7179F16C2064044600F3D67F /* ChildViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildViewController.swift; sourceTree = ""; };
71 | 7179F16D2064044600F3D67F /* ChildWorker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildWorker.swift; sourceTree = ""; };
72 | /* End PBXFileReference section */
73 |
74 | /* Begin PBXFrameworksBuildPhase section */
75 | 7179F1252064031100F3D67F /* Frameworks */ = {
76 | isa = PBXFrameworksBuildPhase;
77 | buildActionMask = 2147483647;
78 | files = (
79 | );
80 | runOnlyForDeploymentPostprocessing = 0;
81 | };
82 | 7179F1392064031100F3D67F /* Frameworks */ = {
83 | isa = PBXFrameworksBuildPhase;
84 | buildActionMask = 2147483647;
85 | files = (
86 | );
87 | runOnlyForDeploymentPostprocessing = 0;
88 | };
89 | 7179F1442064031100F3D67F /* Frameworks */ = {
90 | isa = PBXFrameworksBuildPhase;
91 | buildActionMask = 2147483647;
92 | files = (
93 | );
94 | runOnlyForDeploymentPostprocessing = 0;
95 | };
96 | /* End PBXFrameworksBuildPhase section */
97 |
98 | /* Begin PBXGroup section */
99 | 7179F11F2064031100F3D67F = {
100 | isa = PBXGroup;
101 | children = (
102 | 7179F12A2064031100F3D67F /* DataPassing */,
103 | 7179F13F2064031100F3D67F /* DataPassingTests */,
104 | 7179F14A2064031100F3D67F /* DataPassingUITests */,
105 | 7179F1292064031100F3D67F /* Products */,
106 | );
107 | sourceTree = "";
108 | };
109 | 7179F1292064031100F3D67F /* Products */ = {
110 | isa = PBXGroup;
111 | children = (
112 | 7179F1282064031100F3D67F /* DataPassing.app */,
113 | 7179F13C2064031100F3D67F /* DataPassingTests.xctest */,
114 | 7179F1472064031100F3D67F /* DataPassingUITests.xctest */,
115 | );
116 | name = Products;
117 | sourceTree = "";
118 | };
119 | 7179F12A2064031100F3D67F /* DataPassing */ = {
120 | isa = PBXGroup;
121 | children = (
122 | 7179F159206403D900F3D67F /* Scenes */,
123 | 7179F12B2064031100F3D67F /* AppDelegate.swift */,
124 | 7179F12F2064031100F3D67F /* Main.storyboard */,
125 | 7179F1322064031100F3D67F /* Assets.xcassets */,
126 | 7179F1342064031100F3D67F /* LaunchScreen.storyboard */,
127 | 7179F1372064031100F3D67F /* Info.plist */,
128 | );
129 | path = DataPassing;
130 | sourceTree = "";
131 | };
132 | 7179F13F2064031100F3D67F /* DataPassingTests */ = {
133 | isa = PBXGroup;
134 | children = (
135 | 7179F1402064031100F3D67F /* DataPassingTests.swift */,
136 | 7179F1422064031100F3D67F /* Info.plist */,
137 | );
138 | path = DataPassingTests;
139 | sourceTree = "";
140 | };
141 | 7179F14A2064031100F3D67F /* DataPassingUITests */ = {
142 | isa = PBXGroup;
143 | children = (
144 | 7179F14B2064031100F3D67F /* DataPassingUITests.swift */,
145 | 7179F14D2064031100F3D67F /* Info.plist */,
146 | );
147 | path = DataPassingUITests;
148 | sourceTree = "";
149 | };
150 | 7179F159206403D900F3D67F /* Scenes */ = {
151 | isa = PBXGroup;
152 | children = (
153 | 7179F15B2064041400F3D67F /* Parent */,
154 | 7179F15A2064040F00F3D67F /* Child */,
155 | );
156 | path = Scenes;
157 | sourceTree = "";
158 | };
159 | 7179F15A2064040F00F3D67F /* Child */ = {
160 | isa = PBXGroup;
161 | children = (
162 | 7179F1682064044600F3D67F /* ChildInteractor.swift */,
163 | 7179F1692064044600F3D67F /* ChildModels.swift */,
164 | 7179F16A2064044600F3D67F /* ChildPresenter.swift */,
165 | 7179F16B2064044600F3D67F /* ChildRouter.swift */,
166 | 7179F16C2064044600F3D67F /* ChildViewController.swift */,
167 | 7179F16D2064044600F3D67F /* ChildWorker.swift */,
168 | );
169 | path = Child;
170 | sourceTree = "";
171 | };
172 | 7179F15B2064041400F3D67F /* Parent */ = {
173 | isa = PBXGroup;
174 | children = (
175 | 7179F15C2064043600F3D67F /* ParentInteractor.swift */,
176 | 7179F15D2064043600F3D67F /* ParentModels.swift */,
177 | 7179F15E2064043600F3D67F /* ParentPresenter.swift */,
178 | 7179F15F2064043600F3D67F /* ParentRouter.swift */,
179 | 7179F1602064043600F3D67F /* ParentViewController.swift */,
180 | 7179F1612064043600F3D67F /* ParentWorker.swift */,
181 | );
182 | path = Parent;
183 | sourceTree = "";
184 | };
185 | /* End PBXGroup section */
186 |
187 | /* Begin PBXNativeTarget section */
188 | 7179F1272064031100F3D67F /* DataPassing */ = {
189 | isa = PBXNativeTarget;
190 | buildConfigurationList = 7179F1502064031100F3D67F /* Build configuration list for PBXNativeTarget "DataPassing" */;
191 | buildPhases = (
192 | 7179F1242064031100F3D67F /* Sources */,
193 | 7179F1252064031100F3D67F /* Frameworks */,
194 | 7179F1262064031100F3D67F /* Resources */,
195 | );
196 | buildRules = (
197 | );
198 | dependencies = (
199 | );
200 | name = DataPassing;
201 | productName = DataPassing;
202 | productReference = 7179F1282064031100F3D67F /* DataPassing.app */;
203 | productType = "com.apple.product-type.application";
204 | };
205 | 7179F13B2064031100F3D67F /* DataPassingTests */ = {
206 | isa = PBXNativeTarget;
207 | buildConfigurationList = 7179F1532064031100F3D67F /* Build configuration list for PBXNativeTarget "DataPassingTests" */;
208 | buildPhases = (
209 | 7179F1382064031100F3D67F /* Sources */,
210 | 7179F1392064031100F3D67F /* Frameworks */,
211 | 7179F13A2064031100F3D67F /* Resources */,
212 | );
213 | buildRules = (
214 | );
215 | dependencies = (
216 | 7179F13E2064031100F3D67F /* PBXTargetDependency */,
217 | );
218 | name = DataPassingTests;
219 | productName = DataPassingTests;
220 | productReference = 7179F13C2064031100F3D67F /* DataPassingTests.xctest */;
221 | productType = "com.apple.product-type.bundle.unit-test";
222 | };
223 | 7179F1462064031100F3D67F /* DataPassingUITests */ = {
224 | isa = PBXNativeTarget;
225 | buildConfigurationList = 7179F1562064031100F3D67F /* Build configuration list for PBXNativeTarget "DataPassingUITests" */;
226 | buildPhases = (
227 | 7179F1432064031100F3D67F /* Sources */,
228 | 7179F1442064031100F3D67F /* Frameworks */,
229 | 7179F1452064031100F3D67F /* Resources */,
230 | );
231 | buildRules = (
232 | );
233 | dependencies = (
234 | 7179F1492064031100F3D67F /* PBXTargetDependency */,
235 | );
236 | name = DataPassingUITests;
237 | productName = DataPassingUITests;
238 | productReference = 7179F1472064031100F3D67F /* DataPassingUITests.xctest */;
239 | productType = "com.apple.product-type.bundle.ui-testing";
240 | };
241 | /* End PBXNativeTarget section */
242 |
243 | /* Begin PBXProject section */
244 | 7179F1202064031100F3D67F /* Project object */ = {
245 | isa = PBXProject;
246 | attributes = {
247 | LastSwiftUpdateCheck = 0920;
248 | LastUpgradeCheck = 0920;
249 | ORGANIZATIONNAME = "Clean Swift LLC";
250 | TargetAttributes = {
251 | 7179F1272064031100F3D67F = {
252 | CreatedOnToolsVersion = 9.2;
253 | ProvisioningStyle = Automatic;
254 | };
255 | 7179F13B2064031100F3D67F = {
256 | CreatedOnToolsVersion = 9.2;
257 | ProvisioningStyle = Automatic;
258 | TestTargetID = 7179F1272064031100F3D67F;
259 | };
260 | 7179F1462064031100F3D67F = {
261 | CreatedOnToolsVersion = 9.2;
262 | ProvisioningStyle = Automatic;
263 | TestTargetID = 7179F1272064031100F3D67F;
264 | };
265 | };
266 | };
267 | buildConfigurationList = 7179F1232064031100F3D67F /* Build configuration list for PBXProject "DataPassing" */;
268 | compatibilityVersion = "Xcode 8.0";
269 | developmentRegion = en;
270 | hasScannedForEncodings = 0;
271 | knownRegions = (
272 | en,
273 | Base,
274 | );
275 | mainGroup = 7179F11F2064031100F3D67F;
276 | productRefGroup = 7179F1292064031100F3D67F /* Products */;
277 | projectDirPath = "";
278 | projectRoot = "";
279 | targets = (
280 | 7179F1272064031100F3D67F /* DataPassing */,
281 | 7179F13B2064031100F3D67F /* DataPassingTests */,
282 | 7179F1462064031100F3D67F /* DataPassingUITests */,
283 | );
284 | };
285 | /* End PBXProject section */
286 |
287 | /* Begin PBXResourcesBuildPhase section */
288 | 7179F1262064031100F3D67F /* Resources */ = {
289 | isa = PBXResourcesBuildPhase;
290 | buildActionMask = 2147483647;
291 | files = (
292 | 7179F1362064031100F3D67F /* LaunchScreen.storyboard in Resources */,
293 | 7179F1332064031100F3D67F /* Assets.xcassets in Resources */,
294 | 7179F1312064031100F3D67F /* Main.storyboard in Resources */,
295 | );
296 | runOnlyForDeploymentPostprocessing = 0;
297 | };
298 | 7179F13A2064031100F3D67F /* Resources */ = {
299 | isa = PBXResourcesBuildPhase;
300 | buildActionMask = 2147483647;
301 | files = (
302 | );
303 | runOnlyForDeploymentPostprocessing = 0;
304 | };
305 | 7179F1452064031100F3D67F /* Resources */ = {
306 | isa = PBXResourcesBuildPhase;
307 | buildActionMask = 2147483647;
308 | files = (
309 | );
310 | runOnlyForDeploymentPostprocessing = 0;
311 | };
312 | /* End PBXResourcesBuildPhase section */
313 |
314 | /* Begin PBXSourcesBuildPhase section */
315 | 7179F1242064031100F3D67F /* Sources */ = {
316 | isa = PBXSourcesBuildPhase;
317 | buildActionMask = 2147483647;
318 | files = (
319 | 7179F1632064043600F3D67F /* ParentModels.swift in Sources */,
320 | 7179F1622064043600F3D67F /* ParentInteractor.swift in Sources */,
321 | 7179F1662064043600F3D67F /* ParentViewController.swift in Sources */,
322 | 7179F1702064044600F3D67F /* ChildPresenter.swift in Sources */,
323 | 7179F16F2064044600F3D67F /* ChildModels.swift in Sources */,
324 | 7179F1672064043600F3D67F /* ParentWorker.swift in Sources */,
325 | 7179F1642064043600F3D67F /* ParentPresenter.swift in Sources */,
326 | 7179F1732064044600F3D67F /* ChildWorker.swift in Sources */,
327 | 7179F1712064044600F3D67F /* ChildRouter.swift in Sources */,
328 | 7179F12C2064031100F3D67F /* AppDelegate.swift in Sources */,
329 | 7179F1652064043600F3D67F /* ParentRouter.swift in Sources */,
330 | 7179F16E2064044600F3D67F /* ChildInteractor.swift in Sources */,
331 | 7179F1722064044600F3D67F /* ChildViewController.swift in Sources */,
332 | );
333 | runOnlyForDeploymentPostprocessing = 0;
334 | };
335 | 7179F1382064031100F3D67F /* Sources */ = {
336 | isa = PBXSourcesBuildPhase;
337 | buildActionMask = 2147483647;
338 | files = (
339 | 7179F1412064031100F3D67F /* DataPassingTests.swift in Sources */,
340 | );
341 | runOnlyForDeploymentPostprocessing = 0;
342 | };
343 | 7179F1432064031100F3D67F /* Sources */ = {
344 | isa = PBXSourcesBuildPhase;
345 | buildActionMask = 2147483647;
346 | files = (
347 | 7179F14C2064031100F3D67F /* DataPassingUITests.swift in Sources */,
348 | );
349 | runOnlyForDeploymentPostprocessing = 0;
350 | };
351 | /* End PBXSourcesBuildPhase section */
352 |
353 | /* Begin PBXTargetDependency section */
354 | 7179F13E2064031100F3D67F /* PBXTargetDependency */ = {
355 | isa = PBXTargetDependency;
356 | target = 7179F1272064031100F3D67F /* DataPassing */;
357 | targetProxy = 7179F13D2064031100F3D67F /* PBXContainerItemProxy */;
358 | };
359 | 7179F1492064031100F3D67F /* PBXTargetDependency */ = {
360 | isa = PBXTargetDependency;
361 | target = 7179F1272064031100F3D67F /* DataPassing */;
362 | targetProxy = 7179F1482064031100F3D67F /* PBXContainerItemProxy */;
363 | };
364 | /* End PBXTargetDependency section */
365 |
366 | /* Begin PBXVariantGroup section */
367 | 7179F12F2064031100F3D67F /* Main.storyboard */ = {
368 | isa = PBXVariantGroup;
369 | children = (
370 | 7179F1302064031100F3D67F /* Base */,
371 | );
372 | name = Main.storyboard;
373 | sourceTree = "";
374 | };
375 | 7179F1342064031100F3D67F /* LaunchScreen.storyboard */ = {
376 | isa = PBXVariantGroup;
377 | children = (
378 | 7179F1352064031100F3D67F /* Base */,
379 | );
380 | name = LaunchScreen.storyboard;
381 | sourceTree = "";
382 | };
383 | /* End PBXVariantGroup section */
384 |
385 | /* Begin XCBuildConfiguration section */
386 | 7179F14E2064031100F3D67F /* Debug */ = {
387 | isa = XCBuildConfiguration;
388 | buildSettings = {
389 | ALWAYS_SEARCH_USER_PATHS = NO;
390 | CLANG_ANALYZER_NONNULL = YES;
391 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
393 | CLANG_CXX_LIBRARY = "libc++";
394 | CLANG_ENABLE_MODULES = YES;
395 | CLANG_ENABLE_OBJC_ARC = YES;
396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
397 | CLANG_WARN_BOOL_CONVERSION = YES;
398 | CLANG_WARN_COMMA = YES;
399 | CLANG_WARN_CONSTANT_CONVERSION = YES;
400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
401 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
402 | CLANG_WARN_EMPTY_BODY = YES;
403 | CLANG_WARN_ENUM_CONVERSION = YES;
404 | CLANG_WARN_INFINITE_RECURSION = YES;
405 | CLANG_WARN_INT_CONVERSION = YES;
406 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
407 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
408 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
409 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
410 | CLANG_WARN_STRICT_PROTOTYPES = YES;
411 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
412 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
413 | CLANG_WARN_UNREACHABLE_CODE = YES;
414 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
415 | CODE_SIGN_IDENTITY = "iPhone Developer";
416 | COPY_PHASE_STRIP = NO;
417 | DEBUG_INFORMATION_FORMAT = dwarf;
418 | ENABLE_STRICT_OBJC_MSGSEND = YES;
419 | ENABLE_TESTABILITY = YES;
420 | GCC_C_LANGUAGE_STANDARD = gnu11;
421 | GCC_DYNAMIC_NO_PIC = NO;
422 | GCC_NO_COMMON_BLOCKS = YES;
423 | GCC_OPTIMIZATION_LEVEL = 0;
424 | GCC_PREPROCESSOR_DEFINITIONS = (
425 | "DEBUG=1",
426 | "$(inherited)",
427 | );
428 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
429 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
430 | GCC_WARN_UNDECLARED_SELECTOR = YES;
431 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
432 | GCC_WARN_UNUSED_FUNCTION = YES;
433 | GCC_WARN_UNUSED_VARIABLE = YES;
434 | IPHONEOS_DEPLOYMENT_TARGET = 11.2;
435 | MTL_ENABLE_DEBUG_INFO = YES;
436 | ONLY_ACTIVE_ARCH = YES;
437 | SDKROOT = iphoneos;
438 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
439 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
440 | };
441 | name = Debug;
442 | };
443 | 7179F14F2064031100F3D67F /* Release */ = {
444 | isa = XCBuildConfiguration;
445 | buildSettings = {
446 | ALWAYS_SEARCH_USER_PATHS = NO;
447 | CLANG_ANALYZER_NONNULL = YES;
448 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
449 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
450 | CLANG_CXX_LIBRARY = "libc++";
451 | CLANG_ENABLE_MODULES = YES;
452 | CLANG_ENABLE_OBJC_ARC = YES;
453 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
454 | CLANG_WARN_BOOL_CONVERSION = YES;
455 | CLANG_WARN_COMMA = YES;
456 | CLANG_WARN_CONSTANT_CONVERSION = YES;
457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
458 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
459 | CLANG_WARN_EMPTY_BODY = YES;
460 | CLANG_WARN_ENUM_CONVERSION = YES;
461 | CLANG_WARN_INFINITE_RECURSION = YES;
462 | CLANG_WARN_INT_CONVERSION = YES;
463 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
464 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
465 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
466 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
467 | CLANG_WARN_STRICT_PROTOTYPES = YES;
468 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
469 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
470 | CLANG_WARN_UNREACHABLE_CODE = YES;
471 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
472 | CODE_SIGN_IDENTITY = "iPhone Developer";
473 | COPY_PHASE_STRIP = NO;
474 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
475 | ENABLE_NS_ASSERTIONS = NO;
476 | ENABLE_STRICT_OBJC_MSGSEND = YES;
477 | GCC_C_LANGUAGE_STANDARD = gnu11;
478 | GCC_NO_COMMON_BLOCKS = YES;
479 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
480 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
481 | GCC_WARN_UNDECLARED_SELECTOR = YES;
482 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
483 | GCC_WARN_UNUSED_FUNCTION = YES;
484 | GCC_WARN_UNUSED_VARIABLE = YES;
485 | IPHONEOS_DEPLOYMENT_TARGET = 11.2;
486 | MTL_ENABLE_DEBUG_INFO = NO;
487 | SDKROOT = iphoneos;
488 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
489 | VALIDATE_PRODUCT = YES;
490 | };
491 | name = Release;
492 | };
493 | 7179F1512064031100F3D67F /* Debug */ = {
494 | isa = XCBuildConfiguration;
495 | buildSettings = {
496 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
497 | CODE_SIGN_STYLE = Automatic;
498 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
499 | INFOPLIST_FILE = DataPassing/Info.plist;
500 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
501 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.DataPassing";
502 | PRODUCT_NAME = "$(TARGET_NAME)";
503 | SWIFT_VERSION = 4.0;
504 | TARGETED_DEVICE_FAMILY = "1,2";
505 | };
506 | name = Debug;
507 | };
508 | 7179F1522064031100F3D67F /* Release */ = {
509 | isa = XCBuildConfiguration;
510 | buildSettings = {
511 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
512 | CODE_SIGN_STYLE = Automatic;
513 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
514 | INFOPLIST_FILE = DataPassing/Info.plist;
515 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
516 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.DataPassing";
517 | PRODUCT_NAME = "$(TARGET_NAME)";
518 | SWIFT_VERSION = 4.0;
519 | TARGETED_DEVICE_FAMILY = "1,2";
520 | };
521 | name = Release;
522 | };
523 | 7179F1542064031100F3D67F /* Debug */ = {
524 | isa = XCBuildConfiguration;
525 | buildSettings = {
526 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
527 | BUNDLE_LOADER = "$(TEST_HOST)";
528 | CODE_SIGN_STYLE = Automatic;
529 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
530 | INFOPLIST_FILE = DataPassingTests/Info.plist;
531 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
532 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.DataPassingTests";
533 | PRODUCT_NAME = "$(TARGET_NAME)";
534 | SWIFT_VERSION = 4.0;
535 | TARGETED_DEVICE_FAMILY = "1,2";
536 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DataPassing.app/DataPassing";
537 | };
538 | name = Debug;
539 | };
540 | 7179F1552064031100F3D67F /* Release */ = {
541 | isa = XCBuildConfiguration;
542 | buildSettings = {
543 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
544 | BUNDLE_LOADER = "$(TEST_HOST)";
545 | CODE_SIGN_STYLE = Automatic;
546 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
547 | INFOPLIST_FILE = DataPassingTests/Info.plist;
548 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
549 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.DataPassingTests";
550 | PRODUCT_NAME = "$(TARGET_NAME)";
551 | SWIFT_VERSION = 4.0;
552 | TARGETED_DEVICE_FAMILY = "1,2";
553 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DataPassing.app/DataPassing";
554 | };
555 | name = Release;
556 | };
557 | 7179F1572064031100F3D67F /* Debug */ = {
558 | isa = XCBuildConfiguration;
559 | buildSettings = {
560 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
561 | CODE_SIGN_STYLE = Automatic;
562 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
563 | INFOPLIST_FILE = DataPassingUITests/Info.plist;
564 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
565 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.DataPassingUITests";
566 | PRODUCT_NAME = "$(TARGET_NAME)";
567 | SWIFT_VERSION = 4.0;
568 | TARGETED_DEVICE_FAMILY = "1,2";
569 | TEST_TARGET_NAME = DataPassing;
570 | };
571 | name = Debug;
572 | };
573 | 7179F1582064031100F3D67F /* Release */ = {
574 | isa = XCBuildConfiguration;
575 | buildSettings = {
576 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
577 | CODE_SIGN_STYLE = Automatic;
578 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
579 | INFOPLIST_FILE = DataPassingUITests/Info.plist;
580 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
581 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.DataPassingUITests";
582 | PRODUCT_NAME = "$(TARGET_NAME)";
583 | SWIFT_VERSION = 4.0;
584 | TARGETED_DEVICE_FAMILY = "1,2";
585 | TEST_TARGET_NAME = DataPassing;
586 | };
587 | name = Release;
588 | };
589 | /* End XCBuildConfiguration section */
590 |
591 | /* Begin XCConfigurationList section */
592 | 7179F1232064031100F3D67F /* Build configuration list for PBXProject "DataPassing" */ = {
593 | isa = XCConfigurationList;
594 | buildConfigurations = (
595 | 7179F14E2064031100F3D67F /* Debug */,
596 | 7179F14F2064031100F3D67F /* Release */,
597 | );
598 | defaultConfigurationIsVisible = 0;
599 | defaultConfigurationName = Release;
600 | };
601 | 7179F1502064031100F3D67F /* Build configuration list for PBXNativeTarget "DataPassing" */ = {
602 | isa = XCConfigurationList;
603 | buildConfigurations = (
604 | 7179F1512064031100F3D67F /* Debug */,
605 | 7179F1522064031100F3D67F /* Release */,
606 | );
607 | defaultConfigurationIsVisible = 0;
608 | defaultConfigurationName = Release;
609 | };
610 | 7179F1532064031100F3D67F /* Build configuration list for PBXNativeTarget "DataPassingTests" */ = {
611 | isa = XCConfigurationList;
612 | buildConfigurations = (
613 | 7179F1542064031100F3D67F /* Debug */,
614 | 7179F1552064031100F3D67F /* Release */,
615 | );
616 | defaultConfigurationIsVisible = 0;
617 | defaultConfigurationName = Release;
618 | };
619 | 7179F1562064031100F3D67F /* Build configuration list for PBXNativeTarget "DataPassingUITests" */ = {
620 | isa = XCConfigurationList;
621 | buildConfigurations = (
622 | 7179F1572064031100F3D67F /* Debug */,
623 | 7179F1582064031100F3D67F /* Release */,
624 | );
625 | defaultConfigurationIsVisible = 0;
626 | defaultConfigurationName = Release;
627 | };
628 | /* End XCConfigurationList section */
629 | };
630 | rootObject = 7179F1202064031100F3D67F /* Project object */;
631 | }
632 |
--------------------------------------------------------------------------------