├── SwiftStorage ├── SwiftStorage │ ├── Assets.xcassets │ │ ├── Contents.json │ │ ├── notes.imageset │ │ │ ├── notes.png │ │ │ ├── notes-1.png │ │ │ ├── notes-2.png │ │ │ └── Contents.json │ │ ├── photo.imageset │ │ │ ├── photo.png │ │ │ ├── photo-1.png │ │ │ ├── photo-2.png │ │ │ └── Contents.json │ │ ├── marker.imageset │ │ │ ├── marker.png │ │ │ ├── marker-1.png │ │ │ ├── marker-2.png │ │ │ └── Contents.json │ │ ├── location.imageset │ │ │ ├── location (1).png │ │ │ ├── location (1)-1.png │ │ │ ├── location (1)-2.png │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── screenshot │ │ ├── home1.png │ │ ├── home2.png │ │ ├── map1.png │ │ ├── map2.png │ │ ├── banner.png │ │ ├── notes1.png │ │ ├── notes2.png │ │ ├── notes3.png │ │ └── splash.png │ ├── coredata │ │ ├── SwiftStorage.xcdatamodeld │ │ │ ├── .xccurrentversion │ │ │ └── SwiftStorage.xcdatamodel │ │ │ │ └── contents │ │ └── CoreDataHandler.swift │ ├── helper │ │ ├── LocationHelper.swift │ │ ├── NotesHelper.swift │ │ ├── NotesTableViewCell.swift │ │ └── NotesTableViewCell.xib │ ├── CardView.swift │ ├── Info.plist │ ├── controller │ │ ├── BaseViewController.swift │ │ ├── CoreTableViewController.swift │ │ ├── LocationViewController.swift │ │ └── NotesViewController.swift │ ├── storyboard │ │ └── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ └── AppDelegate.swift └── SwiftStorage.xcodeproj │ ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcuserdata │ │ └── new.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ ├── xcuserdata │ └── new.xcuserdatad │ │ ├── xcschemes │ │ ├── xcschememanagement.plist │ │ └── SwiftStorage.xcscheme │ │ └── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ └── project.pbxproj ├── .gitignore ├── README.md └── LICENSE /SwiftStorage/SwiftStorage/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/home1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/home1.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/home2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/home2.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/map1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/map1.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/map2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/map2.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/banner.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/notes1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/notes1.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/notes2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/notes2.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/notes3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/notes3.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/screenshot/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/screenshot/splash.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/notes.imageset/notes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/notes.imageset/notes.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/photo.imageset/photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/photo.imageset/photo.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/marker.imageset/marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/marker.imageset/marker.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/notes.imageset/notes-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/notes.imageset/notes-1.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/notes.imageset/notes-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/notes.imageset/notes-2.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/photo.imageset/photo-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/photo.imageset/photo-1.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/photo.imageset/photo-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/photo.imageset/photo-2.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/marker.imageset/marker-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/marker.imageset/marker-1.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/marker.imageset/marker-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/marker.imageset/marker-2.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/location.imageset/location (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/location.imageset/location (1).png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/location.imageset/location (1)-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/location.imageset/location (1)-1.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/location.imageset/location (1)-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage/Assets.xcassets/location.imageset/location (1)-2.png -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage.xcodeproj/project.xcworkspace/xcuserdata/new.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuvraj24/SwiftNotes/HEAD/SwiftStorage/SwiftStorage.xcodeproj/project.xcworkspace/xcuserdata/new.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/coredata/SwiftStorage.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | SwiftStorage.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/notes.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "notes.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "notes-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "notes-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/photo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "photo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "photo-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "photo-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/marker.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "marker.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "marker-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "marker-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Assets.xcassets/location.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "location (1).png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "location (1)-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "location (1)-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/helper/LocationHelper.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LocationHelper.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 29/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class LocationHelper{ 12 | var location = String() 13 | var lattitude = Double() 14 | var longitude = Double() 15 | 16 | init(location : String, lat : Double , long : Double) { 17 | self.location = location 18 | self.lattitude = lat 19 | self.longitude = long 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/helper/NotesHelper.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NotesHelper.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 29/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class NotesHelper { 12 | var photo : String = "" 13 | var location : LocationHelper 14 | var content : String = "" 15 | 16 | init(photo : String, location : LocationHelper, content : String) { 17 | self.photo = photo 18 | self.location = location 19 | self.content = content 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage.xcodeproj/xcuserdata/new.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | SwiftStorage.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | D5418B4720B9E9A0001D620C 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/helper/NotesTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NotesTableViewCell.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 30/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class NotesTableViewCell: UITableViewCell { 12 | 13 | @IBOutlet var imageNotes : UIImageView? 14 | @IBOutlet var contentNotes : UILabel? 15 | @IBOutlet var locationNotes : UILabel? 16 | 17 | override func awakeFromNib() { 18 | super.awakeFromNib() 19 | // Initialization code 20 | } 21 | 22 | override func setSelected(_ selected: Bool, animated: Bool) { 23 | super.setSelected(selected, animated: animated) 24 | 25 | // Configure the view for the selected state 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/CardView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // File.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 27/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | @IBDesignable 13 | class CardView: UIView { 14 | 15 | @IBInspectable var cornerRadius: CGFloat = 2 16 | 17 | @IBInspectable var shadowOffsetWidth: Int = 0 18 | @IBInspectable var shadowOffsetHeight: Int = 3 19 | @IBInspectable var shadowColor: UIColor? = UIColor.black 20 | @IBInspectable var shadowOpacity: Float = 0.5 21 | 22 | override func layoutSubviews() { 23 | layer.cornerRadius = cornerRadius 24 | let shadowPath = UIBezierPath(roundedRect: bounds, cornerRadius: cornerRadius) 25 | 26 | layer.masksToBounds = false 27 | layer.shadowColor = shadowColor?.cgColor 28 | layer.shadowOffset = CGSize(width: shadowOffsetWidth, height: shadowOffsetHeight); 29 | layer.shadowOpacity = shadowOpacity 30 | layer.shadowPath = shadowPath.cgPath 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/coredata/SwiftStorage.xcdatamodeld/SwiftStorage.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # IntelliJ 36 | *.iml 37 | .idea/workspace.xml 38 | .idea/tasks.xml 39 | .idea/gradle.xml 40 | .idea/assetWizardSettings.xml 41 | .idea/dictionaries 42 | .idea/libraries 43 | .idea/caches 44 | 45 | # Keystore files 46 | # Uncomment the following line if you do not want to check your keystore files in. 47 | #*.jks 48 | 49 | # External native build folder generated in Android Studio 2.2 and later 50 | .externalNativeBuild 51 | 52 | # Google Services (e.g. APIs or Firebase) 53 | google-services.json 54 | 55 | # Freeline 56 | freeline.py 57 | freeline/ 58 | freeline_project_description.json 59 | 60 | # fastlane 61 | fastlane/report.xml 62 | fastlane/Preview.html 63 | fastlane/screenshots 64 | fastlane/test_output 65 | fastlane/readme.md 66 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/coredata/CoreDataHandler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CoreDataHandler.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 29/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreData 11 | 12 | class CoreDataHandler{ 13 | 14 | private func getContext() -> NSManagedObjectContext { 15 | let appdelegate = UIApplication.shared.delegate as! AppDelegate 16 | return appdelegate.persistentContainer.viewContext 17 | } 18 | 19 | func createNotes(helper : NotesHelper){ 20 | 21 | let context = getContext() 22 | 23 | let entity = NSEntityDescription.entity(forEntityName: "Notes", in: context) 24 | let managedObject = NSManagedObject(entity: entity!, insertInto: context) 25 | 26 | managedObject.setValue(helper.photo, forKey: "image") 27 | managedObject.setValue(helper.content, forKey: "content") 28 | managedObject.setValue(helper.location.location, forKey: "location") 29 | managedObject.setValue(helper.location.lattitude, forKey: "lattitude") 30 | managedObject.setValue(helper.location.longitude, forKey: "longitude") 31 | 32 | do { 33 | try context.save() 34 | } catch { 35 | print("Error creating notes") 36 | } 37 | } 38 | 39 | func getNotesList() -> [Notes] { 40 | let context = getContext() 41 | var notes : [Notes]? = nil 42 | do { 43 | notes = try context.fetch(Notes.fetchRequest()) 44 | } catch { 45 | print(error) 46 | } 47 | return notes! 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/helper/NotesTableViewCell.xib: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSLocationAlwaysAndWhenInUseUsageDescription 6 | This tutorial wants to use your location 7 | NSLocationWhenInUseUsageDescription 8 | This tutorial wants to use your location 9 | NSCameraUsageDescription 10 | Set the Background 11 | NSPhotoLibraryAddUsageDescription 12 | Set the Background 13 | CFBundleDevelopmentRegion 14 | $(DEVELOPMENT_LANGUAGE) 15 | CFBundleExecutable 16 | $(EXECUTABLE_NAME) 17 | CFBundleIdentifier 18 | $(PRODUCT_BUNDLE_IDENTIFIER) 19 | CFBundleInfoDictionaryVersion 20 | 6.0 21 | CFBundleName 22 | $(PRODUCT_NAME) 23 | CFBundlePackageType 24 | APPL 25 | CFBundleShortVersionString 26 | 1.0 27 | CFBundleVersion 28 | 1 29 | LSRequiresIPhoneOS 30 | 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | UIMainStoryboardFile 34 | Main 35 | UIRequiredDeviceCapabilities 36 | 37 | armv7 38 | 39 | UISupportedInterfaceOrientations 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationLandscapeLeft 43 | UIInterfaceOrientationLandscapeRight 44 | 45 | UISupportedInterfaceOrientations~ipad 46 | 47 | UIInterfaceOrientationPortrait 48 | UIInterfaceOrientationPortraitUpsideDown 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/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 | } -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/controller/BaseViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BasrViewController.swift 3 | // swiftconcepts 4 | // 5 | // Created by new on 21/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class BaseViewController: UIViewController { 12 | 13 | var container: UIView = UIView() 14 | var loadingView: UIView = UIView() 15 | var progress : UIActivityIndicatorView = UIActivityIndicatorView(frame: CGRect(x: 0, y: 0, width: 40, height: 40)); 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | hideKeyboardWhenTappedAround(); 20 | // Do any additional setup after loading the view. 21 | } 22 | 23 | func showProgressIndicator(){ 24 | 25 | container = UIView() 26 | container.frame = view.frame 27 | container.center = view.center 28 | container.backgroundColor = UIColorFromHex(rgbValue : 0xffffff, alpha: 0.7) 29 | 30 | loadingView = UIView() 31 | loadingView.frame = CGRect(x: 0, y: 0, width: 80, height: 80) 32 | loadingView.center = view.center 33 | loadingView.backgroundColor = UIColorFromHex(rgbValue : 0x444444, alpha: 1) 34 | loadingView.clipsToBounds = true 35 | loadingView.layer.cornerRadius = 10 36 | 37 | progress = UIActivityIndicatorView() 38 | progress.frame = CGRect(x: 0, y: 0, width: 40, height: 40); 39 | progress.center = CGPoint(x: loadingView.frame.size.width / 2, y: loadingView.frame.size.height / 2); 40 | progress.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.whiteLarge 41 | // UIApplication.shared.isNetworkActivityIndicatorVisible = true 42 | 43 | loadingView.addSubview(progress) 44 | container.addSubview(loadingView) 45 | view.addSubview(container) 46 | progress.startAnimating() 47 | } 48 | 49 | func hideProgressIndicator(){ 50 | progress.stopAnimating() 51 | container.removeFromSuperview() 52 | } 53 | 54 | /* 55 | Define UIColor from hex value 56 | 57 | @param rgbValue - hex color value 58 | @param alpha - transparency level 59 | */ 60 | func UIColorFromHex(rgbValue:UInt32, alpha:Double=1.0)->UIColor { 61 | let red = CGFloat((rgbValue & 0xFF0000) >> 16)/256.0 62 | let green = CGFloat((rgbValue & 0xFF00) >> 8)/256.0 63 | let blue = CGFloat(rgbValue & 0xFF)/256.0 64 | return UIColor(red:red, green:green, blue:blue, alpha:CGFloat(alpha)) 65 | } 66 | 67 | func hideKeyboardWhenTappedAround() { 68 | let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(BaseViewController.dismissKeyboard)) 69 | tap.cancelsTouchesInView = false 70 | view.addGestureRecognizer(tap) 71 | } 72 | 73 | @objc func dismissKeyboard() { 74 | view.endEditing(true) 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/storyboard/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SwiftNotes 2 | 3 | A sample Notes creation demo which demonstrates usage of few core features of IOS. This sample discusses in depth about CoreData, Mapkit & Corelocation clubbed with TableView for showing note's list. 4 | 5 |

6 | 7 |

8 | 9 | # Spread Your ❤️: 10 | 11 | [![GitHub followers](https://img.shields.io/github/followers/yuvraj24.svg?style=social&label=Follow)](https://github.com/yuvraj24) [![Twitter Follow](https://img.shields.io/twitter/follow/yuvrajpy24.svg?style=social)](https://twitter.com/yuvrajpy24) 12 | 13 | # Basics 14 | 15 | So basically all it startes with a Splash screen followed by Home screen with empty tableview at first when user opens the app for 1st time or has not created any notes yet. 16 | 17 | 18 | 19 | From here user can click on create icon which then will land on Create Notes screen. This screen allows you to add 3 things, 20 | - Image (Camera / Photo Library) 21 | - Location 22 | - Message (describing the message of the note). 23 | 24 | 25 | 26 | On click of location user is redirected to Map screen where in user by default is shown his current location using CoreLocation. User can search for any specific location according to his liking and post successfull search can clikc on Save to add that location to his note. 27 | 28 | 29 | 30 | In the final step user adds a message describing more about his objective behind creating that note. Post successfull addition of message user may click on save which redirects back to Home screen with the corresponding note created and displayed in tableview. 31 | 32 | 33 | 34 | # About Me 35 | 36 | ### Yuvraj Pandey 37 | I am a passionate Mobility Engineer which likes to push himself on various fronts of technologies. 38 | 39 | For more exciting updates follow me, 40 | 41 |                                      42 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage.xcodeproj/xcuserdata/new.xcuserdatad/xcschemes/SwiftStorage.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 69 | 70 | 71 | 77 | 79 | 85 | 86 | 87 | 88 | 90 | 91 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 27/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreData 11 | 12 | @UIApplicationMain 13 | class AppDelegate: UIResponder, UIApplicationDelegate { 14 | 15 | var window: UIWindow? 16 | 17 | 18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 19 | // Override point for customization after application launch. 20 | return true 21 | } 22 | 23 | func applicationWillResignActive(_ application: UIApplication) { 24 | // 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. 25 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 26 | } 27 | 28 | func applicationDidEnterBackground(_ application: UIApplication) { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | func applicationWillEnterForeground(_ application: UIApplication) { 34 | // 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. 35 | } 36 | 37 | func applicationDidBecomeActive(_ application: UIApplication) { 38 | // 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. 39 | } 40 | 41 | func applicationWillTerminate(_ application: UIApplication) { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | // Saves changes in the application's managed object context before the application terminates. 44 | self.saveContext() 45 | } 46 | 47 | // MARK: - Core Data stack 48 | 49 | lazy var persistentContainer: NSPersistentContainer = { 50 | /* 51 | The persistent container for the application. This implementation 52 | creates and returns a container, having loaded the store for the 53 | application to it. This property is optional since there are legitimate 54 | error conditions that could cause the creation of the store to fail. 55 | */ 56 | let container = NSPersistentContainer(name: "SwiftStorage") 57 | container.loadPersistentStores(completionHandler: { (storeDescription, error) in 58 | if let error = error as NSError? { 59 | // Replace this implementation with code to handle the error appropriately. 60 | // 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. 61 | 62 | /* 63 | Typical reasons for an error here include: 64 | * The parent directory does not exist, cannot be created, or disallows writing. 65 | * The persistent store is not accessible, due to permissions or data protection when the device is locked. 66 | * The device is out of space. 67 | * The store could not be migrated to the current model version. 68 | Check the error message to determine what the actual problem was. 69 | */ 70 | fatalError("Unresolved error \(error), \(error.userInfo)") 71 | } 72 | }) 73 | return container 74 | }() 75 | 76 | // MARK: - Core Data Saving support 77 | 78 | func saveContext () { 79 | let context = persistentContainer.viewContext 80 | if context.hasChanges { 81 | do { 82 | try context.save() 83 | } catch { 84 | // Replace this implementation with code to handle the error appropriately. 85 | // 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. 86 | let nserror = error as NSError 87 | fatalError("Unresolved error \(nserror), \(nserror.userInfo)") 88 | } 89 | } 90 | } 91 | 92 | } 93 | 94 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/controller/CoreTableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CoreTableViewController.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 28/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CoreTableViewController: UITableViewController { 12 | 13 | var listNotes : [Notes]? = nil 14 | @IBOutlet var noteTableView: UITableView! 15 | @IBOutlet var emptyView: UIView! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | // Uncomment the following line to preserve selection between presentations 21 | // self.clearsSelectionOnViewWillAppear = false 22 | 23 | // Uncomment the following line to display an Edit button in the navigation bar for this view controller. 24 | // self.navigationItem.rightBarButtonItem = self.editButtonItem 25 | 26 | // self.listNotes = CoreDataHandler().getNotesList() 27 | } 28 | 29 | @IBAction func buttonCreateNote(_ sender: Any) { 30 | performSegue(withIdentifier: "create", sender: "") 31 | } 32 | 33 | override func didReceiveMemoryWarning() { 34 | super.didReceiveMemoryWarning() 35 | // Dispose of any resources that can be recreated. 36 | } 37 | 38 | // MARK: - Table view data source 39 | 40 | override func numberOfSections(in tableView: UITableView) -> Int { 41 | // #warning Incomplete implementation, return the number of sections 42 | return 1 43 | } 44 | 45 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 46 | // #warning Incomplete implementation, return the number of rows 47 | var numOfSections: Int = (self.listNotes?.count)! 48 | if numOfSections > 0{ 49 | tableView.separatorStyle = .singleLine 50 | numOfSections = 1 51 | tableView.backgroundView = nil 52 | }else{ 53 | tableView.backgroundView = emptyView 54 | tableView.separatorStyle = .none 55 | } 56 | return numOfSections 57 | } 58 | 59 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 60 | let cell = tableView.dequeueReusableCell(withIdentifier: "notes_cell", for: indexPath) as! NotesTableViewCell 61 | 62 | // Configure the cell... 63 | let image = self.listNotes?[indexPath.row].image 64 | 65 | // var imageData: Data? = nil 66 | // do { 67 | // let u = URL(fileURLWithPath:image!) 68 | // imageData = try Data(contentsOf: u) 69 | // }catch { 70 | // print("catastrophe loading file?? \(error)") 71 | // } 72 | // 73 | // if imageData != nil { 74 | // cell.imageNotes?.image = UIImage(data: imageData!) 75 | // print("that seemed to work") 76 | // } 77 | 78 | let imagePath = getDocumentsDirectory().appendingPathComponent(image!) 79 | 80 | cell.imageNotes?.image = UIImage(contentsOfFile: imagePath.path) 81 | 82 | cell.contentNotes?.text = self.listNotes?[indexPath.row].content 83 | cell.locationNotes?.text = self.listNotes?[indexPath.row].location 84 | 85 | print(listNotes?[indexPath.row] as Any) 86 | 87 | return cell 88 | } 89 | 90 | func getDocumentsDirectory() -> URL { 91 | let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) 92 | let documentDir = paths.first! 93 | return documentDir 94 | } 95 | 96 | override func viewWillAppear(_ animated: Bool) { 97 | self.listNotes = CoreDataHandler().getNotesList() 98 | noteTableView.reloadData() 99 | } 100 | 101 | /* 102 | // Override to support conditional editing of the table view. 103 | override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { 104 | // Return false if you do not want the specified item to be editable. 105 | return true 106 | } 107 | */ 108 | 109 | /* 110 | // Override to support editing the table view. 111 | override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) { 112 | if editingStyle == .delete { 113 | // Delete the row from the data source 114 | tableView.deleteRows(at: [indexPath], with: .fade) 115 | } else if editingStyle == .insert { 116 | // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view 117 | } 118 | } 119 | */ 120 | 121 | /* 122 | // Override to support rearranging the table view. 123 | override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) { 124 | 125 | } 126 | */ 127 | 128 | /* 129 | // Override to support conditional rearranging of the table view. 130 | override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool { 131 | // Return false if you do not want the item to be re-orderable. 132 | return true 133 | } 134 | */ 135 | 136 | /* 137 | // MARK: - Navigation 138 | 139 | // In a storyboard-based application, you will often want to do a little preparation before navigation 140 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 141 | // Get the new view controller using segue.destinationViewController. 142 | // Pass the selected object to the new view controller. 143 | } 144 | */ 145 | 146 | } 147 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/controller/LocationViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LocationViewController.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 29/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreLocation 11 | import MapKit 12 | 13 | class LocationViewController: BaseViewController, CLLocationManagerDelegate , MKMapViewDelegate, UISearchBarDelegate{ 14 | 15 | let annotation = MKPointAnnotation() 16 | let locationManager = CLLocationManager() 17 | @IBOutlet var mapView: MKMapView! 18 | @IBOutlet var searchView: UISearchBar! 19 | var controller : NotesViewController? = nil 20 | var coordinates : CLLocationCoordinate2D? = nil; 21 | 22 | override func viewDidLoad() { 23 | super.viewDidLoad() 24 | 25 | locationManager.delegate = self 26 | locationManager.desiredAccuracy = kCLLocationAccuracyBest 27 | locationManager.requestAlwaysAuthorization() 28 | locationManager.startUpdatingLocation() 29 | 30 | mapView.delegate = self 31 | searchView.delegate = self 32 | 33 | // Do any additional setup after loading the view. 34 | } 35 | 36 | func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) { 37 | 38 | switch status { 39 | case .notDetermined: 40 | // If status has not yet been determied, ask for authorization 41 | locationManager.requestAlwaysAuthorization() 42 | break 43 | case .authorizedWhenInUse: 44 | // If authorized when in use 45 | print("Permission granted to use app when in use") 46 | locationManager.startUpdatingLocation() 47 | break 48 | case .authorizedAlways: 49 | // If always authorized 50 | print("Permission granted to use app when in use") 51 | locationManager.startUpdatingLocation() 52 | break 53 | case .restricted: 54 | // If restricted by e.g. parental controls. User can't enable Location Services 55 | break 56 | case .denied: 57 | // If user denied your app access to Location Services, but can grant access from Settings.app 58 | break 59 | } 60 | } 61 | 62 | func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { 63 | print(locations.debugDescription) 64 | if let locatn = locations.first{ 65 | print("Location : "+locatn.description+"") 66 | let region = MKCoordinateRegionMakeWithDistance(locatn.coordinate, 100, 100) 67 | mapView.setRegion(region, animated: true) 68 | } 69 | } 70 | 71 | func addAnnotation(location : CLLocation){ 72 | annotation.coordinate = location.coordinate 73 | annotation.title = "Mumbai" 74 | annotation.subtitle = "A City of Fame" 75 | mapView.addAnnotation(annotation) 76 | } 77 | 78 | func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) { 79 | print("error:: (error)") 80 | } 81 | 82 | func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? { 83 | let view = MKAnnotationView.init(annotation: self.annotation, reuseIdentifier: "pin") 84 | view.image = UIImage(named: "marker.png") 85 | let transform = CGAffineTransform.init(scaleX: 0.3, y: 0.3) 86 | view.transform = transform 87 | return view 88 | } 89 | 90 | func searchBarSearchButtonClicked(_ searchBar: UISearchBar) { 91 | print("Search Clicked") 92 | 93 | // Block User Interaction 94 | UIApplication.shared.beginIgnoringInteractionEvents() 95 | 96 | // Show Activity Indicator 97 | showProgressIndicator() 98 | 99 | // Dismiss Keyboard 100 | searchBar.resignFirstResponder() 101 | 102 | // Search Request 103 | let request = MKLocalSearchRequest() 104 | request.naturalLanguageQuery = searchBar.text 105 | 106 | let response = MKLocalSearch(request: request) 107 | response.start { (result, error) in 108 | if(result != nil){ 109 | 110 | UIApplication.shared.endIgnoringInteractionEvents() 111 | self.hideProgressIndicator() 112 | 113 | //Remove already rendered Annotations 114 | let annotation = self.mapView.annotations 115 | self.mapView.removeAnnotations(annotation) 116 | 117 | // Get lat & long from response 118 | let lattitude = result?.boundingRegion.center.latitude 119 | let longitude = result?.boundingRegion.center.longitude 120 | 121 | let newAnnotation = MKPointAnnotation(); 122 | newAnnotation.title = searchBar.text 123 | 124 | self.coordinates = CLLocationCoordinate2DMake(lattitude!, longitude!) 125 | newAnnotation.coordinate = self.coordinates! 126 | self.mapView.addAnnotation(newAnnotation) 127 | 128 | let region = MKCoordinateRegionMakeWithDistance(self.coordinates!, 10, 10) 129 | self.mapView.setRegion(region, animated: true) 130 | } 131 | } 132 | } 133 | 134 | @IBAction func saveButtonClick(_ sender: Any) { 135 | 136 | if searchView.text != "" && coordinates != nil { 137 | let helper = LocationHelper(location: self.searchView.text!, lat: (coordinates?.latitude)!, long: (coordinates?.longitude)!) 138 | self.controller?.setLocationParams(helper: helper) 139 | self.navigationController?.popViewController(animated: true) 140 | } 141 | } 142 | 143 | } 144 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/controller/NotesViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NotesViewController.swift 3 | // SwiftStorage 4 | // 5 | // Created by new on 28/05/18. 6 | // Copyright © 2018 yuvraj. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class NotesViewController: BaseViewController, UITextViewDelegate , UIImagePickerControllerDelegate, UINavigationControllerDelegate{ 12 | 13 | @IBOutlet var textNotes: UITextView! 14 | @IBOutlet var imgPhoto: UIImageView! 15 | @IBOutlet var imgPhotoPicker: UIButton! 16 | @IBOutlet var labelLocation: UILabel! 17 | @IBOutlet var labelContent: UITextView! 18 | 19 | var helper : LocationHelper? = nil 20 | var imageUrl = "" 21 | var handler = CoreDataHandler() 22 | 23 | var picker = UIImagePickerController() 24 | 25 | override func viewDidLoad() { 26 | super.viewDidLoad() 27 | 28 | let gesture = UITapGestureRecognizer(target: self, action: #selector(onImageTapped(gesture:))) 29 | imgPhoto.isUserInteractionEnabled = true 30 | imgPhoto.addGestureRecognizer(gesture) 31 | 32 | textNotes.sizeToFit() 33 | textNotes.delegate = self 34 | picker.delegate = self 35 | // Do any additional setup after loading the view. 36 | } 37 | 38 | @objc func onImageTapped(gesture : UITapGestureRecognizer){ 39 | // let tappedImage = gesture.view as! UIImageView 40 | openPicker() 41 | } 42 | 43 | @IBAction func addPicture(_ sender: Any) { 44 | openPicker() 45 | } 46 | 47 | @IBAction func locationHandler(_ sender: Any){ 48 | performSegue(withIdentifier: "location", sender: nil) 49 | } 50 | 51 | func textViewDidBeginEditing(_ textView: UITextView) { 52 | textNotes.text = "" 53 | } 54 | 55 | func textViewDidEndEditing(_ textView: UITextView) { 56 | if(textView.text == ""){ 57 | textNotes.text = "Start typing your notes here" 58 | } 59 | } 60 | 61 | func openPicker(){ 62 | let alert = UIAlertController(title: "Select", message: "", preferredStyle: UIAlertControllerStyle.actionSheet) 63 | 64 | alert.addAction(UIAlertAction(title: "Camera", style: 65 | UIAlertActionStyle.default, handler: { (view) in 66 | 67 | guard UIImagePickerController.isSourceTypeAvailable(.camera) else { 68 | print("This device doesn't have a camera.") 69 | return 70 | } 71 | 72 | self.picker.allowsEditing = false 73 | self.picker.cameraDevice = .rear 74 | self.picker.mediaTypes = UIImagePickerController.availableMediaTypes(for:.camera)! 75 | self.picker.sourceType = UIImagePickerControllerSourceType.camera 76 | 77 | self.present(self.picker, animated: true, completion: nil) 78 | })) 79 | 80 | alert.addAction(UIAlertAction(title: "Library", style: UIAlertActionStyle.default, handler: { (view) in 81 | 82 | guard UIImagePickerController.isSourceTypeAvailable(.photoLibrary) else { 83 | print("can't open photo library") 84 | return 85 | } 86 | 87 | self.picker.allowsEditing = false 88 | self.picker.sourceType = UIImagePickerControllerSourceType.photoLibrary 89 | 90 | self.present(self.picker, animated: true, completion: nil) 91 | })) 92 | 93 | alert.addAction(UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)) 94 | 95 | self.present(alert, animated: true, completion: nil) 96 | } 97 | 98 | /* 99 | let UIImagePickerControllerMediaType: String //Specifies the media type selected by the user. 100 | let UIImagePickerControllerOriginalImage: String //Specifies the original, uncropped image selected by the user. 101 | let UIImagePickerControllerEditedImage: String //Specifies an image edited by the user. 102 | let UIImagePickerControllerCropRect: String //Specifies the cropping rectangle that was applied to the original image. 103 | let UIImagePickerControllerMediaURL: String //Specifies the filesystem URL for the movie. 104 | let UIImagePickerControllerReferenceURL: String //The Assets Library URL for the original version of the picked item. 105 | let UIImagePickerControllerMediaMetadata: String //Metadata for a newly-captured photograph. 106 | let UIImagePickerControllerLivePhoto: String //The Live Photo representation of the selected or captured photo. 107 | */ 108 | 109 | func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { 110 | 111 | let tempImage = ""+UUID().uuidString+".png" 112 | let imagePath = getDocumentsDirectory().appendingPathComponent(tempImage) 113 | 114 | if let originalImage = info[UIImagePickerControllerOriginalImage] as? UIImage{ 115 | imgPhotoPicker.isHidden = true 116 | imgPhoto.image = originalImage 117 | 118 | if let imageData = UIImagePNGRepresentation(originalImage){ 119 | try? imageData.write(to: imagePath) 120 | self.imageUrl = tempImage 121 | } 122 | } 123 | 124 | // let imageUrl = info[UIImagePickerControllerImageURL] as? String 125 | // if imageUrl != nil { 126 | // print(imageUrl!) 127 | // } 128 | 129 | dismiss(animated: true, completion: nil) 130 | } 131 | 132 | func getDocumentsDirectory() -> URL { 133 | let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) 134 | let documentDir = paths.first! 135 | return documentDir 136 | } 137 | 138 | func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { 139 | dismiss(animated: true, completion: nil) 140 | } 141 | 142 | // In a storyboard-based application, you will often want to do a little preparation before navigation 143 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 144 | if(segue.identifier == "location"){ 145 | let controller = segue.destination as! LocationViewController 146 | controller.controller = self 147 | } 148 | } 149 | 150 | func setLocationParams(helper : LocationHelper){ 151 | self.helper = helper 152 | labelLocation.text = helper.location 153 | } 154 | 155 | func validateNotes() -> Bool{ 156 | if self.imageUrl != "" && self.helper != nil && labelContent.text != "" && 157 | labelContent.text != "Enter your note" { 158 | return true; 159 | }else{ 160 | return false 161 | } 162 | } 163 | 164 | @IBAction func saveNoteClick(_ sender: Any) { 165 | if validateNotes(){ 166 | let notesHelper = NotesHelper(photo: self.imageUrl, location: self.helper!, content: labelContent.text) 167 | handler.createNotes(helper: notesHelper) 168 | self.navigationController?.popViewController(animated: true) 169 | } 170 | } 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | } 179 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage.xcodeproj/xcuserdata/new.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 24 | 36 | 37 | 38 | 40 | 52 | 53 | 54 | 56 | 68 | 69 | 70 | 72 | 84 | 85 | 86 | 88 | 100 | 101 | 102 | 104 | 116 | 117 | 118 | 120 | 132 | 133 | 134 | 136 | 148 | 149 | 150 | 152 | 164 | 165 | 166 | 168 | 180 | 181 | 182 | 184 | 196 | 197 | 198 | 200 | 212 | 213 | 214 | 216 | 228 | 229 | 230 | 232 | 244 | 245 | 246 | 248 | 260 | 261 | 262 | 264 | 276 | 277 | 278 | 280 | 292 | 293 | 294 | 296 | 308 | 309 | 310 | 312 | 324 | 325 | 326 | 327 | 328 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D507016520BC2CBE0029FD84 /* CoreTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D507016420BC2CBE0029FD84 /* CoreTableViewController.swift */; }; 11 | D507016720BC342D0029FD84 /* NotesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D507016620BC342D0029FD84 /* NotesViewController.swift */; }; 12 | D507016920BD285F0029FD84 /* LocationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D507016820BD285F0029FD84 /* LocationViewController.swift */; }; 13 | D5418B4C20B9E9A0001D620C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5418B4B20B9E9A0001D620C /* AppDelegate.swift */; }; 14 | D5418B5120B9E9A0001D620C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D5418B4F20B9E9A0001D620C /* Main.storyboard */; }; 15 | D5418B5420B9E9A0001D620C /* SwiftStorage.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = D5418B5220B9E9A0001D620C /* SwiftStorage.xcdatamodeld */; }; 16 | D5418B5620B9E9A4001D620C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D5418B5520B9E9A4001D620C /* Assets.xcassets */; }; 17 | D5418B5920B9E9A4001D620C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D5418B5720B9E9A4001D620C /* LaunchScreen.storyboard */; }; 18 | D5418B6120B9F122001D620C /* CardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5418B6020B9F122001D620C /* CardView.swift */; }; 19 | D56E42EB20C32A28007540BD /* notes3.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42E320C32A26007540BD /* notes3.png */; }; 20 | D56E42EC20C32A28007540BD /* map2.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42E420C32A26007540BD /* map2.png */; }; 21 | D56E42ED20C32A28007540BD /* notes1.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42E520C32A26007540BD /* notes1.png */; }; 22 | D56E42EE20C32A28007540BD /* map1.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42E620C32A27007540BD /* map1.png */; }; 23 | D56E42EF20C32A28007540BD /* home2.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42E720C32A27007540BD /* home2.png */; }; 24 | D56E42F020C32A28007540BD /* notes2.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42E820C32A27007540BD /* notes2.png */; }; 25 | D56E42F120C32A28007540BD /* splash.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42E920C32A27007540BD /* splash.png */; }; 26 | D56E42F220C32A28007540BD /* home1.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42EA20C32A28007540BD /* home1.png */; }; 27 | D56E42F820C33068007540BD /* banner.png in Resources */ = {isa = PBXBuildFile; fileRef = D56E42F620C33067007540BD /* banner.png */; }; 28 | D5A119C120BD734300AB4CC2 /* BaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5A119C020BD734300AB4CC2 /* BaseViewController.swift */; }; 29 | D5A119C320BD7E6D00AB4CC2 /* LocationHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5A119C220BD7E6D00AB4CC2 /* LocationHelper.swift */; }; 30 | D5A119C620BD918900AB4CC2 /* CoreDataHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5A119C520BD918900AB4CC2 /* CoreDataHandler.swift */; }; 31 | D5A119C820BD92D600AB4CC2 /* NotesHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5A119C720BD92D600AB4CC2 /* NotesHelper.swift */; }; 32 | D5A119CC20BE8BD700AB4CC2 /* NotesTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5A119CA20BE8BD600AB4CC2 /* NotesTableViewCell.swift */; }; 33 | D5A119CD20BE8BD700AB4CC2 /* NotesTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = D5A119CB20BE8BD600AB4CC2 /* NotesTableViewCell.xib */; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXFileReference section */ 37 | D507016420BC2CBE0029FD84 /* CoreTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreTableViewController.swift; sourceTree = ""; }; 38 | D507016620BC342D0029FD84 /* NotesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotesViewController.swift; sourceTree = ""; }; 39 | D507016820BD285F0029FD84 /* LocationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationViewController.swift; sourceTree = ""; }; 40 | D5418B4820B9E9A0001D620C /* SwiftStorage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftStorage.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | D5418B4B20B9E9A0001D620C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 42 | D5418B5020B9E9A0001D620C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | D5418B5320B9E9A0001D620C /* SwiftStorage.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = SwiftStorage.xcdatamodel; sourceTree = ""; }; 44 | D5418B5520B9E9A4001D620C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 45 | D5418B5820B9E9A4001D620C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 46 | D5418B5A20B9E9A4001D620C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | D5418B6020B9F122001D620C /* CardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardView.swift; sourceTree = ""; }; 48 | D56E42E320C32A26007540BD /* notes3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = notes3.png; sourceTree = ""; }; 49 | D56E42E420C32A26007540BD /* map2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map2.png; sourceTree = ""; }; 50 | D56E42E520C32A26007540BD /* notes1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = notes1.png; sourceTree = ""; }; 51 | D56E42E620C32A27007540BD /* map1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map1.png; sourceTree = ""; }; 52 | D56E42E720C32A27007540BD /* home2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = home2.png; sourceTree = ""; }; 53 | D56E42E820C32A27007540BD /* notes2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = notes2.png; sourceTree = ""; }; 54 | D56E42E920C32A27007540BD /* splash.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splash.png; sourceTree = ""; }; 55 | D56E42EA20C32A28007540BD /* home1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = home1.png; sourceTree = ""; }; 56 | D56E42F620C33067007540BD /* banner.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = banner.png; sourceTree = ""; }; 57 | D5A119C020BD734300AB4CC2 /* BaseViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BaseViewController.swift; sourceTree = ""; }; 58 | D5A119C220BD7E6D00AB4CC2 /* LocationHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationHelper.swift; sourceTree = ""; }; 59 | D5A119C520BD918900AB4CC2 /* CoreDataHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreDataHandler.swift; sourceTree = ""; }; 60 | D5A119C720BD92D600AB4CC2 /* NotesHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotesHelper.swift; sourceTree = ""; }; 61 | D5A119CA20BE8BD600AB4CC2 /* NotesTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotesTableViewCell.swift; sourceTree = ""; }; 62 | D5A119CB20BE8BD600AB4CC2 /* NotesTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = NotesTableViewCell.xib; sourceTree = ""; }; 63 | /* End PBXFileReference section */ 64 | 65 | /* Begin PBXFrameworksBuildPhase section */ 66 | D5418B4520B9E9A0001D620C /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXFrameworksBuildPhase section */ 74 | 75 | /* Begin PBXGroup section */ 76 | D5418B3F20B9E9A0001D620C = { 77 | isa = PBXGroup; 78 | children = ( 79 | D5418B4A20B9E9A0001D620C /* SwiftStorage */, 80 | D5418B4920B9E9A0001D620C /* Products */, 81 | D5A119BD20BD6D0200AB4CC2 /* Frameworks */, 82 | ); 83 | sourceTree = ""; 84 | }; 85 | D5418B4920B9E9A0001D620C /* Products */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | D5418B4820B9E9A0001D620C /* SwiftStorage.app */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | D5418B4A20B9E9A0001D620C /* SwiftStorage */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | D56E42F420C32A70007540BD /* storyboard */, 97 | D56E42F320C32A50007540BD /* controller */, 98 | D56E42E220C329AD007540BD /* screenshot */, 99 | D5A119C920BD936800AB4CC2 /* helper */, 100 | D5A119C420BD917200AB4CC2 /* coredata */, 101 | D5418B4B20B9E9A0001D620C /* AppDelegate.swift */, 102 | D5418B5520B9E9A4001D620C /* Assets.xcassets */, 103 | D5418B5A20B9E9A4001D620C /* Info.plist */, 104 | D5418B6020B9F122001D620C /* CardView.swift */, 105 | ); 106 | path = SwiftStorage; 107 | sourceTree = ""; 108 | }; 109 | D56E42E220C329AD007540BD /* screenshot */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | D56E42F620C33067007540BD /* banner.png */, 113 | D56E42EA20C32A28007540BD /* home1.png */, 114 | D56E42E720C32A27007540BD /* home2.png */, 115 | D56E42E620C32A27007540BD /* map1.png */, 116 | D56E42E420C32A26007540BD /* map2.png */, 117 | D56E42E520C32A26007540BD /* notes1.png */, 118 | D56E42E820C32A27007540BD /* notes2.png */, 119 | D56E42E320C32A26007540BD /* notes3.png */, 120 | D56E42E920C32A27007540BD /* splash.png */, 121 | ); 122 | path = screenshot; 123 | sourceTree = ""; 124 | }; 125 | D56E42F320C32A50007540BD /* controller */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | D5A119C020BD734300AB4CC2 /* BaseViewController.swift */, 129 | D507016420BC2CBE0029FD84 /* CoreTableViewController.swift */, 130 | D507016620BC342D0029FD84 /* NotesViewController.swift */, 131 | D507016820BD285F0029FD84 /* LocationViewController.swift */, 132 | ); 133 | path = controller; 134 | sourceTree = ""; 135 | }; 136 | D56E42F420C32A70007540BD /* storyboard */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | D5418B4F20B9E9A0001D620C /* Main.storyboard */, 140 | D5418B5720B9E9A4001D620C /* LaunchScreen.storyboard */, 141 | ); 142 | path = storyboard; 143 | sourceTree = ""; 144 | }; 145 | D5A119BD20BD6D0200AB4CC2 /* Frameworks */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | ); 149 | name = Frameworks; 150 | sourceTree = ""; 151 | }; 152 | D5A119C420BD917200AB4CC2 /* coredata */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | D5418B5220B9E9A0001D620C /* SwiftStorage.xcdatamodeld */, 156 | D5A119C520BD918900AB4CC2 /* CoreDataHandler.swift */, 157 | ); 158 | path = coredata; 159 | sourceTree = ""; 160 | }; 161 | D5A119C920BD936800AB4CC2 /* helper */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | D5A119C220BD7E6D00AB4CC2 /* LocationHelper.swift */, 165 | D5A119C720BD92D600AB4CC2 /* NotesHelper.swift */, 166 | D5A119CA20BE8BD600AB4CC2 /* NotesTableViewCell.swift */, 167 | D5A119CB20BE8BD600AB4CC2 /* NotesTableViewCell.xib */, 168 | ); 169 | path = helper; 170 | sourceTree = ""; 171 | }; 172 | /* End PBXGroup section */ 173 | 174 | /* Begin PBXNativeTarget section */ 175 | D5418B4720B9E9A0001D620C /* SwiftStorage */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = D5418B5D20B9E9A4001D620C /* Build configuration list for PBXNativeTarget "SwiftStorage" */; 178 | buildPhases = ( 179 | D5418B4420B9E9A0001D620C /* Sources */, 180 | D5418B4520B9E9A0001D620C /* Frameworks */, 181 | D5418B4620B9E9A0001D620C /* Resources */, 182 | ); 183 | buildRules = ( 184 | ); 185 | dependencies = ( 186 | ); 187 | name = SwiftStorage; 188 | productName = SwiftStorage; 189 | productReference = D5418B4820B9E9A0001D620C /* SwiftStorage.app */; 190 | productType = "com.apple.product-type.application"; 191 | }; 192 | /* End PBXNativeTarget section */ 193 | 194 | /* Begin PBXProject section */ 195 | D5418B4020B9E9A0001D620C /* Project object */ = { 196 | isa = PBXProject; 197 | attributes = { 198 | LastSwiftUpdateCheck = 0930; 199 | LastUpgradeCheck = 0930; 200 | ORGANIZATIONNAME = yuvraj; 201 | TargetAttributes = { 202 | D5418B4720B9E9A0001D620C = { 203 | CreatedOnToolsVersion = 9.3.1; 204 | SystemCapabilities = { 205 | com.apple.Maps.iOS = { 206 | enabled = 0; 207 | }; 208 | }; 209 | }; 210 | }; 211 | }; 212 | buildConfigurationList = D5418B4320B9E9A0001D620C /* Build configuration list for PBXProject "SwiftStorage" */; 213 | compatibilityVersion = "Xcode 9.3"; 214 | developmentRegion = en; 215 | hasScannedForEncodings = 0; 216 | knownRegions = ( 217 | en, 218 | Base, 219 | ); 220 | mainGroup = D5418B3F20B9E9A0001D620C; 221 | productRefGroup = D5418B4920B9E9A0001D620C /* Products */; 222 | projectDirPath = ""; 223 | projectRoot = ""; 224 | targets = ( 225 | D5418B4720B9E9A0001D620C /* SwiftStorage */, 226 | ); 227 | }; 228 | /* End PBXProject section */ 229 | 230 | /* Begin PBXResourcesBuildPhase section */ 231 | D5418B4620B9E9A0001D620C /* Resources */ = { 232 | isa = PBXResourcesBuildPhase; 233 | buildActionMask = 2147483647; 234 | files = ( 235 | D5418B5920B9E9A4001D620C /* LaunchScreen.storyboard in Resources */, 236 | D56E42EF20C32A28007540BD /* home2.png in Resources */, 237 | D56E42EB20C32A28007540BD /* notes3.png in Resources */, 238 | D56E42EE20C32A28007540BD /* map1.png in Resources */, 239 | D5418B5620B9E9A4001D620C /* Assets.xcassets in Resources */, 240 | D5418B5120B9E9A0001D620C /* Main.storyboard in Resources */, 241 | D56E42F020C32A28007540BD /* notes2.png in Resources */, 242 | D5A119CD20BE8BD700AB4CC2 /* NotesTableViewCell.xib in Resources */, 243 | D56E42F120C32A28007540BD /* splash.png in Resources */, 244 | D56E42ED20C32A28007540BD /* notes1.png in Resources */, 245 | D56E42F820C33068007540BD /* banner.png in Resources */, 246 | D56E42F220C32A28007540BD /* home1.png in Resources */, 247 | D56E42EC20C32A28007540BD /* map2.png in Resources */, 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | }; 251 | /* End PBXResourcesBuildPhase section */ 252 | 253 | /* Begin PBXSourcesBuildPhase section */ 254 | D5418B4420B9E9A0001D620C /* Sources */ = { 255 | isa = PBXSourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | D507016920BD285F0029FD84 /* LocationViewController.swift in Sources */, 259 | D5A119C620BD918900AB4CC2 /* CoreDataHandler.swift in Sources */, 260 | D5A119C820BD92D600AB4CC2 /* NotesHelper.swift in Sources */, 261 | D507016520BC2CBE0029FD84 /* CoreTableViewController.swift in Sources */, 262 | D507016720BC342D0029FD84 /* NotesViewController.swift in Sources */, 263 | D5418B6120B9F122001D620C /* CardView.swift in Sources */, 264 | D5A119C120BD734300AB4CC2 /* BaseViewController.swift in Sources */, 265 | D5A119C320BD7E6D00AB4CC2 /* LocationHelper.swift in Sources */, 266 | D5418B5420B9E9A0001D620C /* SwiftStorage.xcdatamodeld in Sources */, 267 | D5418B4C20B9E9A0001D620C /* AppDelegate.swift in Sources */, 268 | D5A119CC20BE8BD700AB4CC2 /* NotesTableViewCell.swift in Sources */, 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | }; 272 | /* End PBXSourcesBuildPhase section */ 273 | 274 | /* Begin PBXVariantGroup section */ 275 | D5418B4F20B9E9A0001D620C /* Main.storyboard */ = { 276 | isa = PBXVariantGroup; 277 | children = ( 278 | D5418B5020B9E9A0001D620C /* Base */, 279 | ); 280 | name = Main.storyboard; 281 | sourceTree = ""; 282 | }; 283 | D5418B5720B9E9A4001D620C /* LaunchScreen.storyboard */ = { 284 | isa = PBXVariantGroup; 285 | children = ( 286 | D5418B5820B9E9A4001D620C /* Base */, 287 | ); 288 | name = LaunchScreen.storyboard; 289 | sourceTree = ""; 290 | }; 291 | /* End PBXVariantGroup section */ 292 | 293 | /* Begin XCBuildConfiguration section */ 294 | D5418B5B20B9E9A4001D620C /* Debug */ = { 295 | isa = XCBuildConfiguration; 296 | buildSettings = { 297 | ALWAYS_SEARCH_USER_PATHS = NO; 298 | CLANG_ANALYZER_NONNULL = YES; 299 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 300 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 301 | CLANG_CXX_LIBRARY = "libc++"; 302 | CLANG_ENABLE_MODULES = YES; 303 | CLANG_ENABLE_OBJC_ARC = YES; 304 | CLANG_ENABLE_OBJC_WEAK = YES; 305 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 306 | CLANG_WARN_BOOL_CONVERSION = YES; 307 | CLANG_WARN_COMMA = YES; 308 | CLANG_WARN_CONSTANT_CONVERSION = YES; 309 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 310 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 311 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 312 | CLANG_WARN_EMPTY_BODY = YES; 313 | CLANG_WARN_ENUM_CONVERSION = YES; 314 | CLANG_WARN_INFINITE_RECURSION = YES; 315 | CLANG_WARN_INT_CONVERSION = YES; 316 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 317 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 318 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 319 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 320 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 321 | CLANG_WARN_STRICT_PROTOTYPES = YES; 322 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 323 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 324 | CLANG_WARN_UNREACHABLE_CODE = YES; 325 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 326 | CODE_SIGN_IDENTITY = "iPhone Developer"; 327 | COPY_PHASE_STRIP = NO; 328 | DEBUG_INFORMATION_FORMAT = dwarf; 329 | ENABLE_STRICT_OBJC_MSGSEND = YES; 330 | ENABLE_TESTABILITY = YES; 331 | GCC_C_LANGUAGE_STANDARD = gnu11; 332 | GCC_DYNAMIC_NO_PIC = NO; 333 | GCC_NO_COMMON_BLOCKS = YES; 334 | GCC_OPTIMIZATION_LEVEL = 0; 335 | GCC_PREPROCESSOR_DEFINITIONS = ( 336 | "DEBUG=1", 337 | "$(inherited)", 338 | ); 339 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 340 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 341 | GCC_WARN_UNDECLARED_SELECTOR = YES; 342 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 343 | GCC_WARN_UNUSED_FUNCTION = YES; 344 | GCC_WARN_UNUSED_VARIABLE = YES; 345 | IPHONEOS_DEPLOYMENT_TARGET = 11.3; 346 | MTL_ENABLE_DEBUG_INFO = YES; 347 | ONLY_ACTIVE_ARCH = YES; 348 | SDKROOT = iphoneos; 349 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 350 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 351 | }; 352 | name = Debug; 353 | }; 354 | D5418B5C20B9E9A4001D620C /* Release */ = { 355 | isa = XCBuildConfiguration; 356 | buildSettings = { 357 | ALWAYS_SEARCH_USER_PATHS = NO; 358 | CLANG_ANALYZER_NONNULL = YES; 359 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 360 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 361 | CLANG_CXX_LIBRARY = "libc++"; 362 | CLANG_ENABLE_MODULES = YES; 363 | CLANG_ENABLE_OBJC_ARC = YES; 364 | CLANG_ENABLE_OBJC_WEAK = YES; 365 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 366 | CLANG_WARN_BOOL_CONVERSION = YES; 367 | CLANG_WARN_COMMA = YES; 368 | CLANG_WARN_CONSTANT_CONVERSION = YES; 369 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 370 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 371 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 384 | CLANG_WARN_UNREACHABLE_CODE = YES; 385 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 386 | CODE_SIGN_IDENTITY = "iPhone Developer"; 387 | COPY_PHASE_STRIP = NO; 388 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 389 | ENABLE_NS_ASSERTIONS = NO; 390 | ENABLE_STRICT_OBJC_MSGSEND = YES; 391 | GCC_C_LANGUAGE_STANDARD = gnu11; 392 | GCC_NO_COMMON_BLOCKS = YES; 393 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 394 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 395 | GCC_WARN_UNDECLARED_SELECTOR = YES; 396 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 397 | GCC_WARN_UNUSED_FUNCTION = YES; 398 | GCC_WARN_UNUSED_VARIABLE = YES; 399 | IPHONEOS_DEPLOYMENT_TARGET = 11.3; 400 | MTL_ENABLE_DEBUG_INFO = NO; 401 | SDKROOT = iphoneos; 402 | SWIFT_COMPILATION_MODE = wholemodule; 403 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | D5418B5E20B9E9A4001D620C /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | buildSettings = { 411 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 412 | CODE_SIGN_STYLE = Automatic; 413 | INFOPLIST_FILE = SwiftStorage/Info.plist; 414 | LD_RUNPATH_SEARCH_PATHS = ( 415 | "$(inherited)", 416 | "@executable_path/Frameworks", 417 | ); 418 | PRODUCT_BUNDLE_IDENTIFIER = com.yuvraj.SwiftStorage; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_VERSION = 4.0; 421 | TARGETED_DEVICE_FAMILY = "1,2"; 422 | }; 423 | name = Debug; 424 | }; 425 | D5418B5F20B9E9A4001D620C /* Release */ = { 426 | isa = XCBuildConfiguration; 427 | buildSettings = { 428 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 429 | CODE_SIGN_STYLE = Automatic; 430 | INFOPLIST_FILE = SwiftStorage/Info.plist; 431 | LD_RUNPATH_SEARCH_PATHS = ( 432 | "$(inherited)", 433 | "@executable_path/Frameworks", 434 | ); 435 | PRODUCT_BUNDLE_IDENTIFIER = com.yuvraj.SwiftStorage; 436 | PRODUCT_NAME = "$(TARGET_NAME)"; 437 | SWIFT_VERSION = 4.0; 438 | TARGETED_DEVICE_FAMILY = "1,2"; 439 | }; 440 | name = Release; 441 | }; 442 | /* End XCBuildConfiguration section */ 443 | 444 | /* Begin XCConfigurationList section */ 445 | D5418B4320B9E9A0001D620C /* Build configuration list for PBXProject "SwiftStorage" */ = { 446 | isa = XCConfigurationList; 447 | buildConfigurations = ( 448 | D5418B5B20B9E9A4001D620C /* Debug */, 449 | D5418B5C20B9E9A4001D620C /* Release */, 450 | ); 451 | defaultConfigurationIsVisible = 0; 452 | defaultConfigurationName = Release; 453 | }; 454 | D5418B5D20B9E9A4001D620C /* Build configuration list for PBXNativeTarget "SwiftStorage" */ = { 455 | isa = XCConfigurationList; 456 | buildConfigurations = ( 457 | D5418B5E20B9E9A4001D620C /* Debug */, 458 | D5418B5F20B9E9A4001D620C /* Release */, 459 | ); 460 | defaultConfigurationIsVisible = 0; 461 | defaultConfigurationName = Release; 462 | }; 463 | /* End XCConfigurationList section */ 464 | 465 | /* Begin XCVersionGroup section */ 466 | D5418B5220B9E9A0001D620C /* SwiftStorage.xcdatamodeld */ = { 467 | isa = XCVersionGroup; 468 | children = ( 469 | D5418B5320B9E9A0001D620C /* SwiftStorage.xcdatamodel */, 470 | ); 471 | currentVersion = D5418B5320B9E9A0001D620C /* SwiftStorage.xcdatamodel */; 472 | path = SwiftStorage.xcdatamodeld; 473 | sourceTree = ""; 474 | versionGroupType = wrapper.xcdatamodel; 475 | }; 476 | /* End XCVersionGroup section */ 477 | }; 478 | rootObject = D5418B4020B9E9A0001D620C /* Project object */; 479 | } 480 | -------------------------------------------------------------------------------- /SwiftStorage/SwiftStorage/storyboard/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 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 69 | 70 | 71 | 72 | 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 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | Title 320 | Title 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | --------------------------------------------------------------------------------