├── README.md
├── .DS_Store
├── TravelBook
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── TravelBook.xcdatamodeld
│ ├── .xccurrentversion
│ └── TravelBook.xcdatamodel
│ │ └── contents
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── Info.plist
├── SceneDelegate.swift
├── ListViewController.swift
├── AppDelegate.swift
└── ViewController.swift
└── TravelBook.xcodeproj
├── project.xcworkspace
├── contents.xcworkspacedata
├── xcuserdata
│ └── atilsamancioglu.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── xcshareddata
│ └── IDEWorkspaceChecks.plist
├── xcuserdata
└── atilsamancioglu.xcuserdatad
│ └── xcschemes
│ └── xcschememanagement.plist
└── project.pbxproj
/README.md:
--------------------------------------------------------------------------------
1 | # IOS16-TravelBook
2 |
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atilsamancioglu/IOS16-TravelBook/HEAD/.DS_Store
--------------------------------------------------------------------------------
/TravelBook/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TravelBook.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TravelBook.xcodeproj/project.xcworkspace/xcuserdata/atilsamancioglu.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atilsamancioglu/IOS16-TravelBook/HEAD/TravelBook.xcodeproj/project.xcworkspace/xcuserdata/atilsamancioglu.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/TravelBook.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TravelBook/TravelBook.xcdatamodeld/.xccurrentversion:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | _XCCurrentVersionName
6 | TravelBook.xcdatamodel
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TravelBook.xcodeproj/xcuserdata/atilsamancioglu.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | TravelBook.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/TravelBook/TravelBook.xcdatamodeld/TravelBook.xcdatamodel/contents:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/TravelBook/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 |
--------------------------------------------------------------------------------
/TravelBook/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/TravelBook/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 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UIApplicationSceneManifest
24 |
25 | UIApplicationSupportsMultipleScenes
26 |
27 | UISceneConfigurations
28 |
29 | UIWindowSceneSessionRoleApplication
30 |
31 |
32 | UILaunchStoryboardName
33 | LaunchScreen
34 | UISceneConfigurationName
35 | Default Configuration
36 | UISceneDelegateClassName
37 | $(PRODUCT_MODULE_NAME).SceneDelegate
38 | UISceneStoryboardFile
39 | Main
40 |
41 |
42 |
43 |
44 | UILaunchStoryboardName
45 | LaunchScreen
46 | NSLocationWhenInUseUsageDescription
47 | To get your location
48 | UIMainStoryboardFile
49 | Main
50 | UIRequiredDeviceCapabilities
51 |
52 | armv7
53 |
54 | UISupportedInterfaceOrientations
55 |
56 | UIInterfaceOrientationPortrait
57 | UIInterfaceOrientationLandscapeLeft
58 | UIInterfaceOrientationLandscapeRight
59 |
60 | UISupportedInterfaceOrientations~ipad
61 |
62 | UIInterfaceOrientationPortrait
63 | UIInterfaceOrientationPortraitUpsideDown
64 | UIInterfaceOrientationLandscapeLeft
65 | UIInterfaceOrientationLandscapeRight
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/TravelBook/SceneDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SceneDelegate.swift
3 | // TravelBook
4 | //
5 | // Created by Atil Samancioglu on 27.07.2019.
6 | // Copyright © 2019 Atil Samancioglu. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate {
12 |
13 | var window: UIWindow?
14 |
15 |
16 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
17 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
18 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
19 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
20 | guard let _ = (scene as? UIWindowScene) else { return }
21 | }
22 |
23 | func sceneDidDisconnect(_ scene: UIScene) {
24 | // Called as the scene is being released by the system.
25 | // This occurs shortly after the scene enters the background, or when its session is discarded.
26 | // Release any resources associated with this scene that can be re-created the next time the scene connects.
27 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
28 | }
29 |
30 | func sceneDidBecomeActive(_ scene: UIScene) {
31 | // Called when the scene has moved from an inactive state to an active state.
32 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
33 | }
34 |
35 | func sceneWillResignActive(_ scene: UIScene) {
36 | // Called when the scene will move from an active state to an inactive state.
37 | // This may occur due to temporary interruptions (ex. an incoming phone call).
38 | }
39 |
40 | func sceneWillEnterForeground(_ scene: UIScene) {
41 | // Called as the scene transitions from the background to the foreground.
42 | // Use this method to undo the changes made on entering the background.
43 | }
44 |
45 | func sceneDidEnterBackground(_ scene: UIScene) {
46 | // Called as the scene transitions from the foreground to the background.
47 | // Use this method to save data, release shared resources, and store enough scene-specific state information
48 | // to restore the scene back to its current state.
49 |
50 | // Save changes in the application's managed object context when the application transitions to the background.
51 | (UIApplication.shared.delegate as? AppDelegate)?.saveContext()
52 | }
53 |
54 |
55 | }
56 |
57 |
--------------------------------------------------------------------------------
/TravelBook/ListViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ListViewController.swift
3 | // TravelBook
4 | //
5 | // Created by Atil Samancioglu on 27.07.2019.
6 | // Copyright © 2019 Atil Samancioglu. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import CoreData
11 |
12 | class ListViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
13 | @IBOutlet weak var tableView: UITableView!
14 | var titleArray = [String]()
15 | var idArray = [UUID]()
16 | var chosenTitle = ""
17 | var chosenTitleId : UUID?
18 |
19 | override func viewDidLoad() {
20 | super.viewDidLoad()
21 |
22 | navigationController?.navigationBar.topItem?.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonItem.SystemItem.add, target: self, action: #selector(addButtonClicked))
23 |
24 | tableView.delegate = self
25 | tableView.dataSource = self
26 |
27 | getData()
28 | }
29 |
30 | override func viewWillAppear(_ animated: Bool) {
31 | NotificationCenter.default.addObserver(self, selector: #selector(getData), name: NSNotification.Name("newPlace"), object: nil)
32 | }
33 |
34 | @objc func getData() {
35 |
36 | let appDelegate = UIApplication.shared.delegate as! AppDelegate
37 | let context = appDelegate.persistentContainer.viewContext
38 |
39 | let request = NSFetchRequest(entityName: "Places")
40 | request.returnsObjectsAsFaults = false
41 | do {
42 | let results = try context.fetch(request)
43 |
44 | if results.count > 0 {
45 |
46 | self.titleArray.removeAll(keepingCapacity: false)
47 | self.idArray.removeAll(keepingCapacity: false)
48 |
49 | for result in results as! [NSManagedObject] {
50 |
51 | if let title = result.value(forKey: "title") as? String {
52 | self.titleArray.append(title)
53 | }
54 |
55 | if let id = result.value(forKey: "id") as? UUID {
56 | self.idArray.append(id)
57 | }
58 |
59 | tableView.reloadData()
60 |
61 | }
62 |
63 | }
64 |
65 |
66 | } catch {
67 | print("error")
68 | }
69 |
70 | }
71 |
72 | @objc func addButtonClicked() {
73 | chosenTitle = ""
74 | performSegue(withIdentifier: "toViewController", sender: nil)
75 | }
76 |
77 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
78 | return titleArray.count
79 | }
80 |
81 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
82 | let cell = UITableViewCell()
83 | cell.textLabel?.text = titleArray[indexPath.row]
84 | return cell
85 | }
86 |
87 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
88 | chosenTitle = titleArray[indexPath.row]
89 | chosenTitleId = idArray[indexPath.row]
90 | performSegue(withIdentifier: "toViewController", sender: nil)
91 | }
92 |
93 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
94 | if segue.identifier == "toViewController" {
95 | let destinationVC = segue.destination as! ViewController
96 | destinationVC.selectedTitle = chosenTitle
97 | destinationVC.selectedTitleID = chosenTitleId
98 |
99 | }
100 | }
101 |
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/TravelBook/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // TravelBook
4 | //
5 | // Created by Atil Samancioglu on 27.07.2019.
6 | // Copyright © 2019 Atil Samancioglu. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import CoreData
11 |
12 | @UIApplicationMain
13 | class AppDelegate: UIResponder, UIApplicationDelegate {
14 |
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | // MARK: UISceneSession Lifecycle
23 |
24 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
25 | // Called when a new scene session is being created.
26 | // Use this method to select a configuration to create the new scene with.
27 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
28 | }
29 |
30 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) {
31 | // Called when the user discards a scene session.
32 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
33 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
34 | }
35 |
36 | // MARK: - Core Data stack
37 |
38 | lazy var persistentContainer: NSPersistentContainer = {
39 | /*
40 | The persistent container for the application. This implementation
41 | creates and returns a container, having loaded the store for the
42 | application to it. This property is optional since there are legitimate
43 | error conditions that could cause the creation of the store to fail.
44 | */
45 | let container = NSPersistentContainer(name: "TravelBook")
46 | container.loadPersistentStores(completionHandler: { (storeDescription, error) in
47 | if let error = error as NSError? {
48 | // Replace this implementation with code to handle the error appropriately.
49 | // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
50 |
51 | /*
52 | Typical reasons for an error here include:
53 | * The parent directory does not exist, cannot be created, or disallows writing.
54 | * The persistent store is not accessible, due to permissions or data protection when the device is locked.
55 | * The device is out of space.
56 | * The store could not be migrated to the current model version.
57 | Check the error message to determine what the actual problem was.
58 | */
59 | fatalError("Unresolved error \(error), \(error.userInfo)")
60 | }
61 | })
62 | return container
63 | }()
64 |
65 | // MARK: - Core Data Saving support
66 |
67 | func saveContext () {
68 | let context = persistentContainer.viewContext
69 | if context.hasChanges {
70 | do {
71 | try context.save()
72 | } catch {
73 | // Replace this implementation with code to handle the error appropriately.
74 | // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
75 | let nserror = error as NSError
76 | fatalError("Unresolved error \(nserror), \(nserror.userInfo)")
77 | }
78 | }
79 | }
80 |
81 | }
82 |
83 |
--------------------------------------------------------------------------------
/TravelBook/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // TravelBook
4 | //
5 | // Created by Atil Samancioglu on 27.07.2019.
6 | // Copyright © 2019 Atil Samancioglu. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import MapKit
11 | import CoreLocation
12 | import CoreData
13 |
14 | class ViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate {
15 |
16 | @IBOutlet weak var nameText: UITextField!
17 |
18 | @IBOutlet weak var commentText: UITextField!
19 |
20 | @IBOutlet weak var mapView: MKMapView!
21 | var locationManager = CLLocationManager()
22 | var chosenLatitude = Double()
23 | var chosenLongitude = Double()
24 |
25 | var selectedTitle = ""
26 | var selectedTitleID : UUID?
27 |
28 | var annotationTitle = ""
29 | var annotationSubtitle = ""
30 | var annotationLatitude = Double()
31 | var annotationLongitude = Double()
32 |
33 | override func viewDidLoad() {
34 | super.viewDidLoad()
35 |
36 | mapView.delegate = self
37 | locationManager.delegate = self
38 | locationManager.desiredAccuracy = kCLLocationAccuracyBest
39 | locationManager.requestWhenInUseAuthorization()
40 | locationManager.startUpdatingLocation()
41 |
42 |
43 | let gestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(chooseLocation(gestureRecognizer:)))
44 | gestureRecognizer.minimumPressDuration = 3
45 | mapView.addGestureRecognizer(gestureRecognizer)
46 |
47 |
48 | if selectedTitle != "" {
49 | //CoreData
50 |
51 | let appDelegate = UIApplication.shared.delegate as! AppDelegate
52 | let context = appDelegate.persistentContainer.viewContext
53 |
54 | let fetchRequest = NSFetchRequest(entityName: "Places")
55 | let idString = selectedTitleID!.uuidString
56 | fetchRequest.predicate = NSPredicate(format: "id = %@", idString)
57 | fetchRequest.returnsObjectsAsFaults = false
58 |
59 | do {
60 | let results = try context.fetch(fetchRequest)
61 | if results.count > 0 {
62 |
63 | for result in results as! [NSManagedObject] {
64 |
65 | if let title = result.value(forKey: "title") as? String {
66 | annotationTitle = title
67 |
68 | if let subtitle = result.value(forKey: "subtitle") as? String {
69 | annotationSubtitle = subtitle
70 |
71 | if let latitude = result.value(forKey: "latitude") as? Double {
72 | annotationLatitude = latitude
73 |
74 | if let longitude = result.value(forKey: "longitude") as? Double {
75 | annotationLongitude = longitude
76 |
77 | let annotation = MKPointAnnotation()
78 | annotation.title = annotationTitle
79 | annotation.subtitle = annotationSubtitle
80 | let coordinate = CLLocationCoordinate2D(latitude: annotationLatitude, longitude: annotationLongitude)
81 | annotation.coordinate = coordinate
82 |
83 | mapView.addAnnotation(annotation)
84 | nameText.text = annotationTitle
85 | commentText.text = annotationSubtitle
86 |
87 | locationManager.stopUpdatingLocation()
88 |
89 | let span = MKCoordinateSpan(latitudeDelta: 0.05, longitudeDelta: 0.05)
90 | let region = MKCoordinateRegion(center: coordinate, span: span)
91 | mapView.setRegion(region, animated: true)
92 |
93 |
94 | }
95 | }
96 |
97 | }
98 | }
99 | }
100 | }
101 | } catch {
102 | print("error")
103 | }
104 |
105 |
106 | } else {
107 | //Add New Data
108 | }
109 |
110 |
111 | }
112 |
113 | @objc func chooseLocation(gestureRecognizer:UILongPressGestureRecognizer) {
114 |
115 | if gestureRecognizer.state == .began {
116 |
117 | let touchedPoint = gestureRecognizer.location(in: self.mapView)
118 | let touchedCoordinates = self.mapView.convert(touchedPoint, toCoordinateFrom: self.mapView)
119 |
120 | chosenLatitude = touchedCoordinates.latitude
121 | chosenLongitude = touchedCoordinates.longitude
122 |
123 | let annotation = MKPointAnnotation()
124 | annotation.coordinate = touchedCoordinates
125 | annotation.title = nameText.text
126 | annotation.subtitle = commentText.text
127 | self.mapView.addAnnotation(annotation)
128 |
129 |
130 | }
131 |
132 | }
133 |
134 | func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
135 | if selectedTitle == "" {
136 | let location = CLLocationCoordinate2D(latitude: locations[0].coordinate.latitude, longitude: locations[0].coordinate.longitude)
137 | let span = MKCoordinateSpan(latitudeDelta: 0.05, longitudeDelta: 0.05)
138 | let region = MKCoordinateRegion(center: location, span: span)
139 | mapView.setRegion(region, animated: true)
140 | } else {
141 | //
142 | }
143 | }
144 |
145 | func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
146 |
147 | if annotation is MKUserLocation {
148 | return nil
149 | }
150 |
151 | let reuseId = "myAnnotation"
152 | var pinView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) as? MKMarkerAnnotationView
153 |
154 | if pinView == nil {
155 | pinView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: reuseId)
156 | pinView?.canShowCallout = true
157 | pinView?.tintColor = UIColor.black
158 |
159 | let button = UIButton(type: UIButton.ButtonType.detailDisclosure)
160 | pinView?.rightCalloutAccessoryView = button
161 |
162 | } else {
163 | pinView?.annotation = annotation
164 | }
165 |
166 |
167 |
168 | return pinView
169 | }
170 |
171 |
172 | func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) {
173 | if selectedTitle != "" {
174 |
175 | let requestLocation = CLLocation(latitude: annotationLatitude, longitude: annotationLongitude)
176 |
177 |
178 | CLGeocoder().reverseGeocodeLocation(requestLocation) { (placemarks, error) in
179 | //closure
180 |
181 | if let placemark = placemarks {
182 | if placemark.count > 0 {
183 |
184 | let newPlacemark = MKPlacemark(placemark: placemark[0])
185 | let item = MKMapItem(placemark: newPlacemark)
186 | item.name = self.annotationTitle
187 | let launchOptions = [MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving]
188 | item.openInMaps(launchOptions: launchOptions)
189 |
190 | }
191 | }
192 | }
193 |
194 |
195 | }
196 |
197 |
198 |
199 |
200 | }
201 |
202 |
203 |
204 |
205 |
206 | @IBAction func saveButtonClicked(_ sender: Any) {
207 |
208 | let appDelegate = UIApplication.shared.delegate as! AppDelegate
209 | let context = appDelegate.persistentContainer.viewContext
210 |
211 | let newPlace = NSEntityDescription.insertNewObject(forEntityName: "Places", into: context)
212 |
213 | newPlace.setValue(nameText.text, forKey: "title")
214 | newPlace.setValue(commentText.text, forKey: "subtitle")
215 | newPlace.setValue(chosenLatitude, forKey: "latitude")
216 | newPlace.setValue(chosenLongitude, forKey: "longitude")
217 | newPlace.setValue(UUID(), forKey: "id")
218 |
219 | do {
220 | try context.save()
221 | print("success")
222 | } catch {
223 | print("error")
224 | }
225 |
226 | NotificationCenter.default.post(name: NSNotification.Name("newPlace"), object: nil)
227 | navigationController?.popViewController(animated: true)
228 |
229 |
230 | }
231 |
232 |
233 |
234 | }
235 |
236 |
--------------------------------------------------------------------------------
/TravelBook/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
--------------------------------------------------------------------------------
/TravelBook.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | FC26E99C22EC56FC00D86E0D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC26E99B22EC56FC00D86E0D /* AppDelegate.swift */; };
11 | FC26E99E22EC56FC00D86E0D /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC26E99D22EC56FC00D86E0D /* SceneDelegate.swift */; };
12 | FC26E9A022EC56FC00D86E0D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC26E99F22EC56FC00D86E0D /* ViewController.swift */; };
13 | FC26E9A322EC56FD00D86E0D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FC26E9A122EC56FD00D86E0D /* Main.storyboard */; };
14 | FC26E9A622EC56FD00D86E0D /* TravelBook.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = FC26E9A422EC56FD00D86E0D /* TravelBook.xcdatamodeld */; };
15 | FC26E9A822EC56FE00D86E0D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FC26E9A722EC56FE00D86E0D /* Assets.xcassets */; };
16 | FC26E9AB22EC56FE00D86E0D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FC26E9A922EC56FE00D86E0D /* LaunchScreen.storyboard */; };
17 | FC26E9B322EC682600D86E0D /* ListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC26E9B222EC682600D86E0D /* ListViewController.swift */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXFileReference section */
21 | FC26E99822EC56FC00D86E0D /* TravelBook.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TravelBook.app; sourceTree = BUILT_PRODUCTS_DIR; };
22 | FC26E99B22EC56FC00D86E0D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
23 | FC26E99D22EC56FC00D86E0D /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; };
24 | FC26E99F22EC56FC00D86E0D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
25 | FC26E9A222EC56FD00D86E0D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
26 | FC26E9A522EC56FD00D86E0D /* TravelBook.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = TravelBook.xcdatamodel; sourceTree = ""; };
27 | FC26E9A722EC56FE00D86E0D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
28 | FC26E9AA22EC56FE00D86E0D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
29 | FC26E9AC22EC56FE00D86E0D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | FC26E9B222EC682600D86E0D /* ListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListViewController.swift; sourceTree = ""; };
31 | /* End PBXFileReference section */
32 |
33 | /* Begin PBXFrameworksBuildPhase section */
34 | FC26E99522EC56FC00D86E0D /* Frameworks */ = {
35 | isa = PBXFrameworksBuildPhase;
36 | buildActionMask = 2147483647;
37 | files = (
38 | );
39 | runOnlyForDeploymentPostprocessing = 0;
40 | };
41 | /* End PBXFrameworksBuildPhase section */
42 |
43 | /* Begin PBXGroup section */
44 | FC26E98F22EC56FC00D86E0D = {
45 | isa = PBXGroup;
46 | children = (
47 | FC26E99A22EC56FC00D86E0D /* TravelBook */,
48 | FC26E99922EC56FC00D86E0D /* Products */,
49 | );
50 | sourceTree = "";
51 | };
52 | FC26E99922EC56FC00D86E0D /* Products */ = {
53 | isa = PBXGroup;
54 | children = (
55 | FC26E99822EC56FC00D86E0D /* TravelBook.app */,
56 | );
57 | name = Products;
58 | sourceTree = "";
59 | };
60 | FC26E99A22EC56FC00D86E0D /* TravelBook */ = {
61 | isa = PBXGroup;
62 | children = (
63 | FC26E99B22EC56FC00D86E0D /* AppDelegate.swift */,
64 | FC26E99D22EC56FC00D86E0D /* SceneDelegate.swift */,
65 | FC26E99F22EC56FC00D86E0D /* ViewController.swift */,
66 | FC26E9B222EC682600D86E0D /* ListViewController.swift */,
67 | FC26E9A122EC56FD00D86E0D /* Main.storyboard */,
68 | FC26E9A722EC56FE00D86E0D /* Assets.xcassets */,
69 | FC26E9A922EC56FE00D86E0D /* LaunchScreen.storyboard */,
70 | FC26E9AC22EC56FE00D86E0D /* Info.plist */,
71 | FC26E9A422EC56FD00D86E0D /* TravelBook.xcdatamodeld */,
72 | );
73 | path = TravelBook;
74 | sourceTree = "";
75 | };
76 | /* End PBXGroup section */
77 |
78 | /* Begin PBXNativeTarget section */
79 | FC26E99722EC56FC00D86E0D /* TravelBook */ = {
80 | isa = PBXNativeTarget;
81 | buildConfigurationList = FC26E9AF22EC56FE00D86E0D /* Build configuration list for PBXNativeTarget "TravelBook" */;
82 | buildPhases = (
83 | FC26E99422EC56FC00D86E0D /* Sources */,
84 | FC26E99522EC56FC00D86E0D /* Frameworks */,
85 | FC26E99622EC56FC00D86E0D /* Resources */,
86 | );
87 | buildRules = (
88 | );
89 | dependencies = (
90 | );
91 | name = TravelBook;
92 | productName = TravelBook;
93 | productReference = FC26E99822EC56FC00D86E0D /* TravelBook.app */;
94 | productType = "com.apple.product-type.application";
95 | };
96 | /* End PBXNativeTarget section */
97 |
98 | /* Begin PBXProject section */
99 | FC26E99022EC56FC00D86E0D /* Project object */ = {
100 | isa = PBXProject;
101 | attributes = {
102 | BuildIndependentTargetsInParallel = YES;
103 | LastSwiftUpdateCheck = 1100;
104 | LastUpgradeCheck = 1500;
105 | ORGANIZATIONNAME = "Atil Samancioglu";
106 | TargetAttributes = {
107 | FC26E99722EC56FC00D86E0D = {
108 | CreatedOnToolsVersion = 11.0;
109 | };
110 | };
111 | };
112 | buildConfigurationList = FC26E99322EC56FC00D86E0D /* Build configuration list for PBXProject "TravelBook" */;
113 | compatibilityVersion = "Xcode 9.3";
114 | developmentRegion = en;
115 | hasScannedForEncodings = 0;
116 | knownRegions = (
117 | en,
118 | Base,
119 | );
120 | mainGroup = FC26E98F22EC56FC00D86E0D;
121 | productRefGroup = FC26E99922EC56FC00D86E0D /* Products */;
122 | projectDirPath = "";
123 | projectRoot = "";
124 | targets = (
125 | FC26E99722EC56FC00D86E0D /* TravelBook */,
126 | );
127 | };
128 | /* End PBXProject section */
129 |
130 | /* Begin PBXResourcesBuildPhase section */
131 | FC26E99622EC56FC00D86E0D /* Resources */ = {
132 | isa = PBXResourcesBuildPhase;
133 | buildActionMask = 2147483647;
134 | files = (
135 | FC26E9AB22EC56FE00D86E0D /* LaunchScreen.storyboard in Resources */,
136 | FC26E9A822EC56FE00D86E0D /* Assets.xcassets in Resources */,
137 | FC26E9A322EC56FD00D86E0D /* Main.storyboard in Resources */,
138 | );
139 | runOnlyForDeploymentPostprocessing = 0;
140 | };
141 | /* End PBXResourcesBuildPhase section */
142 |
143 | /* Begin PBXSourcesBuildPhase section */
144 | FC26E99422EC56FC00D86E0D /* Sources */ = {
145 | isa = PBXSourcesBuildPhase;
146 | buildActionMask = 2147483647;
147 | files = (
148 | FC26E9A622EC56FD00D86E0D /* TravelBook.xcdatamodeld in Sources */,
149 | FC26E9A022EC56FC00D86E0D /* ViewController.swift in Sources */,
150 | FC26E99C22EC56FC00D86E0D /* AppDelegate.swift in Sources */,
151 | FC26E9B322EC682600D86E0D /* ListViewController.swift in Sources */,
152 | FC26E99E22EC56FC00D86E0D /* SceneDelegate.swift in Sources */,
153 | );
154 | runOnlyForDeploymentPostprocessing = 0;
155 | };
156 | /* End PBXSourcesBuildPhase section */
157 |
158 | /* Begin PBXVariantGroup section */
159 | FC26E9A122EC56FD00D86E0D /* Main.storyboard */ = {
160 | isa = PBXVariantGroup;
161 | children = (
162 | FC26E9A222EC56FD00D86E0D /* Base */,
163 | );
164 | name = Main.storyboard;
165 | sourceTree = "";
166 | };
167 | FC26E9A922EC56FE00D86E0D /* LaunchScreen.storyboard */ = {
168 | isa = PBXVariantGroup;
169 | children = (
170 | FC26E9AA22EC56FE00D86E0D /* Base */,
171 | );
172 | name = LaunchScreen.storyboard;
173 | sourceTree = "";
174 | };
175 | /* End PBXVariantGroup section */
176 |
177 | /* Begin XCBuildConfiguration section */
178 | FC26E9AD22EC56FE00D86E0D /* Debug */ = {
179 | isa = XCBuildConfiguration;
180 | buildSettings = {
181 | ALWAYS_SEARCH_USER_PATHS = NO;
182 | CLANG_ANALYZER_NONNULL = YES;
183 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
184 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
185 | CLANG_CXX_LIBRARY = "libc++";
186 | CLANG_ENABLE_MODULES = YES;
187 | CLANG_ENABLE_OBJC_ARC = YES;
188 | CLANG_ENABLE_OBJC_WEAK = YES;
189 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
190 | CLANG_WARN_BOOL_CONVERSION = YES;
191 | CLANG_WARN_COMMA = YES;
192 | CLANG_WARN_CONSTANT_CONVERSION = YES;
193 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
194 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
195 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
196 | CLANG_WARN_EMPTY_BODY = YES;
197 | CLANG_WARN_ENUM_CONVERSION = YES;
198 | CLANG_WARN_INFINITE_RECURSION = YES;
199 | CLANG_WARN_INT_CONVERSION = YES;
200 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
201 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
202 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
203 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
204 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
205 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
206 | CLANG_WARN_STRICT_PROTOTYPES = YES;
207 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
208 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
209 | CLANG_WARN_UNREACHABLE_CODE = YES;
210 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
211 | COPY_PHASE_STRIP = NO;
212 | DEBUG_INFORMATION_FORMAT = dwarf;
213 | ENABLE_STRICT_OBJC_MSGSEND = YES;
214 | ENABLE_TESTABILITY = YES;
215 | ENABLE_USER_SCRIPT_SANDBOXING = YES;
216 | GCC_C_LANGUAGE_STANDARD = gnu11;
217 | GCC_DYNAMIC_NO_PIC = NO;
218 | GCC_NO_COMMON_BLOCKS = YES;
219 | GCC_OPTIMIZATION_LEVEL = 0;
220 | GCC_PREPROCESSOR_DEFINITIONS = (
221 | "DEBUG=1",
222 | "$(inherited)",
223 | );
224 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
225 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
226 | GCC_WARN_UNDECLARED_SELECTOR = YES;
227 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
228 | GCC_WARN_UNUSED_FUNCTION = YES;
229 | GCC_WARN_UNUSED_VARIABLE = YES;
230 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
231 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
232 | MTL_FAST_MATH = YES;
233 | ONLY_ACTIVE_ARCH = YES;
234 | SDKROOT = iphoneos;
235 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
236 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
237 | };
238 | name = Debug;
239 | };
240 | FC26E9AE22EC56FE00D86E0D /* Release */ = {
241 | isa = XCBuildConfiguration;
242 | buildSettings = {
243 | ALWAYS_SEARCH_USER_PATHS = NO;
244 | CLANG_ANALYZER_NONNULL = YES;
245 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
246 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
247 | CLANG_CXX_LIBRARY = "libc++";
248 | CLANG_ENABLE_MODULES = YES;
249 | CLANG_ENABLE_OBJC_ARC = YES;
250 | CLANG_ENABLE_OBJC_WEAK = YES;
251 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
252 | CLANG_WARN_BOOL_CONVERSION = YES;
253 | CLANG_WARN_COMMA = YES;
254 | CLANG_WARN_CONSTANT_CONVERSION = YES;
255 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
256 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
257 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
258 | CLANG_WARN_EMPTY_BODY = YES;
259 | CLANG_WARN_ENUM_CONVERSION = YES;
260 | CLANG_WARN_INFINITE_RECURSION = YES;
261 | CLANG_WARN_INT_CONVERSION = YES;
262 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
263 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
264 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
265 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
266 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
267 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
268 | CLANG_WARN_STRICT_PROTOTYPES = YES;
269 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
270 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
271 | CLANG_WARN_UNREACHABLE_CODE = YES;
272 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
273 | COPY_PHASE_STRIP = NO;
274 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
275 | ENABLE_NS_ASSERTIONS = NO;
276 | ENABLE_STRICT_OBJC_MSGSEND = YES;
277 | ENABLE_USER_SCRIPT_SANDBOXING = YES;
278 | GCC_C_LANGUAGE_STANDARD = gnu11;
279 | GCC_NO_COMMON_BLOCKS = YES;
280 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
281 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
282 | GCC_WARN_UNDECLARED_SELECTOR = YES;
283 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
284 | GCC_WARN_UNUSED_FUNCTION = YES;
285 | GCC_WARN_UNUSED_VARIABLE = YES;
286 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
287 | MTL_ENABLE_DEBUG_INFO = NO;
288 | MTL_FAST_MATH = YES;
289 | SDKROOT = iphoneos;
290 | SWIFT_COMPILATION_MODE = wholemodule;
291 | SWIFT_OPTIMIZATION_LEVEL = "-O";
292 | VALIDATE_PRODUCT = YES;
293 | };
294 | name = Release;
295 | };
296 | FC26E9B022EC56FE00D86E0D /* Debug */ = {
297 | isa = XCBuildConfiguration;
298 | buildSettings = {
299 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
300 | CODE_SIGN_STYLE = Automatic;
301 | DEVELOPMENT_TEAM = 7SH627DBA4;
302 | INFOPLIST_FILE = TravelBook/Info.plist;
303 | IPHONEOS_DEPLOYMENT_TARGET = 16.0;
304 | LD_RUNPATH_SEARCH_PATHS = (
305 | "$(inherited)",
306 | "@executable_path/Frameworks",
307 | );
308 | PRODUCT_BUNDLE_IDENTIFIER = com.atilsamancioglu.TravelBook;
309 | PRODUCT_NAME = "$(TARGET_NAME)";
310 | SWIFT_VERSION = 5.0;
311 | TARGETED_DEVICE_FAMILY = "1,2";
312 | };
313 | name = Debug;
314 | };
315 | FC26E9B122EC56FE00D86E0D /* Release */ = {
316 | isa = XCBuildConfiguration;
317 | buildSettings = {
318 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
319 | CODE_SIGN_STYLE = Automatic;
320 | DEVELOPMENT_TEAM = 7SH627DBA4;
321 | INFOPLIST_FILE = TravelBook/Info.plist;
322 | IPHONEOS_DEPLOYMENT_TARGET = 16.0;
323 | LD_RUNPATH_SEARCH_PATHS = (
324 | "$(inherited)",
325 | "@executable_path/Frameworks",
326 | );
327 | PRODUCT_BUNDLE_IDENTIFIER = com.atilsamancioglu.TravelBook;
328 | PRODUCT_NAME = "$(TARGET_NAME)";
329 | SWIFT_VERSION = 5.0;
330 | TARGETED_DEVICE_FAMILY = "1,2";
331 | };
332 | name = Release;
333 | };
334 | /* End XCBuildConfiguration section */
335 |
336 | /* Begin XCConfigurationList section */
337 | FC26E99322EC56FC00D86E0D /* Build configuration list for PBXProject "TravelBook" */ = {
338 | isa = XCConfigurationList;
339 | buildConfigurations = (
340 | FC26E9AD22EC56FE00D86E0D /* Debug */,
341 | FC26E9AE22EC56FE00D86E0D /* Release */,
342 | );
343 | defaultConfigurationIsVisible = 0;
344 | defaultConfigurationName = Release;
345 | };
346 | FC26E9AF22EC56FE00D86E0D /* Build configuration list for PBXNativeTarget "TravelBook" */ = {
347 | isa = XCConfigurationList;
348 | buildConfigurations = (
349 | FC26E9B022EC56FE00D86E0D /* Debug */,
350 | FC26E9B122EC56FE00D86E0D /* Release */,
351 | );
352 | defaultConfigurationIsVisible = 0;
353 | defaultConfigurationName = Release;
354 | };
355 | /* End XCConfigurationList section */
356 |
357 | /* Begin XCVersionGroup section */
358 | FC26E9A422EC56FD00D86E0D /* TravelBook.xcdatamodeld */ = {
359 | isa = XCVersionGroup;
360 | children = (
361 | FC26E9A522EC56FD00D86E0D /* TravelBook.xcdatamodel */,
362 | );
363 | currentVersion = FC26E9A522EC56FD00D86E0D /* TravelBook.xcdatamodel */;
364 | path = TravelBook.xcdatamodeld;
365 | sourceTree = "";
366 | versionGroupType = wrapper.xcdatamodel;
367 | };
368 | /* End XCVersionGroup section */
369 | };
370 | rootObject = FC26E99022EC56FC00D86E0D /* Project object */;
371 | }
372 |
--------------------------------------------------------------------------------