[
  {
    "path": ".github/FUNDING.yml",
    "content": "# These are supported funding model platforms\n\ngithub: devwaseem # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]\npatreon: # Replace with a single Patreon username\nopen_collective: # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\notechie: # Replace with a single Otechie username\ncustom: https://www.paypal.me/iamwaseem99 # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2020 The Code Monks\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "NYTimes/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"filename\" : \"40.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"20x20\"\n    },\n    {\n      \"filename\" : \"60.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"20x20\"\n    },\n    {\n      \"filename\" : \"29.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"1x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"filename\" : \"58.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"filename\" : \"87.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"filename\" : \"80.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"40x40\"\n    },\n    {\n      \"filename\" : \"120.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"40x40\"\n    },\n    {\n      \"filename\" : \"57.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"1x\",\n      \"size\" : \"57x57\"\n    },\n    {\n      \"filename\" : \"114.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"57x57\"\n    },\n    {\n      \"filename\" : \"120.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"60x60\"\n    },\n    {\n      \"filename\" : \"180.png\",\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"60x60\"\n    },\n    {\n      \"filename\" : \"20.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"1x\",\n      \"size\" : \"20x20\"\n    },\n    {\n      \"filename\" : \"40.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"2x\",\n      \"size\" : \"20x20\"\n    },\n    {\n      \"filename\" : \"29.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"1x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"filename\" : \"58.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"2x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"filename\" : \"40.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"1x\",\n      \"size\" : \"40x40\"\n    },\n    {\n      \"filename\" : \"80.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"2x\",\n      \"size\" : \"40x40\"\n    },\n    {\n      \"filename\" : \"50.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"1x\",\n      \"size\" : \"50x50\"\n    },\n    {\n      \"filename\" : \"100.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"2x\",\n      \"size\" : \"50x50\"\n    },\n    {\n      \"filename\" : \"72.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"1x\",\n      \"size\" : \"72x72\"\n    },\n    {\n      \"filename\" : \"144.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"2x\",\n      \"size\" : \"72x72\"\n    },\n    {\n      \"filename\" : \"76.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"1x\",\n      \"size\" : \"76x76\"\n    },\n    {\n      \"filename\" : \"152.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"2x\",\n      \"size\" : \"76x76\"\n    },\n    {\n      \"filename\" : \"167.png\",\n      \"idiom\" : \"ipad\",\n      \"scale\" : \"2x\",\n      \"size\" : \"83.5x83.5\"\n    },\n    {\n      \"filename\" : \"1024.png\",\n      \"idiom\" : \"ios-marketing\",\n      \"scale\" : \"1x\",\n      \"size\" : \"1024x1024\"\n    },\n    {\n      \"filename\" : \"16.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"16x16\"\n    },\n    {\n      \"filename\" : \"32.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"16x16\"\n    },\n    {\n      \"filename\" : \"32.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"32x32\"\n    },\n    {\n      \"filename\" : \"64.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"32x32\"\n    },\n    {\n      \"filename\" : \"128.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"128x128\"\n    },\n    {\n      \"filename\" : \"256.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"128x128\"\n    },\n    {\n      \"filename\" : \"256.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"256x256\"\n    },\n    {\n      \"filename\" : \"512.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"256x256\"\n    },\n    {\n      \"filename\" : \"512.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"512x512\"\n    },\n    {\n      \"filename\" : \"1024.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"512x512\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "NYTimes/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "NYTimes/Assets.xcassets/categoryBackground.colorset/Contents.json",
    "content": "{\n  \"colors\" : [\n    {\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0xFF\",\n          \"green\" : \"0xFF\",\n          \"red\" : \"0xFF\"\n        }\n      },\n      \"idiom\" : \"universal\"\n    },\n    {\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0x12\",\n          \"green\" : \"0x12\",\n          \"red\" : \"0x12\"\n        }\n      },\n      \"idiom\" : \"universal\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "NYTimes/Extensions/Reachability + Extensions.swift",
    "content": "//\n//  Reachability + Extensions.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 18/11/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\nimport Reachability\nimport Combine\n\n\nextension Reachability {\n    \n    var onReachabilityChanged: AnyPublisher<Reachability, Never> {\n        NotificationCenter.default\n            .publisher(for: .reachabilityChanged, object: self)\n            .compactMap {\n                $0.object as? Reachability\n            }\n            .eraseToAnyPublisher()\n    }\n    \n    \n    var status: AnyPublisher<Connection, Never> {\n        onReachabilityChanged\n            .map(\\.connection)\n            .eraseToAnyPublisher()\n    }\n    \n    var isReachable: AnyPublisher<Bool, Never> {\n        onReachabilityChanged\n            .map { $0.connection != .unavailable }\n            .eraseToAnyPublisher()\n    }\n    \n    var isConnected: AnyPublisher<Void, Never> {\n        isReachable\n            .filter { $0 }\n            .map { _ in }\n            .eraseToAnyPublisher()\n    }\n    \n    var isDisconnected: AnyPublisher<Void, Never> {\n        isReachable\n            .filter { !$0 }\n            .map { _ in }\n            .eraseToAnyPublisher()\n    }\n    \n}\n"
  },
  {
    "path": "NYTimes/Globals/Constants.swift",
    "content": "//\n//  Commons.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 31/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\n\nclass Constants {\n    \n    class Endpoints {\n        static let BASEURL = \"https://www.nytimes.com\"\n    }\n\n    struct UserDefaults {\n        static let categories = \"UD_CATEGORIES\"\n    }\n}\n\n\nclass PlaceHolderData {\n    \n    static let articles = [\n        Article(\n            url: \"https://www.nytimes.com/2020/07/28/science/nasa-jezero-perseverance.html\",\n            imageUrl: \"https://static01.nyt.com/images/2020/07/28/science/28SCI-MARS-JEZERO1/28SCI-MARS-JEZERO1-jumbo.jpg\",\n            title: \"How NASA Found the Ideal Hole on Mars to Land In\",\n            subtitle: \"Jezero crater, the destination of the Perseverance rover, is a promising place to look for evidence of extinct Martian life.\",\n            author: \"KENNETH CHANG\"\n        ),\n        Article(\n            url: \"https://www.nytimes.com/2020/07/28/science/virgin-galactic-cabin.html\",\n            imageUrl: \"https://static01.nyt.com/images/2020/07/28/science/28VIRGINGALACTIC2/28VIRGINGALACTIC2-videoLarge.jpg\",\n            title: \"Virgin Galactic Unveils Comfy Cabin for Jet-Setting to the Edge of Space\",\n            subtitle: \"Passengers able to pay hundreds of thousands of dollars for a seat can escape gravity for a few minutes.\",\n            author: \"KENNETH CHANG\"\n        ),\n        Article(\n            url: \"https://www.nytimes.com/2020/07/28/science/microbes-100-million-years-old.html\",\n            imageUrl: \"https://static01.nyt.com/images/2020/07/28/science/28ANCIENT-MICROBES2/28ANCIENT-MICROBES2-videoLarge.jpg\",\n            title: \"These Microbes May Have Survived 100 Million Years Beneath the Seafloor\",\n            subtitle: \"Rescued from their cold, cramped and nutrient-poor homes, the bacteria awoke in the lab and grew.\",\n            author: \"KATHERINE J. WU\"\n        )\n    ]\n}\n"
  },
  {
    "path": "NYTimes/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>$(DEVELOPMENT_LANGUAGE)</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UIApplicationSceneManifest</key>\n\t<dict>\n\t\t<key>UIApplicationSupportsMultipleScenes</key>\n\t\t<false/>\n\t\t<key>UISceneConfigurations</key>\n\t\t<dict>\n\t\t\t<key>UIWindowSceneSessionRoleApplication</key>\n\t\t\t<array>\n\t\t\t\t<dict>\n\t\t\t\t\t<key>UISceneConfigurationName</key>\n\t\t\t\t\t<string>Default Configuration</string>\n\t\t\t\t\t<key>UISceneDelegateClassName</key>\n\t\t\t\t\t<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>\n\t\t\t\t</dict>\n\t\t\t</array>\n\t\t</dict>\n\t</dict>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations~ipad</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationPortraitUpsideDown</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "NYTimes/Model/Article.swift",
    "content": "//\n//  Article.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 29/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\n\npublic class Article:NSObject,Codable,Identifiable {\n    \n    public var id: UUID\n    var url: String\n    var title: String\n    var subtitle: String\n    var author: String\n    var imageUrl:String\n    \n    \n    init(id: UUID = UUID(),url: String, imageUrl:String,title: String, subtitle: String, author: String) {\n        self.id = id\n        self.url = url\n        self.title = title\n        self.subtitle = subtitle\n        self.author = author\n        self.imageUrl = imageUrl\n    }\n    \n    init(from dataArticle:CDArticle){\n        self.id = dataArticle.id\n        self.url = dataArticle.url\n        self.title = dataArticle.title\n        self.subtitle = dataArticle.subtitle\n        self.author = dataArticle.author\n        self.imageUrl = dataArticle.imageUrl\n    }\n    \n   \n    static var placeholder = Article(url: \"Url\", imageUrl: \"imageUrl\", title: String(repeating: \"Title\", count: 5), subtitle: String(repeating: \"Subtitle\", count: 10), author: String(repeating: \"Author\", count: 3))\n    \n}\n\n"
  },
  {
    "path": "NYTimes/Model/Bookmark.swift",
    "content": "//\n//  Bookmark.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 29/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\n\n struct Bookmark {\n    var id: UUID\n    var article:Article\n    var index: Int16\n    \n     init(id: UUID = UUID(), article: Article, index: Int16) {\n        self.id = id\n        self.article = article\n        self.index = index\n    }\n}\n"
  },
  {
    "path": "NYTimes/Model/Category.swift",
    "content": "//\n//  Category.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 28/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\n\nenum Category: String, CaseIterable {\n    \n    case tech = \"Tech\"\n    case science = \"Science\"\n    case business = \"Business\"\n    case yourmoney = \"Your Money\"\n    case education = \"Education\"\n    case sports = \"Sports\"\n    case space = \"Space\"\n    \n    var url: String {\n        switch self {\n        case .science : return \"https://www.nytimes.com/section/science\"\n        case .tech: return \"https://www.nytimes.com/section/technology\"\n        case .business: return \"https://www.nytimes.com/section/business/smallbusiness\"\n        case .yourmoney: return \"https://www.nytimes.com/section/your-money\"\n        case .education: return \"https://www.nytimes.com/section/education?module=SiteIndex&pgtype=Section%20Front&region=Footer\"\n        case .sports: return \"https://www.nytimes.com/section/sports/soccer\"\n        case .space: return \"https://www.nytimes.com/section/science/space\"\n        }\n    }\n}\n"
  },
  {
    "path": "NYTimes/Model/Coredata model/CDArticle+CoreDataClass.swift",
    "content": "//\n//  CDArticle+CoreDataClass.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 01/08/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n//\n\nimport Foundation\nimport CoreData\n\n@objc(CDArticle)\npublic class CDArticle: NSManagedObject {\n\n}\n"
  },
  {
    "path": "NYTimes/Model/Coredata model/CDArticle+CoreDataProperties.swift",
    "content": "//\n//  CDArticle+CoreDataProperties.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 01/08/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n//\n\nimport Foundation\nimport CoreData\n\n\nextension CDArticle {\n\n    @nonobjc public class func fetchRequest() -> NSFetchRequest<CDArticle> {\n        return NSFetchRequest<CDArticle>(entityName: \"CDArticle\")\n    }\n\n    @NSManaged public var author: String\n    @NSManaged public var id: UUID\n    @NSManaged public var imageUrl: String\n    @NSManaged public var subtitle: String\n    @NSManaged public var title: String\n    @NSManaged public var url: String\n\n    \n    func set(from article: Article){\n        author = article.author\n        id = article.id\n        imageUrl = article.imageUrl\n        subtitle = article.subtitle\n        title = article.title\n        url = article.url\n    }\n    \n}\n"
  },
  {
    "path": "NYTimes/Persistence/NYTimes.xcdatamodeld/.xccurrentversion",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>_XCCurrentVersionName</key>\n\t<string>NYTimes.xcdatamodel</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "NYTimes/Persistence/NYTimes.xcdatamodeld/NYTimes.xcdatamodel/contents",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<model type=\"com.apple.IDECoreDataModeler.DataModel\" documentVersion=\"1.0\" lastSavedToolsVersion=\"17162\" systemVersion=\"19G46c\" minimumToolsVersion=\"Automatic\" sourceLanguage=\"Swift\" userDefinedModelVersionIdentifier=\"\">\n    <entity name=\"CDArticle\" representedClassName=\"CDArticle\" syncable=\"YES\">\n        <attribute name=\"author\" attributeType=\"String\"/>\n        <attribute name=\"id\" attributeType=\"UUID\" usesScalarValueType=\"NO\"/>\n        <attribute name=\"imageUrl\" attributeType=\"String\"/>\n        <attribute name=\"subtitle\" attributeType=\"String\"/>\n        <attribute name=\"title\" attributeType=\"String\"/>\n        <attribute name=\"url\" attributeType=\"String\"/>\n        <uniquenessConstraints>\n            <uniquenessConstraint>\n                <constraint value=\"url\"/>\n            </uniquenessConstraint>\n        </uniquenessConstraints>\n    </entity>\n    <elements>\n        <element name=\"CDArticle\" positionX=\"-63\" positionY=\"-18\" width=\"128\" height=\"133\"/>\n    </elements>\n</model>"
  },
  {
    "path": "NYTimes/Persistence/PersistenceManager.swift",
    "content": "//\n//  PersistanceManager.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 29/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport CoreData\n\n/// PersistenceManager is a Singleton which manages the\n/// coredata core operations like creating containers, context and handles saving of the data\nfinal class PersistenceManager {\n    \n    private init(){}\n    \n    static let shared = PersistenceManager()\n\n    lazy var persistentContainer: NSPersistentContainer = {\n        let container = NSPersistentContainer(name: \"NYTimes\")\n        container.loadPersistentStores(completionHandler: { (storeDescription, error) in\n            if let error = error as NSError? {\n                fatalError(\"Unresolved error \\(error), \\(error.userInfo)\")\n            }\n        })\n        return container\n    }()\n    \n    lazy var context = persistentContainer.viewContext\n\n    func saveContext () -> Bool {\n        let context = persistentContainer.viewContext\n        if context.hasChanges {\n            do {\n                try context.save()\n            } catch {\n                let nserror = error as NSError\n                debugPrint(nserror)\n                return false\n            }\n            return true\n        }\n        return false\n    }\n    \n    func fetch<T:NSManagedObject>(managedObject: T.Type) -> [T]? {\n        do {\n            guard let result = try PersistenceManager.shared.context.fetch(managedObject.fetchRequest()) as? [T] else {\n                return nil\n            }\n            \n            return result\n        }catch let error {\n            debugPrint(error)\n            return nil\n        }\n    }\n    \n}\n"
  },
  {
    "path": "NYTimes/Preview Content/Preview Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "NYTimes/Repository/BookmarkRepository.swift",
    "content": "//\n//  BookmarkRepository.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 31/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\nimport CoreData\n\n\nclass BookmarkRepository {\n\n    var context:NSManagedObjectContext!\n    \n    init(context:NSManagedObjectContext = PersistenceManager.shared.context){\n        self.context = context\n    }\n    \n    deinit {\n        context = nil\n    }\n    \n    func getAll() -> [CDArticle]? {\n        guard let context = self.context else {return nil}\n        let results:[CDArticle]? = try? context.fetch(CDArticle.fetchRequest())\n        return results\n    }\n    \n    func get(using URL:String)->CDArticle? {\n        guard let context = self.context else {return nil}\n        let fetchRequest:NSFetchRequest<CDArticle> = CDArticle.fetchRequest()\n        fetchRequest.predicate = NSPredicate(format: \"url == %@\", URL)\n        let results = try? context.fetch(fetchRequest)\n        return results?.first\n    }\n    \n    func isArticleExists(with URL:String) -> Bool {\n        guard let context = self.context else {return false}\n        do {\n            let fetchRequest:NSFetchRequest<CDArticle> = CDArticle.fetchRequest()\n            fetchRequest.predicate = NSPredicate(format: \"url == %@\", URL)\n            let results = try context.fetch(fetchRequest)\n            if results.first != nil {\n                return true\n            }\n        }catch let error {\n            debugPrint(error)\n        }\n        return false\n    }\n    \n    func insert(article:Article,completion:((Bool)->Void)? = nil) {\n        guard let context = self.context else {\n            completion?(false)\n            return\n        }\n        let cdArticle = CDArticle(context: context)\n        cdArticle.set(from: article)\n        insert(article: cdArticle) { (result) in\n            completion?(result)\n        }\n    }\n    \n    func insert(article: CDArticle, completion:((Bool)->Void)? = nil) {\n        guard let context = self.context else {\n            completion?(false)\n            return\n        }\n        \n        do {\n            if context.hasChanges {\n                try context.save()\n                completion?(true)\n                return\n            }\n        }catch let error {\n            debugPrint(error)\n        }\n        \n        completion?(false)\n    }\n\n    func update(article: CDArticle,completion:((Bool)->Void)? = nil) {\n        guard let context = self.context else {\n            completion?(false)\n            return\n        }\n        \n        do {\n            if context.hasChanges {\n                try context.save()\n                completion?(true)\n                return\n            }\n        }catch let error {\n            debugPrint(error)\n        }\n        \n        completion?(false)\n    }\n\n    func delete(article: Article,completion: ((Bool)->Void)? = nil) {\n        guard let context = self.context else {\n            completion?(false)\n            return\n        }\n        \n        do {\n            if let article = get(using: article.url) {\n                context.delete(article)\n                try context.save()\n                completion?(true)\n                return\n            }\n        }catch let error {\n            debugPrint(error)\n        }\n        \n        completion?(false)\n    }\n    \n    func delete(article: CDArticle,completion: ((Bool)->Void)? = nil) {\n        guard let context = self.context else {\n            completion?(false)\n            return\n        }\n        \n        do {\n            context.delete(article)\n            try context.save()\n            completion?(true)\n            return\n        }catch let error {\n            debugPrint(error)\n        }\n        \n        completion?(false)\n    }\n\n    func deleteAll() {\n        guard let context = self.context else {return}\n        do {\n            let deleteRequest = NSBatchDeleteRequest(fetchRequest: CDArticle.fetchRequest())\n            try context.execute(deleteRequest)\n            try context.save()\n        }catch let error {\n         debugPrint(error)\n        }\n    }\n\n}\n"
  },
  {
    "path": "NYTimes/Supporting files/AppDelegate.swift",
    "content": "//\n//  AppDelegate.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 28/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport UIKit\nimport CoreData\n\n@UIApplicationMain\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n\n\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {\n        // Override point for customization after application launch.\n        return true\n    }\n\n    // MARK: UISceneSession Lifecycle\n\n    func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {\n        // Called when a new scene session is being created.\n        // Use this method to select a configuration to create the new scene with.\n        return UISceneConfiguration(name: \"Default Configuration\", sessionRole: connectingSceneSession.role)\n    }\n\n    func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {\n        // Called when the user discards a scene session.\n        // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.\n        // Use this method to release any resources that were specific to the discarded scenes, as they will not return.\n    }    \n\n}\n\n"
  },
  {
    "path": "NYTimes/Supporting files/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"13122.16\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" useSafeAreas=\"YES\" colorMatched=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"13104.12\"/>\n        <capability name=\"Safe area layout guides\" minToolsVersion=\"9.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" xcode11CocoaTouchSystemColor=\"systemBackgroundColor\" cocoaTouchSystemColor=\"whiteColor\"/>\n                        <viewLayoutGuide key=\"safeArea\" id=\"6Tk-OE-BBY\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "NYTimes/Supporting files/SceneDelegate.swift",
    "content": "//\n//  SceneDelegate.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 28/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport UIKit\nimport SwiftUI\n\nclass SceneDelegate: UIResponder, UIWindowSceneDelegate {\n\n    var window: UIWindow?\n\n\n    func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {\n        // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.\n        // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.\n        // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).\n\n        // Get the managed object context from the shared persistent container.\n        let context = PersistenceManager.shared.context\n\n        // Create the SwiftUI view and set the context as the value for the managedObjectContext environment keyPath.\n        // Add `@Environment(\\.managedObjectContext)` in the views that will need the context.\n        let rootView = RootView().environment(\\.managedObjectContext, context)\n\n        // Use a UIHostingController as window root view controller.\n        if let windowScene = scene as? UIWindowScene {\n            let window = UIWindow(windowScene: windowScene)\n            window.rootViewController = UIHostingController(rootView: rootView)\n            self.window = window\n            window.makeKeyAndVisible()\n        }\n    }\n\n    func sceneDidDisconnect(_ scene: UIScene) {\n        // Called as the scene is being released by the system.\n        // This occurs shortly after the scene enters the background, or when its session is discarded.\n        // Release any resources associated with this scene that can be re-created the next time the scene connects.\n        // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).\n    }\n\n    func sceneDidBecomeActive(_ scene: UIScene) {\n        // Called when the scene has moved from an inactive state to an active state.\n        // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.\n    }\n\n    func sceneWillResignActive(_ scene: UIScene) {\n        // Called when the scene will move from an active state to an inactive state.\n        // This may occur due to temporary interruptions (ex. an incoming phone call).\n    }\n\n    func sceneWillEnterForeground(_ scene: UIScene) {\n        // Called as the scene transitions from the background to the foreground.\n        // Use this method to undo the changes made on entering the background.\n    }\n\n    func sceneDidEnterBackground(_ scene: UIScene) {\n        // Called as the scene transitions from the foreground to the background.\n        // Use this method to save data, release shared resources, and store enough scene-specific state information\n        // to restore the scene back to its current state.\n\n        // Save changes in the application's managed object context when the application transitions to the background.\n        let _ = PersistenceManager.shared.saveContext()\n    }\n\n\n}\n\n"
  },
  {
    "path": "NYTimes/Utilities/Common Utils.swift",
    "content": "//\n//  Utils.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 29/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\nimport UIKit\n\n// Phantom type placeholder for undefined methods\nfunc undefined<T>(_ message:String=\"\",file:String=#file,function:String=#function,line: Int=#line) -> T {\n    fatalError(\"[File: \\(file),Line: \\(line),Function: \\(function),]: Undefined: \\(message)\")\n}\n"
  },
  {
    "path": "NYTimes/Utilities/HTMLScarperUtility.swift",
    "content": "//\n//  HTMLScarpingUtility.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 04/08/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\nimport SwiftSoup\nimport Combine\n\nclass HTMLScraperUtility {\n    \n    func scrapArticle(from data:Data) -> Future<[Article], Never> {\n        Future { promise in\n            let html = String(data: data, encoding: .utf8)!\n            var articles = [Article]()\n            do {\n                let elements = try SwiftSoup.parse(html, Constants.Endpoints.BASEURL)\n                // last updated: 08-20-2023\n                let documents = try elements.getElementById(\"stream-panel\")?.select(\"div\").select(\"ol\").select(\"article\")\n                documents?.forEach({ (document) in\n                    let imageUrl = try? document.select(\"img\").attr(\"src\")\n                    let title = try? document.select(\"h3\").text()\n                    let subtitle = try? document.select(\"p\").text()\n                    let author = try? document.select(\"div\").select(\"p\").select(\"span\").text()\n                    let url = try? document.select(\"a\").attr(\"href\")\n                    \n                    if let title = title,\n                       let subtitle = subtitle,\n                       let author = author,\n                       let url = url,\n                       let imageUrl = imageUrl,\n                       !title.isEmpty,\n                       !subtitle.isEmpty,\n                       !author.isEmpty,\n                       !url.isEmpty,\n                       !imageUrl.isEmpty {\n                        \n                        let article = Article(url: \"https://www.nytimes.com\\(url)\", imageUrl: imageUrl, title: title, subtitle: subtitle, author: author)\n                        articles.append(article)\n                    } else {\n                        print(\"parsing error\")\n                    }\n                })\n                promise(.success(articles))\n            } catch let error {\n                debugPrint(error)\n                promise(.success([]))\n                return\n            }\n        }\n    }\n}\n\n"
  },
  {
    "path": "NYTimes/Utilities/NetworkReachabilty.swift",
    "content": "//\n//  NetworkReachabilty.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 18/11/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\nimport Combine\nimport Reachability\n\nclass NetworkReachabilty: ObservableObject {\n    \n    static let shared = NetworkReachabilty()\n    \n    private var cancellable: AnyCancellable?\n    private var reachability = try? Reachability()\n    \n    @Published var isNetworkConnected = true\n    \n    private init(){\n        guard let reachability = reachability else { return }\n        cancellable = reachability.isReachable.assign(to: \\.isNetworkConnected, on: self)\n        do {\n            try reachability.startNotifier()\n        }catch {\n            print(\"Could not start Reachability\")\n        }\n    }\n    \n    private func dispose(){\n        cancellable = nil\n        reachability = nil\n    }\n    \n    deinit {\n        dispose()\n    }\n}\n\n"
  },
  {
    "path": "NYTimes/ViewModel/ArticleViewModel.swift",
    "content": "//\n//  NewsFeedViewModel.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 29/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\nimport Combine\n\nclass ArticleViewModel: ObservableObject {\n    \n    var htmlScrapUtlity = HTMLScraperUtility()\n    \n    @Published var articles = [Article]()\n    @Published var isArticlesLoading = false\n    \n    var cancellableTask: AnyCancellable? = nil\n    \n    func loadArticles(for category: Category) {\n        guard let url = URL(string: category.url) else { return }\n        self.isArticlesLoading = true\n        self.cancellableTask?.cancel() //cancel last subscription to prevent race condition\n        self.cancellableTask = URLSession.shared.dataTaskPublisher(for: url)\n            .map(\\.data) //extract Data() from tuple\n            .flatMap(htmlScrapUtlity.scrapArticle(from:)) //send data to scrap function that will return article objects (array)\n            .sink { (completion) in\n                self.isArticlesLoading = false //once we got articles, close the loader\n            } receiveValue: { [unowned self] (articles) in\n                self.articles = articles\n            }\n    }\n    \n    deinit {\n        cancellableTask = nil\n    }\n}\n"
  },
  {
    "path": "NYTimes/ViewModel/BookmarkViewModel.swift",
    "content": "//\n//  BookmarkViewModel.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 31/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\nimport Combine\n\nclass BookmarkViewModel:ObservableObject {\n    \n    var repository:BookmarkRepository!\n    \n    @Published var message = String()\n    @Published var shouldShowAlert = false\n    \n    init(repository:BookmarkRepository) {\n        self.repository = repository\n    }\n    \n    init(){\n        \n    }\n    \n    func isArticleExists(with URL:String) -> Bool{\n        return repository.isArticleExists(with: URL)\n    }\n    \n    \n    func bookmark(for article:Article){\n        if isArticleExists(with: article.url) {\n            handleExisitingArticle()\n            return\n        }\n        \n        repository.insert(article: article) { [weak self] (success) in\n            guard let self = self else { return }\n            self.showAlertForAddedBookmark(success: success)\n        }\n    }\n    \n    func bookmark(for article:CDArticle){\n        \n        if isArticleExists(with: article.url) {\n            handleExisitingArticle()\n            return\n        }\n        \n        repository.insert(article: article) { [weak self] (success) in\n            guard let self = self else { return }\n            self.showAlertForAddedBookmark(success: success)\n        }\n    }\n    \n    func deleteBookmark(article:Article, showAlert: Bool = false){\n        repository.delete(article: article) { [weak self] (success) in\n            guard let self = self else { return }\n            if showAlert {\n                self.showAlertForDeletedBookmark(success: success)\n            }\n        }\n    }\n    \n    func deleteBookmark(article:CDArticle, showAlert: Bool = false){\n        repository.delete(article: article) { [weak self] (success) in\n            guard let self = self else { return }\n            if showAlert {\n                self.showAlertForDeletedBookmark(success: success)\n            }\n        }\n    }\n        \n    private func handleExisitingArticle() {\n        self.shouldShowAlert = true\n        self.message = \"Bookmark exists already!\"\n    }\n    \n    private func showAlertForAddedBookmark(success:Bool){\n        self.shouldShowAlert = true\n        self.message = success ? \"Added to Bookmarks\" : \"Error Bookmarking this article\"\n    }\n    \n    private func showAlertForDeletedBookmark(success:Bool){\n        self.shouldShowAlert = true\n        self.message = success ? \"Removed from bookmarks\" : \"Error deleting this article from bookmarks\"\n    }\n}\n"
  },
  {
    "path": "NYTimes/Views/BookmarksView.swift",
    "content": "//\n//  BookmarksView.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 28/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport SwiftUI\nimport CoreData\n\nstruct BookmarksView: View {\n    \n    @Environment(\\.managedObjectContext) var managedObjectContext\n    \n    @FetchRequest(entity: CDArticle.entity(), sortDescriptors: [], predicate: nil, animation: Animation.linear)\n    var savedArticles:FetchedResults<CDArticle>\n    \n    @ObservedObject var bookmarkViewModel = BookmarkViewModel()\n    \n    @ViewBuilder\n    var body: some View {\n            List{\n                ForEach(savedArticles,id:\\.id) { savedArticle in\n                    NavigationLink(destination: WebViewHolder(url: URL(string: savedArticle.url)!, article: Article(from: savedArticle))){\n                        NewsFeedView(article: Article(from: savedArticle ))\n                    }\n                }\n                .onDelete(perform: deleteBookmark(at:))\n            }\n            .listStyle(InsetGroupedListStyle())\n            .navigationBarItems(trailing: EditButton())\n            .navigationBarTitle(\"Bookmarks\", displayMode: .automatic)\n            .onAppear {\n                self.bookmarkViewModel.repository = BookmarkRepository(context: self.managedObjectContext)\n            }\n    }\n        \n    func deleteBookmark(at offsets:IndexSet){\n        for index in offsets {\n            bookmarkViewModel.deleteBookmark(article: savedArticles[index])\n        }\n    }\n}\n\nstruct BookmarksView_Previews: PreviewProvider {\n    static var previews: some View {\n        BookmarksView()\n    }\n}\n"
  },
  {
    "path": "NYTimes/Views/Categories/CategoriesView.swift",
    "content": "//\n//  CategoriesView.swift\n//  NYTimes\n//\n//  Created by Sameer Nawaz on 09/10/21.\n//  Copyright © 2021 Waseem Akram. All rights reserved.\n//\n\nimport SwiftUI\n\nstruct CategoriesView: View {\n\n    @EnvironmentObject var viewModel: CategoriesViewModel\n\n    var body: some View {\n        List {\n            Section {\n                ForEach(viewModel.categories, id: \\.rawValue) { category in\n                    Text(category.rawValue)\n                }.onMove(perform: viewModel.move)\n                    .onDelete(perform: viewModel.delete)\n            } header: {\n                Text(\"My Categories\")\n            }\n            \n            Section {\n                ForEach(viewModel.categoriesUnfollowed, id: \\.self) { category in\n                    HStack {\n                        Text(category.rawValue)\n                        Spacer()\n                        Button {\n                            viewModel.addCategory(category)\n                        } label: {\n                            Image(systemName: \"plus.circle\")\n                        }\n\n                    }\n                }\n            } header: {\n                Text(\"Categories\")\n            }\n\n        }\n        .toolbar { EditButton() }\n        .navigationBarTitle(\"Categories\", displayMode: .automatic)\n    }\n}\n"
  },
  {
    "path": "NYTimes/Views/Categories/CategoriesViewModel.swift",
    "content": "//\n//  CategoriesViewModel.swift\n//  NYTimes\n//\n//  Created by Sameer Nawaz on 09/10/21.\n//  Copyright © 2021 Waseem Akram. All rights reserved.\n//\n\nimport Foundation\n\nclass CategoriesViewModel: ObservableObject {\n\n    @Published private(set) var categories: [Category] = Category.allCases {\n        didSet {\n            saveCategories()\n        }\n    }\n    \n    @Published var selectedCategory: Category = Category.tech\n    \n    @Published var categoriesUnfollowed: [Category] = []\n\n    init() {\n        if let categories = UserDefaults.standard\n            .array(forKey: Constants.UserDefaults.categories) as? [String] {\n            self.categories = categories.map({ Category(rawValue: $0)! })\n            updateUnfollowedCategories()\n            selectedCategory = self.categories[0]\n        }\n    }\n    \n    func updateUnfollowedCategories() {\n        for category in Category.allCases {\n            if !categories.contains(where: {$0.rawValue == category.rawValue}) {\n                categoriesUnfollowed.append(category)\n            }\n        }\n    }\n    \n    func addCategory(_ category: Category) {\n        categoriesUnfollowed = categoriesUnfollowed.filter {$0.rawValue != category.rawValue}\n        categories.append(category)\n    }\n    \n    func delete(at offsets: IndexSet) {\n        guard let index = offsets.first else { return }\n        categoriesUnfollowed.append(categories[index])\n        categories.remove(atOffsets: offsets)\n    }\n\n    func move(from source: IndexSet, to destination: Int) {\n        categories.move(fromOffsets: source, toOffset: destination)\n    }\n\n    private func saveCategories() {\n        let categories = categories.map({ $0.rawValue })\n        UserDefaults.standard.set(categories, forKey: Constants.UserDefaults.categories)\n    }\n}\n"
  },
  {
    "path": "NYTimes/Views/CategorySelector.swift",
    "content": "//\n//  CategorySelector.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 28/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport SwiftUI\n\nstruct CategorySelector: View {\n    \n    @EnvironmentObject var categoriesViewModel: CategoriesViewModel\n    @EnvironmentObject var articleViewModel: ArticleViewModel\n\n    \n    var body: some View {\n            ScrollView(.horizontal, showsIndicators: false) {\n                HStack {\n                    ForEach(categoriesViewModel.categories, id: \\.rawValue) { category in\n                        VStack{\n                            Spacer()\n                            HStack {\n                                Text(category.rawValue)\n                                    .foregroundColor(categoriesViewModel.selectedCategory == category ? .white : .init(UIColor.label))\n                                    .fontWeight(.medium)\n                            }\n                            .padding(.leading,16)\n                            .padding(.trailing,16)\n                            Spacer()\n                        }\n                        .background(categoriesViewModel.selectedCategory == category ? Color.purple : Color(\"categoryBackground\"))\n                            .cornerRadius(10)\n                            .onTapGesture {\n                                categoriesViewModel.selectedCategory = category\n                                articleViewModel.loadArticles(for: category)\n                        }\n                    }.padding(.leading,8)\n                }\n            }\n            .padding(.vertical,24)\n            .background(Color.init(.secondarySystemBackground))\n            .clipped()\n            .shadow(radius: 15)\n    }\n        \n}\n\n\n\nstruct CategorySelector_Previews: PreviewProvider {\n    static var previews: some View {\n        CategorySelector()\n            .environmentObject(ArticleViewModel())\n            .environmentObject(CategoriesViewModel())\n            .previewDevice(.init(\"iPhone X\"))\n            \n    }\n}\n\n\n"
  },
  {
    "path": "NYTimes/Views/NewsFeedView.swift",
    "content": "//\n//  NewsFeedView.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 28/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport SwiftUI\nimport KingfisherSwiftUI\n\nstruct NewsFeedView: View {\n    \n    var article:Article\n    \n    var body: some View {\n        HStack {\n            KFImage(URL(string: article.imageUrl)!)\n                .placeholder({\n                    ProgressView()\n                })\n                .resizable()\n                .scaledToFill()\n                .frame(width: 100, height: 120)\n                .clipped()\n                .cornerRadius(12)\n            \n            \n            VStack(alignment: .leading, spacing: 8) {\n                Text(article.title)\n                    \n                    .font(.headline)\n                    .lineLimit(2)\n                \n                Text(article.subtitle)\n                    .font(.subheadline)\n                    .opacity(0.7)\n                    .lineLimit(2)\n                \n                Text(article.author)\n                    .font(.system(size: 13, weight: .medium, design: .rounded))\n                    .multilineTextAlignment(.leading)\n            }.padding(.horizontal, 12)\n        }\n        .padding(12)\n    }\n}\n\nstruct NewsFeedView_Previews: PreviewProvider {\n    static var previews: some View {\n        NewsFeedView(article: Article(\n            url: \"https://static01.nyt.com/images/2020/07/28/science/28SCI-MARS-JEZERO1/28SCI-MARS-JEZERO1-jumbo.jpg\",\n            imageUrl: \"https://static01.nyt.com/images/2020/07/28/science/28SCI-MARS-JEZERO1/28SCI-MARS-JEZERO1-jumbo.jpg\",\n            title: \"How NASA Found the Ideal Hole on Mars to Land In\",\n            subtitle: \"Jezero crater, the destination of the Perseverance rover, is a promising place to look for evidence of extinct Martian life.\",\n            author: \"KENNETH CHANG\"\n        ))\n        //            .previewDevice(.init(stringLiteral: \"iPhone X\"))\n        //            .edgesIgnoringSafeArea(.all)\n        //            .environment(\\.colorScheme, .dark)\n    }\n}\n"
  },
  {
    "path": "NYTimes/Views/RootView.swift",
    "content": "//\n//  ContentView.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 28/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport SwiftUI\nimport CoreData\n\nstruct RootView: View {\n    \n    @Environment(\\.managedObjectContext) var managedObjectContext\n    \n    @ObservedObject var articlesViewModel = ArticleViewModel()\n    @ObservedObject var bookmarkViewModel = BookmarkViewModel()\n    @ObservedObject var networkReachability = NetworkReachabilty.shared\n    @ObservedObject var categoriesViewModel = CategoriesViewModel()\n\n    @State var shouldShowBookmarks = false\n    @State var openCategories = false\n    @State var isLoaded = false\n\n    init() {\n        articlesViewModel.loadArticles(for: categoriesViewModel.selectedCategory)\n    }\n    \n    var body: some View {\n        NavigationView {\n            if networkReachability.isNetworkConnected {\n                ArticleView()\n                    .edgesIgnoringSafeArea(.bottom)\n                    .navigationViewStyle(StackNavigationViewStyle())\n                    .navigationBarTitle(Text(\"NYTimes\"))\n                    .navigationBarItems(\n                        leading: categoriesView,\n                        trailing: bookmarksView\n                    )\n            } else {\n                VStack {\n                    Image(systemName: \"wifi.slash\")\n                        .font(.system(size: 50))\n                        .frame(width: 50, height: 50, alignment: .center)\n                        .padding(.bottom, 24)\n                    Text(\"Network not available\")\n                        .alert(isPresented: .constant(true)) {\n                            Alert(title: Text(\"Network not available\"), message: Text(\"Turn on mobile data or use Wi-Fi to access data\"), dismissButton: .default(Text(\"OK\")))\n                        }.navigationBarTitle(Text(\"NYTimes\"))\n                }\n            }\n        }.onAppear {\n            let repo = BookmarkRepository(context: managedObjectContext)\n            bookmarkViewModel.repository = repo\n            DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(650)) {\n                isLoaded = true\n            }\n            articlesViewModel.loadArticles(for: categoriesViewModel.selectedCategory)\n        }\n    }\n\n    private var categoriesView: some View {\n        Button(action: { openCategories = true }, label: {\n            Image(systemName: \"square.stack.3d.up\")\n                .frame(width: 30, height: 50, alignment: .center)\n        })\n    }\n\n    private var bookmarksView: some View {\n        Button(action: { shouldShowBookmarks = true }, label: {\n            Image(systemName: \"folder\")\n                .frame(width: 30, height: 50, alignment: .center)\n        })\n    }\n    \n    fileprivate func ArticleView() -> some View {\n        return VStack {\n            NavigationLink(destination: BookmarksView(), isActive: $shouldShowBookmarks) {}\n            NavigationLink(destination: CategoriesView().environmentObject(categoriesViewModel), isActive: $openCategories) {}\n            if articlesViewModel.isArticlesLoading {\n                VStack{\n                    Spacer()\n                    ForEach(0..<3) { i in\n                        NewsFeedView(article: .placeholder)\n                    }.redacted(reason: .placeholder)\n                    Spacer()\n                }\n            } else {\n                ArticleListView(articlesViewModel: articlesViewModel, bookmarkViewModel: bookmarkViewModel)\n            }\n            Spacer()\n            CategorySelector()\n                .environmentObject(articlesViewModel)\n                .environmentObject(categoriesViewModel)\n                .frame(height: 100).offset(y: isLoaded ? 0 : 100)\n                .animation(isLoaded ? .spring() : .none)\n        }\n    }\n}\n\n\nstruct ArticleListView: View {\n    \n    @ObservedObject var articlesViewModel: ArticleViewModel\n    @ObservedObject var bookmarkViewModel: BookmarkViewModel\n    \n    var body: some View {\n        List(articlesViewModel.articles, id: \\.id){ article in\n            NavigationLink(destination: WebViewHolder(url: URL(string: article.url)!, article: article)){\n                NewsFeedView(article: article)\n                    .contextMenu(menuItems: {\n                        Button(action: {\n                            bookmarkViewModel.bookmark(for: article)\n                        }) {\n                            Text(\"Bookmark\")\n                            Image(uiImage:UIImage(systemName:\"bookmark\")!)\n                        }\n                        .alert(isPresented: $bookmarkViewModel.shouldShowAlert) {\n                            return Alert(\n                                title: Text(bookmarkViewModel.message),\n                                dismissButton: .default(Text(\"OK\"))\n                            )\n                        }\n                    })\n            }\n        }\n        .listStyle(InsetGroupedListStyle())\n        .padding(.bottom, -8)\n    }\n}\n\n\nstruct RootView_Previews: PreviewProvider {\n    static var previews: some View {\n        Group {\n            RootView()\n                .previewDevice(.init(stringLiteral: \"iPhone 11\"))\n        }\n    }\n}\n"
  },
  {
    "path": "NYTimes/Views/WebView.swift",
    "content": "//\n//  WebView.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 29/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\n\nimport UIKit\nimport SwiftUI\nimport WebKit\n\nstruct WebView: UIViewControllerRepresentable {\n    let url: URL\n\n    func makeUIViewController(context: Context) -> WebviewController {\n        return WebviewController()\n    }\n\n    func updateUIViewController(_ webviewController: WebviewController, context: Context) {\n        var request = URLRequest(url: self.url, cachePolicy: .returnCacheDataElseLoad)\n        request.httpShouldHandleCookies = false\n        webviewController.webview.load(request)\n    }\n}\n\nclass WebviewController: UIViewController {\n    lazy var webview: WKWebView = WKWebView()\n    lazy var progressbar: UIProgressView = UIProgressView()\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        self.webview.frame = self.view.frame\n        self.view.addSubview(self.webview)\n\n        self.view.addSubview(self.progressbar)\n        self.progressbar.translatesAutoresizingMaskIntoConstraints = false\n        self.view.addConstraints([\n            self.progressbar.topAnchor.constraint(equalTo: self.view.topAnchor),\n            self.progressbar.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),\n            self.progressbar.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),\n        ])\n\n        self.progressbar.progress = 0.1\n        webview.addObserver(self, forKeyPath: \"estimatedProgress\", options: .new, context: nil)\n    }\n\n    override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {\n        switch keyPath {\n        case \"estimatedProgress\":\n            if self.webview.estimatedProgress >= 1.0 {\n                UIView.animate(withDuration: 0.3, animations: { () in\n                    self.progressbar.alpha = 0.0\n                }, completion: { finished in\n                    self.progressbar.setProgress(0.0, animated: false)\n                })\n            } else {\n                self.progressbar.isHidden = false\n                self.progressbar.alpha = 1.0\n                progressbar.setProgress(Float(self.webview.estimatedProgress), animated: true)\n            }\n        default:\n            super.observeValue(forKeyPath: keyPath, of: object, change: change, context: context)\n        }\n    }\n}\n\n\n"
  },
  {
    "path": "NYTimes/Views/WebViewHolder.swift",
    "content": "//\n//  WebViewHolder.swift\n//  NYTimes\n//\n//  Created by Waseem Akram on 29/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport SwiftUI\nimport CoreData\n\nstruct WebViewHolder: View {\n    \n    var url:URL\n    var article:Article\n    \n    @State var isBookmarked = false\n    \n    @Environment(\\.managedObjectContext) var managedObjectContext\n    \n    @ObservedObject var bookmarkViewModel = BookmarkViewModel(repository: BookmarkRepository())\n    \n    var body: some View {\n        WebView(url: url)\n        .navigationBarItems(trailing: Button(action: {\n            self.isBookmarked ? bookmarkViewModel.deleteBookmark(article: article,showAlert: true) : bookmarkViewModel.bookmark(for: article)\n            self.isBookmarked = bookmarkViewModel.isArticleExists(with: article.url)\n        }, label: {\n            Image(systemName: \"bookmark\\(isBookmarked ? \".fill\" : \"\")\").frame(width: 30, height: 50,alignment: .center)\n        }).alert(isPresented: $bookmarkViewModel.shouldShowAlert) {\n            Alert(\n                title: Text(bookmarkViewModel.message),\n                dismissButton: .default(Text(\"OK\"))\n            )\n        })\n        .onAppear {\n            self.isBookmarked = bookmarkViewModel.isArticleExists(with: article.url)\n        }\n    }\n}\n\nstruct WebViewHolder_Previews: PreviewProvider {\n    static var previews: some View {\n        WebViewHolder(url:URL(string: \"https://google.com\")!, article: PlaceHolderData.articles[0])\n            .previewDevice(.init(stringLiteral: \"iPhone X\"))\n    }\n}\n"
  },
  {
    "path": "NYTimes.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 52;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t732DDA5E27125B650006F018 /* CategoriesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 732DDA5D27125B650006F018 /* CategoriesView.swift */; };\n\t\t732DDA6027125B6D0006F018 /* CategoriesViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 732DDA5F27125B6D0006F018 /* CategoriesViewModel.swift */; };\n\t\t75117C2024D4294D0097E28F /* BookmarkRepository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75117C1F24D4294D0097E28F /* BookmarkRepository.swift */; };\n\t\t75117C2424D43CE90097E28F /* BookmarkViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75117C2324D43CE90097E28F /* BookmarkViewModel.swift */; };\n\t\t7524922624D053CE00B1ACA5 /* NewsFeedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7524922524D053CE00B1ACA5 /* NewsFeedView.swift */; };\n\t\t7533BB3724D9E00C00A4AF49 /* HTMLScarperUtility.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7533BB3624D9E00C00A4AF49 /* HTMLScarperUtility.swift */; };\n\t\t754C9A1D24D1500C00706469 /* Article.swift in Sources */ = {isa = PBXBuildFile; fileRef = 754C9A1C24D1500C00706469 /* Article.swift */; };\n\t\t754FAFE724D0308900ACFE9E /* Category.swift in Sources */ = {isa = PBXBuildFile; fileRef = 754FAFE624D0308900ACFE9E /* Category.swift */; };\n\t\t7552547224D5E2E700E2143D /* CDArticle+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7552547024D5E2E700E2143D /* CDArticle+CoreDataClass.swift */; };\n\t\t7552547324D5E2E700E2143D /* CDArticle+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7552547124D5E2E700E2143D /* CDArticle+CoreDataProperties.swift */; };\n\t\t7557FA7B24D0271400F80607 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7557FA7A24D0271400F80607 /* AppDelegate.swift */; };\n\t\t7557FA7D24D0271400F80607 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7557FA7C24D0271400F80607 /* SceneDelegate.swift */; };\n\t\t7557FA8024D0271400F80607 /* NYTimes.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 7557FA7E24D0271400F80607 /* NYTimes.xcdatamodeld */; };\n\t\t7557FA8224D0271400F80607 /* RootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7557FA8124D0271400F80607 /* RootView.swift */; };\n\t\t7557FA8424D0271500F80607 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7557FA8324D0271500F80607 /* Assets.xcassets */; };\n\t\t7557FA8724D0271500F80607 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7557FA8624D0271500F80607 /* Preview Assets.xcassets */; };\n\t\t7557FA8A24D0271500F80607 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7557FA8824D0271500F80607 /* LaunchScreen.storyboard */; };\n\t\t7557FAA024D0277200F80607 /* CategorySelector.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7557FA9F24D0277200F80607 /* CategorySelector.swift */; };\n\t\t757C5E8724D1B5680024C2AE /* WebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 757C5E8624D1B5680024C2AE /* WebView.swift */; };\n\t\t757C5E8B24D1C9A20024C2AE /* WebViewHolder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 757C5E8A24D1C9A20024C2AE /* WebViewHolder.swift */; };\n\t\t757C5E8F24D1DFCE0024C2AE /* Common Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 757C5E8E24D1DFCD0024C2AE /* Common Utils.swift */; };\n\t\t75BDFDC324D3F2100041AD20 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75BDFDC224D3F2100041AD20 /* Constants.swift */; };\n\t\t75C2757F24D0A5E500A7A651 /* BookmarksView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75C2757E24D0A5E500A7A651 /* BookmarksView.swift */; };\n\t\t75C2758324D0AC2C00A7A651 /* ArticleViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75C2758224D0AC2C00A7A651 /* ArticleViewModel.swift */; };\n\t\t75C2758824D0AEBC00A7A651 /* SwiftSoup in Frameworks */ = {isa = PBXBuildFile; productRef = 75C2758724D0AEBC00A7A651 /* SwiftSoup */; };\n\t\t75C2759B24D0BA6B00A7A651 /* Bookmark.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75C2759A24D0BA6B00A7A651 /* Bookmark.swift */; };\n\t\t75C2759D24D0BB6C00A7A651 /* PersistenceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75C2759C24D0BB6C00A7A651 /* PersistenceManager.swift */; };\n\t\t75D4FB5325653D7F0095AC82 /* Reachability in Frameworks */ = {isa = PBXBuildFile; productRef = 75D4FB5225653D7F0095AC82 /* Reachability */; };\n\t\t75D4FB5725653DC30095AC82 /* Reachability + Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75D4FB5625653DC30095AC82 /* Reachability + Extensions.swift */; };\n\t\t75D4FB5B256542B00095AC82 /* NetworkReachabilty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75D4FB5A256542B00095AC82 /* NetworkReachabilty.swift */; };\n\t\t75DDE51824D4097400F9F165 /* NYTimesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75DDE51724D4097400F9F165 /* NYTimesTests.swift */; };\n\t\t75DDE51C24D40DDD00F9F165 /* ArticleRepositoryTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75DDE51B24D40DDD00F9F165 /* ArticleRepositoryTest.swift */; };\n\t\t75F6869924D19C5C003E0E4A /* Kingfisher in Frameworks */ = {isa = PBXBuildFile; productRef = 75F6869824D19C5C003E0E4A /* Kingfisher */; };\n\t\t75F6869B24D19C5C003E0E4A /* KingfisherSwiftUI in Frameworks */ = {isa = PBXBuildFile; productRef = 75F6869A24D19C5C003E0E4A /* KingfisherSwiftUI */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t75DDE51224D4094F00F9F165 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 7557FA6F24D0271400F80607 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 7557FA7624D0271400F80607;\n\t\t\tremoteInfo = NYTimes;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t75E694BC24D1988C00D4C04C /* Embed Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tname = \"Embed Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t732DDA5D27125B650006F018 /* CategoriesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CategoriesView.swift; sourceTree = \"<group>\"; };\n\t\t732DDA5F27125B6D0006F018 /* CategoriesViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CategoriesViewModel.swift; sourceTree = \"<group>\"; };\n\t\t75117C1F24D4294D0097E28F /* BookmarkRepository.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookmarkRepository.swift; sourceTree = \"<group>\"; };\n\t\t75117C2324D43CE90097E28F /* BookmarkViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookmarkViewModel.swift; sourceTree = \"<group>\"; };\n\t\t7524922524D053CE00B1ACA5 /* NewsFeedView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewsFeedView.swift; sourceTree = \"<group>\"; };\n\t\t7533BB3624D9E00C00A4AF49 /* HTMLScarperUtility.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTMLScarperUtility.swift; sourceTree = \"<group>\"; };\n\t\t754C9A1C24D1500C00706469 /* Article.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Article.swift; sourceTree = \"<group>\"; };\n\t\t754FAFE624D0308900ACFE9E /* Category.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Category.swift; sourceTree = \"<group>\"; };\n\t\t7552547024D5E2E700E2143D /* CDArticle+CoreDataClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \"CDArticle+CoreDataClass.swift\"; sourceTree = \"<group>\"; };\n\t\t7552547124D5E2E700E2143D /* CDArticle+CoreDataProperties.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \"CDArticle+CoreDataProperties.swift\"; sourceTree = \"<group>\"; };\n\t\t7557FA7724D0271400F80607 /* NYTimes.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NYTimes.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t7557FA7A24D0271400F80607 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t7557FA7C24D0271400F80607 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = \"<group>\"; };\n\t\t7557FA7F24D0271400F80607 /* NYTimes.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = NYTimes.xcdatamodel; sourceTree = \"<group>\"; };\n\t\t7557FA8124D0271400F80607 /* RootView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootView.swift; sourceTree = \"<group>\"; };\n\t\t7557FA8324D0271500F80607 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t7557FA8624D0271500F80607 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = \"Preview Assets.xcassets\"; sourceTree = \"<group>\"; };\n\t\t7557FA8924D0271500F80607 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t7557FA8B24D0271500F80607 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t7557FA9F24D0277200F80607 /* CategorySelector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CategorySelector.swift; sourceTree = \"<group>\"; };\n\t\t757C5E8624D1B5680024C2AE /* WebView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebView.swift; sourceTree = \"<group>\"; };\n\t\t757C5E8A24D1C9A20024C2AE /* WebViewHolder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewHolder.swift; sourceTree = \"<group>\"; };\n\t\t757C5E8E24D1DFCD0024C2AE /* Common Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \"Common Utils.swift\"; sourceTree = \"<group>\"; };\n\t\t75BDFDC224D3F2100041AD20 /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = \"<group>\"; };\n\t\t75C2757E24D0A5E500A7A651 /* BookmarksView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookmarksView.swift; sourceTree = \"<group>\"; };\n\t\t75C2758224D0AC2C00A7A651 /* ArticleViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ArticleViewModel.swift; sourceTree = \"<group>\"; };\n\t\t75C2759A24D0BA6B00A7A651 /* Bookmark.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bookmark.swift; sourceTree = \"<group>\"; };\n\t\t75C2759C24D0BB6C00A7A651 /* PersistenceManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersistenceManager.swift; sourceTree = \"<group>\"; };\n\t\t75D4FB5625653DC30095AC82 /* Reachability + Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \"Reachability + Extensions.swift\"; sourceTree = \"<group>\"; };\n\t\t75D4FB5A256542B00095AC82 /* NetworkReachabilty.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkReachabilty.swift; sourceTree = \"<group>\"; };\n\t\t75DDE50D24D4094F00F9F165 /* NYTimesTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NYTimesTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t75DDE51724D4097400F9F165 /* NYTimesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NYTimesTests.swift; sourceTree = \"<group>\"; };\n\t\t75DDE51924D4098600F9F165 /* NYTimesTestInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = NYTimesTestInfo.plist; sourceTree = \"<group>\"; };\n\t\t75DDE51B24D40DDD00F9F165 /* ArticleRepositoryTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ArticleRepositoryTest.swift; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t7557FA7424D0271400F80607 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t75F6869B24D19C5C003E0E4A /* KingfisherSwiftUI in Frameworks */,\n\t\t\t\t75D4FB5325653D7F0095AC82 /* Reachability in Frameworks */,\n\t\t\t\t75F6869924D19C5C003E0E4A /* Kingfisher in Frameworks */,\n\t\t\t\t75C2758824D0AEBC00A7A651 /* SwiftSoup in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t75DDE50A24D4094F00F9F165 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t732DDA5C27125B4F0006F018 /* Categories */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t732DDA5D27125B650006F018 /* CategoriesView.swift */,\n\t\t\t\t732DDA5F27125B6D0006F018 /* CategoriesViewModel.swift */,\n\t\t\t);\n\t\t\tpath = Categories;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7533BB3324D9DFE200A4AF49 /* Utilities */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t757C5E8E24D1DFCD0024C2AE /* Common Utils.swift */,\n\t\t\t\t7533BB3624D9E00C00A4AF49 /* HTMLScarperUtility.swift */,\n\t\t\t\t75D4FB5A256542B00095AC82 /* NetworkReachabilty.swift */,\n\t\t\t);\n\t\t\tpath = Utilities;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FA6E24D0271400F80607 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7557FA7924D0271400F80607 /* NYTimes */,\n\t\t\t\t75DDE50E24D4094F00F9F165 /* NYTimesTests */,\n\t\t\t\t7557FA7824D0271400F80607 /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FA7824D0271400F80607 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7557FA7724D0271400F80607 /* NYTimes.app */,\n\t\t\t\t75DDE50D24D4094F00F9F165 /* NYTimesTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FA7924D0271400F80607 /* NYTimes */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t75D4FB5525653DB40095AC82 /* Extensions */,\n\t\t\t\t7533BB3324D9DFE200A4AF49 /* Utilities */,\n\t\t\t\t757C5E9024D1DFDA0024C2AE /* Globals */,\n\t\t\t\t7557FAA324D0293900F80607 /* Persistence */,\n\t\t\t\t7557FAA424D0294B00F80607 /* Views */,\n\t\t\t\t75C2759E24D0BBCC00A7A651 /* Repository */,\n\t\t\t\t7557FAA224D0292F00F80607 /* ViewModel */,\n\t\t\t\t7557FAA124D0292600F80607 /* Model */,\n\t\t\t\t7557FAA524D0295B00F80607 /* Supporting files */,\n\t\t\t\t7557FA8324D0271500F80607 /* Assets.xcassets */,\n\t\t\t\t7557FA8B24D0271500F80607 /* Info.plist */,\n\t\t\t\t7557FA8524D0271500F80607 /* Preview Content */,\n\t\t\t);\n\t\t\tpath = NYTimes;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FA8524D0271500F80607 /* Preview Content */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7557FA8624D0271500F80607 /* Preview Assets.xcassets */,\n\t\t\t);\n\t\t\tpath = \"Preview Content\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FAA124D0292600F80607 /* Model */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t75C2759324D0B3D900A7A651 /* Coredata model */,\n\t\t\t\t754FAFE624D0308900ACFE9E /* Category.swift */,\n\t\t\t\t75C2759A24D0BA6B00A7A651 /* Bookmark.swift */,\n\t\t\t\t754C9A1C24D1500C00706469 /* Article.swift */,\n\t\t\t);\n\t\t\tpath = Model;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FAA224D0292F00F80607 /* ViewModel */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t75C2758224D0AC2C00A7A651 /* ArticleViewModel.swift */,\n\t\t\t\t75117C2324D43CE90097E28F /* BookmarkViewModel.swift */,\n\t\t\t);\n\t\t\tpath = ViewModel;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FAA324D0293900F80607 /* Persistence */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7557FA7E24D0271400F80607 /* NYTimes.xcdatamodeld */,\n\t\t\t\t75C2759C24D0BB6C00A7A651 /* PersistenceManager.swift */,\n\t\t\t);\n\t\t\tpath = Persistence;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FAA424D0294B00F80607 /* Views */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t732DDA5C27125B4F0006F018 /* Categories */,\n\t\t\t\t7557FA8124D0271400F80607 /* RootView.swift */,\n\t\t\t\t7557FA9F24D0277200F80607 /* CategorySelector.swift */,\n\t\t\t\t7524922524D053CE00B1ACA5 /* NewsFeedView.swift */,\n\t\t\t\t75C2757E24D0A5E500A7A651 /* BookmarksView.swift */,\n\t\t\t\t757C5E8624D1B5680024C2AE /* WebView.swift */,\n\t\t\t\t757C5E8A24D1C9A20024C2AE /* WebViewHolder.swift */,\n\t\t\t);\n\t\t\tpath = Views;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7557FAA524D0295B00F80607 /* Supporting files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7557FA8824D0271500F80607 /* LaunchScreen.storyboard */,\n\t\t\t\t7557FA7A24D0271400F80607 /* AppDelegate.swift */,\n\t\t\t\t7557FA7C24D0271400F80607 /* SceneDelegate.swift */,\n\t\t\t);\n\t\t\tpath = \"Supporting files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t757C5E9024D1DFDA0024C2AE /* Globals */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t75BDFDC224D3F2100041AD20 /* Constants.swift */,\n\t\t\t);\n\t\t\tpath = Globals;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t75C2759324D0B3D900A7A651 /* Coredata model */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7552547024D5E2E700E2143D /* CDArticle+CoreDataClass.swift */,\n\t\t\t\t7552547124D5E2E700E2143D /* CDArticle+CoreDataProperties.swift */,\n\t\t\t);\n\t\t\tpath = \"Coredata model\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t75C2759E24D0BBCC00A7A651 /* Repository */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t75117C1F24D4294D0097E28F /* BookmarkRepository.swift */,\n\t\t\t);\n\t\t\tpath = Repository;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t75D4FB5525653DB40095AC82 /* Extensions */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t75D4FB5625653DC30095AC82 /* Reachability + Extensions.swift */,\n\t\t\t);\n\t\t\tpath = Extensions;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t75DDE50E24D4094F00F9F165 /* NYTimesTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t75DDE51924D4098600F9F165 /* NYTimesTestInfo.plist */,\n\t\t\t\t75DDE51724D4097400F9F165 /* NYTimesTests.swift */,\n\t\t\t\t75DDE51B24D40DDD00F9F165 /* ArticleRepositoryTest.swift */,\n\t\t\t);\n\t\t\tpath = NYTimesTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t7557FA7624D0271400F80607 /* NYTimes */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 7557FA9924D0271500F80607 /* Build configuration list for PBXNativeTarget \"NYTimes\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t7557FA7324D0271400F80607 /* Sources */,\n\t\t\t\t7557FA7424D0271400F80607 /* Frameworks */,\n\t\t\t\t7557FA7524D0271400F80607 /* Resources */,\n\t\t\t\t75E694BC24D1988C00D4C04C /* Embed Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = NYTimes;\n\t\t\tpackageProductDependencies = (\n\t\t\t\t75C2758724D0AEBC00A7A651 /* SwiftSoup */,\n\t\t\t\t75F6869824D19C5C003E0E4A /* Kingfisher */,\n\t\t\t\t75F6869A24D19C5C003E0E4A /* KingfisherSwiftUI */,\n\t\t\t\t75D4FB5225653D7F0095AC82 /* Reachability */,\n\t\t\t);\n\t\t\tproductName = NYTimes;\n\t\t\tproductReference = 7557FA7724D0271400F80607 /* NYTimes.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t75DDE50C24D4094F00F9F165 /* NYTimesTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 75DDE51424D4094F00F9F165 /* Build configuration list for PBXNativeTarget \"NYTimesTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t75DDE50924D4094F00F9F165 /* Sources */,\n\t\t\t\t75DDE50A24D4094F00F9F165 /* Frameworks */,\n\t\t\t\t75DDE50B24D4094F00F9F165 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t75DDE51324D4094F00F9F165 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = NYTimesTests;\n\t\t\tproductName = NYTimesTests;\n\t\t\tproductReference = 75DDE50D24D4094F00F9F165 /* NYTimesTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t7557FA6F24D0271400F80607 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 1200;\n\t\t\t\tLastUpgradeCheck = 1200;\n\t\t\t\tORGANIZATIONNAME = \"Waseem Akram\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t7557FA7624D0271400F80607 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 11.5;\n\t\t\t\t\t};\n\t\t\t\t\t75DDE50C24D4094F00F9F165 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 12.0;\n\t\t\t\t\t\tTestTargetID = 7557FA7624D0271400F80607;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 7557FA7224D0271400F80607 /* Build configuration list for PBXProject \"NYTimes\" */;\n\t\t\tcompatibilityVersion = \"Xcode 9.3\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 7557FA6E24D0271400F80607;\n\t\t\tpackageReferences = (\n\t\t\t\t75C2758624D0AEBC00A7A651 /* XCRemoteSwiftPackageReference \"SwiftSoup\" */,\n\t\t\t\t75F6869724D19C5C003E0E4A /* XCRemoteSwiftPackageReference \"Kingfisher\" */,\n\t\t\t\t75D4FB5125653D7F0095AC82 /* XCRemoteSwiftPackageReference \"Reachability\" */,\n\t\t\t);\n\t\t\tproductRefGroup = 7557FA7824D0271400F80607 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t7557FA7624D0271400F80607 /* NYTimes */,\n\t\t\t\t75DDE50C24D4094F00F9F165 /* NYTimesTests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t7557FA7524D0271400F80607 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t7557FA8A24D0271500F80607 /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t7557FA8724D0271500F80607 /* Preview Assets.xcassets in Resources */,\n\t\t\t\t7557FA8424D0271500F80607 /* Assets.xcassets in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t75DDE50B24D4094F00F9F165 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t7557FA7324D0271400F80607 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t7557FA8024D0271400F80607 /* NYTimes.xcdatamodeld in Sources */,\n\t\t\t\t757C5E8724D1B5680024C2AE /* WebView.swift in Sources */,\n\t\t\t\t754C9A1D24D1500C00706469 /* Article.swift in Sources */,\n\t\t\t\t75117C2424D43CE90097E28F /* BookmarkViewModel.swift in Sources */,\n\t\t\t\t7557FA7B24D0271400F80607 /* AppDelegate.swift in Sources */,\n\t\t\t\t732DDA5E27125B650006F018 /* CategoriesView.swift in Sources */,\n\t\t\t\t75C2758324D0AC2C00A7A651 /* ArticleViewModel.swift in Sources */,\n\t\t\t\t75C2759B24D0BA6B00A7A651 /* Bookmark.swift in Sources */,\n\t\t\t\t75D4FB5B256542B00095AC82 /* NetworkReachabilty.swift in Sources */,\n\t\t\t\t75C2757F24D0A5E500A7A651 /* BookmarksView.swift in Sources */,\n\t\t\t\t7557FA8224D0271400F80607 /* RootView.swift in Sources */,\n\t\t\t\t7557FAA024D0277200F80607 /* CategorySelector.swift in Sources */,\n\t\t\t\t75D4FB5725653DC30095AC82 /* Reachability + Extensions.swift in Sources */,\n\t\t\t\t7524922624D053CE00B1ACA5 /* NewsFeedView.swift in Sources */,\n\t\t\t\t75BDFDC324D3F2100041AD20 /* Constants.swift in Sources */,\n\t\t\t\t7557FA7D24D0271400F80607 /* SceneDelegate.swift in Sources */,\n\t\t\t\t757C5E8F24D1DFCE0024C2AE /* Common Utils.swift in Sources */,\n\t\t\t\t75117C2024D4294D0097E28F /* BookmarkRepository.swift in Sources */,\n\t\t\t\t7552547224D5E2E700E2143D /* CDArticle+CoreDataClass.swift in Sources */,\n\t\t\t\t757C5E8B24D1C9A20024C2AE /* WebViewHolder.swift in Sources */,\n\t\t\t\t7552547324D5E2E700E2143D /* CDArticle+CoreDataProperties.swift in Sources */,\n\t\t\t\t754FAFE724D0308900ACFE9E /* Category.swift in Sources */,\n\t\t\t\t75C2759D24D0BB6C00A7A651 /* PersistenceManager.swift in Sources */,\n\t\t\t\t732DDA6027125B6D0006F018 /* CategoriesViewModel.swift in Sources */,\n\t\t\t\t7533BB3724D9E00C00A4AF49 /* HTMLScarperUtility.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t75DDE50924D4094F00F9F165 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t75DDE51C24D40DDD00F9F165 /* ArticleRepositoryTest.swift in Sources */,\n\t\t\t\t75DDE51824D4097400F9F165 /* NYTimesTests.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t75DDE51324D4094F00F9F165 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 7557FA7624D0271400F80607 /* NYTimes */;\n\t\t\ttargetProxy = 75DDE51224D4094F00F9F165 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t7557FA8824D0271500F80607 /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t7557FA8924D0271500F80607 /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t7557FA9724D0271500F80607 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tDISABLE_DIAMOND_PROBLEM_DIAGNOSTIC = 1;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 14.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;\n\t\t\t\tMTL_FAST_MATH = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t7557FA9824D0271500F80607 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tDISABLE_DIAMOND_PROBLEM_DIAGNOSTIC = 1;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 14.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tMTL_FAST_MATH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t7557FA9A24D0271500F80607 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = \"\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_ASSET_PATHS = \"\\\"NYTimes/Preview Content\\\"\";\n\t\t\t\tDEVELOPMENT_TEAM = 7S7EBZGDA6;\n\t\t\t\tENABLE_PREVIEWS = YES;\n\t\t\t\tINFOPLIST_FILE = NYTimes/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 14.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.waseem.NYTimes.example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSUPPORTS_MACCATALYST = NO;\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t7557FA9B24D0271500F80607 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = \"\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_ASSET_PATHS = \"\\\"NYTimes/Preview Content\\\"\";\n\t\t\t\tDEVELOPMENT_TEAM = 7S7EBZGDA6;\n\t\t\t\tENABLE_PREVIEWS = YES;\n\t\t\t\tINFOPLIST_FILE = NYTimes/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 14.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.waseem.NYTimes.example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSUPPORTS_MACCATALYST = NO;\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t75DDE51524D4094F00F9F165 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_TEAM = Z43AQF953J;\n\t\t\t\tINFOPLIST_FILE = NYTimesTests/NYTimesTestInfo.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.waseem.NYTimesTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/NYTimes.app/NYTimes\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t75DDE51624D4094F00F9F165 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_TEAM = Z43AQF953J;\n\t\t\t\tINFOPLIST_FILE = NYTimesTests/NYTimesTestInfo.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.waseem.NYTimesTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/NYTimes.app/NYTimes\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t7557FA7224D0271400F80607 /* Build configuration list for PBXProject \"NYTimes\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t7557FA9724D0271500F80607 /* Debug */,\n\t\t\t\t7557FA9824D0271500F80607 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t7557FA9924D0271500F80607 /* Build configuration list for PBXNativeTarget \"NYTimes\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t7557FA9A24D0271500F80607 /* Debug */,\n\t\t\t\t7557FA9B24D0271500F80607 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t75DDE51424D4094F00F9F165 /* Build configuration list for PBXNativeTarget \"NYTimesTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t75DDE51524D4094F00F9F165 /* Debug */,\n\t\t\t\t75DDE51624D4094F00F9F165 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\n/* Begin XCRemoteSwiftPackageReference section */\n\t\t75C2758624D0AEBC00A7A651 /* XCRemoteSwiftPackageReference \"SwiftSoup\" */ = {\n\t\t\tisa = XCRemoteSwiftPackageReference;\n\t\t\trepositoryURL = \"https://github.com/scinfu/SwiftSoup\";\n\t\t\trequirement = {\n\t\t\t\tkind = upToNextMajorVersion;\n\t\t\t\tminimumVersion = 2.3.2;\n\t\t\t};\n\t\t};\n\t\t75D4FB5125653D7F0095AC82 /* XCRemoteSwiftPackageReference \"Reachability\" */ = {\n\t\t\tisa = XCRemoteSwiftPackageReference;\n\t\t\trepositoryURL = \"https://github.com/ashleymills/Reachability.swift\";\n\t\t\trequirement = {\n\t\t\t\tkind = upToNextMajorVersion;\n\t\t\t\tminimumVersion = 5.1.0;\n\t\t\t};\n\t\t};\n\t\t75F6869724D19C5C003E0E4A /* XCRemoteSwiftPackageReference \"Kingfisher\" */ = {\n\t\t\tisa = XCRemoteSwiftPackageReference;\n\t\t\trepositoryURL = \"https://github.com/onevcat/Kingfisher\";\n\t\t\trequirement = {\n\t\t\t\tkind = upToNextMajorVersion;\n\t\t\t\tminimumVersion = 5.14.1;\n\t\t\t};\n\t\t};\n/* End XCRemoteSwiftPackageReference section */\n\n/* Begin XCSwiftPackageProductDependency section */\n\t\t75C2758724D0AEBC00A7A651 /* SwiftSoup */ = {\n\t\t\tisa = XCSwiftPackageProductDependency;\n\t\t\tpackage = 75C2758624D0AEBC00A7A651 /* XCRemoteSwiftPackageReference \"SwiftSoup\" */;\n\t\t\tproductName = SwiftSoup;\n\t\t};\n\t\t75D4FB5225653D7F0095AC82 /* Reachability */ = {\n\t\t\tisa = XCSwiftPackageProductDependency;\n\t\t\tpackage = 75D4FB5125653D7F0095AC82 /* XCRemoteSwiftPackageReference \"Reachability\" */;\n\t\t\tproductName = Reachability;\n\t\t};\n\t\t75F6869824D19C5C003E0E4A /* Kingfisher */ = {\n\t\t\tisa = XCSwiftPackageProductDependency;\n\t\t\tpackage = 75F6869724D19C5C003E0E4A /* XCRemoteSwiftPackageReference \"Kingfisher\" */;\n\t\t\tproductName = Kingfisher;\n\t\t};\n\t\t75F6869A24D19C5C003E0E4A /* KingfisherSwiftUI */ = {\n\t\t\tisa = XCSwiftPackageProductDependency;\n\t\t\tpackage = 75F6869724D19C5C003E0E4A /* XCRemoteSwiftPackageReference \"Kingfisher\" */;\n\t\t\tproductName = KingfisherSwiftUI;\n\t\t};\n/* End XCSwiftPackageProductDependency section */\n\n/* Begin XCVersionGroup section */\n\t\t7557FA7E24D0271400F80607 /* NYTimes.xcdatamodeld */ = {\n\t\t\tisa = XCVersionGroup;\n\t\t\tchildren = (\n\t\t\t\t7557FA7F24D0271400F80607 /* NYTimes.xcdatamodel */,\n\t\t\t);\n\t\t\tcurrentVersion = 7557FA7F24D0271400F80607 /* NYTimes.xcdatamodel */;\n\t\t\tpath = NYTimes.xcdatamodeld;\n\t\t\tsourceTree = \"<group>\";\n\t\t\tversionGroupType = wrapper.xcdatamodel;\n\t\t};\n/* End XCVersionGroup section */\n\t};\n\trootObject = 7557FA6F24D0271400F80607 /* Project object */;\n}\n"
  },
  {
    "path": "NYTimes.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "NYTimes.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "NYTimes.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved",
    "content": "{\n  \"object\": {\n    \"pins\": [\n      {\n        \"package\": \"Kingfisher\",\n        \"repositoryURL\": \"https://github.com/onevcat/Kingfisher\",\n        \"state\": {\n          \"branch\": null,\n          \"revision\": \"fd6aee6d3774db191b22e331cc88f00041a2ca85\",\n          \"version\": \"5.14.1\"\n        }\n      },\n      {\n        \"package\": \"Reachability\",\n        \"repositoryURL\": \"https://github.com/ashleymills/Reachability.swift\",\n        \"state\": {\n          \"branch\": null,\n          \"revision\": \"c01bbdf2d633cf049ae1ed1a68a2020a8bda32e2\",\n          \"version\": \"5.1.0\"\n        }\n      },\n      {\n        \"package\": \"SwiftSoup\",\n        \"repositoryURL\": \"https://github.com/scinfu/SwiftSoup\",\n        \"state\": {\n          \"branch\": null,\n          \"revision\": \"774dc9c7213085db8aa59595e27c1cd22e428904\",\n          \"version\": \"2.3.2\"\n        }\n      }\n    ]\n  },\n  \"version\": 1\n}\n"
  },
  {
    "path": "NYTimes.xcodeproj/xcshareddata/xcschemes/NYTimes.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1200\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"7557FA7624D0271400F80607\"\n               BuildableName = \"NYTimes.app\"\n               BlueprintName = \"NYTimes\"\n               ReferencedContainer = \"container:NYTimes.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      codeCoverageEnabled = \"YES\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"75DDE50C24D4094F00F9F165\"\n               BuildableName = \"NYTimesTests.xctest\"\n               BlueprintName = \"NYTimesTests\"\n               ReferencedContainer = \"container:NYTimes.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"7557FA7624D0271400F80607\"\n            BuildableName = \"NYTimes.app\"\n            BlueprintName = \"NYTimes\"\n            ReferencedContainer = \"container:NYTimes.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <EnvironmentVariables>\n         <EnvironmentVariable\n            key = \"OS_ACTIVITY_MODE\"\n            value = \"disable\"\n            isEnabled = \"YES\">\n         </EnvironmentVariable>\n      </EnvironmentVariables>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"7557FA7624D0271400F80607\"\n            BuildableName = \"NYTimes.app\"\n            BlueprintName = \"NYTimes\"\n            ReferencedContainer = \"container:NYTimes.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "NYTimes.xcodeproj/xcuserdata/sameernawaz.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bucket\n   uuid = \"2DAFB1EC-28FE-4541-847E-80B7A6EEA66C\"\n   type = \"1\"\n   version = \"2.0\">\n</Bucket>\n"
  },
  {
    "path": "NYTimes.xcodeproj/xcuserdata/waseemakram.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bucket\n   uuid = \"B9829A69-4C85-494D-82A6-2188C4E73FE9\"\n   type = \"1\"\n   version = \"2.0\">\n   <Breakpoints>\n      <BreakpointProxy\n         BreakpointExtensionID = \"Xcode.Breakpoint.FileBreakpoint\">\n         <BreakpointContent\n            uuid = \"EA8C33AD-2781-4714-8FD1-0CE88E4D5323\"\n            shouldBeEnabled = \"No\"\n            ignoreCount = \"0\"\n            continueAfterRunningActions = \"No\"\n            filePath = \"NYTimes/ViewModel/BookmarkViewModel.swift\"\n            startingColumnNumber = \"9223372036854775807\"\n            endingColumnNumber = \"9223372036854775807\"\n            startingLineNumber = \"37\"\n            endingLineNumber = \"37\"\n            landmarkName = \"bookmark(for:)\"\n            landmarkType = \"7\">\n            <Locations>\n               <Location\n                  uuid = \"EA8C33AD-2781-4714-8FD1-0CE88E4D5323 - 5abe80a212f22279\"\n                  shouldBeEnabled = \"Yes\"\n                  ignoreCount = \"0\"\n                  continueAfterRunningActions = \"No\"\n                  symbolName = \"NYTimes.BookmarkViewModel.bookmark(for: NYTimes.Article) -&gt; ()\"\n                  moduleName = \"NYTimes\"\n                  usesParentBreakpointCondition = \"Yes\"\n                  urlString = \"file:///Users/waseemakram/Desktop/NYTimes/NYTimes/ViewModel/BookmarkViewModel.swift\"\n                  startingColumnNumber = \"9223372036854775807\"\n                  endingColumnNumber = \"9223372036854775807\"\n                  startingLineNumber = \"36\"\n                  endingLineNumber = \"36\"\n                  offsetFromSymbolStart = \"148\">\n               </Location>\n               <Location\n                  uuid = \"EA8C33AD-2781-4714-8FD1-0CE88E4D5323 - 897b7bb2119d795c\"\n                  shouldBeEnabled = \"Yes\"\n                  ignoreCount = \"0\"\n                  continueAfterRunningActions = \"No\"\n                  symbolName = \"closure #1 (Swift.Bool) -&gt; () in NYTimes.BookmarkViewModel.bookmark(for: NYTimes.Article) -&gt; ()\"\n                  moduleName = \"NYTimes\"\n                  usesParentBreakpointCondition = \"Yes\"\n                  urlString = \"file:///Users/waseemakram/Desktop/NYTimes/NYTimes/ViewModel/BookmarkViewModel.swift\"\n                  startingColumnNumber = \"9223372036854775807\"\n                  endingColumnNumber = \"9223372036854775807\"\n                  startingLineNumber = \"36\"\n                  endingLineNumber = \"36\"\n                  offsetFromSymbolStart = \"40\">\n               </Location>\n            </Locations>\n         </BreakpointContent>\n      </BreakpointProxy>\n      <BreakpointProxy\n         BreakpointExtensionID = \"Xcode.Breakpoint.FileBreakpoint\">\n         <BreakpointContent\n            uuid = \"1A7F23EB-E9BF-49EA-9BF2-C0E102AC919B\"\n            shouldBeEnabled = \"No\"\n            ignoreCount = \"0\"\n            continueAfterRunningActions = \"No\"\n            filePath = \"NYTimes/Repository/BookmarkRepository.swift\"\n            startingColumnNumber = \"9223372036854775807\"\n            endingColumnNumber = \"9223372036854775807\"\n            startingLineNumber = \"75\"\n            endingLineNumber = \"75\"\n            landmarkName = \"insert(article:completion:)\"\n            landmarkType = \"7\">\n         </BreakpointContent>\n      </BreakpointProxy>\n      <BreakpointProxy\n         BreakpointExtensionID = \"Xcode.Breakpoint.FileBreakpoint\">\n         <BreakpointContent\n            uuid = \"B9CDBDFF-4971-43A4-B24A-7732812F2D0A\"\n            shouldBeEnabled = \"No\"\n            ignoreCount = \"0\"\n            continueAfterRunningActions = \"No\"\n            filePath = \"NYTimes/Views/BookmarksView.swift\"\n            startingColumnNumber = \"9223372036854775807\"\n            endingColumnNumber = \"9223372036854775807\"\n            startingLineNumber = \"53\"\n            endingLineNumber = \"53\">\n         </BreakpointContent>\n      </BreakpointProxy>\n      <BreakpointProxy\n         BreakpointExtensionID = \"Xcode.Breakpoint.ExceptionBreakpoint\">\n         <BreakpointContent\n            uuid = \"18AE96FC-BF7E-4B68-9BE2-619129467130\"\n            shouldBeEnabled = \"No\"\n            nameForDebugger = \"Exception\"\n            ignoreCount = \"0\"\n            continueAfterRunningActions = \"No\"\n            breakpointStackSelectionBehavior = \"1\"\n            scope = \"0\"\n            stopOnStyle = \"0\">\n         </BreakpointContent>\n      </BreakpointProxy>\n      <BreakpointProxy\n         BreakpointExtensionID = \"Xcode.Breakpoint.SwiftErrorBreakpoint\">\n         <BreakpointContent\n            uuid = \"B5BF5C38-571C-4581-8E17-5FAA415693C2\"\n            shouldBeEnabled = \"No\"\n            ignoreCount = \"0\"\n            continueAfterRunningActions = \"No\">\n         </BreakpointContent>\n      </BreakpointProxy>\n   </Breakpoints>\n</Bucket>\n"
  },
  {
    "path": "NYTimes.xcodeproj/xcuserdata/waseemakram.xcuserdatad/xcschemes/xcschememanagement.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>SchemeUserState</key>\n\t<dict>\n\t\t<key>NYTimes.xcscheme_^#shared#^_</key>\n\t\t<dict>\n\t\t\t<key>orderHint</key>\n\t\t\t<integer>0</integer>\n\t\t</dict>\n\t</dict>\n\t<key>SuppressBuildableAutocreation</key>\n\t<dict>\n\t\t<key>7557FA7624D0271400F80607</key>\n\t\t<dict>\n\t\t\t<key>primary</key>\n\t\t\t<true/>\n\t\t</dict>\n\t\t<key>7557FA8F24D0271500F80607</key>\n\t\t<dict>\n\t\t\t<key>primary</key>\n\t\t\t<true/>\n\t\t</dict>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "NYTimesTests/ArticleRepositoryTest.swift",
    "content": "//\n//  ArticleRepositoryTest.swift\n//  NYTimesTests\n//\n//  Created by Waseem Akram on 31/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport XCTest\n@testable import NYTimes\n\nclass ArticleRepositoryTest: XCTestCase {\n\n    var articleRepository: ArticleRepository!\n\n    override func setUp() {\n        articleRepository = ArticleRepository()\n    }\n    \n    func testScienceArticles(){\n        articleRepository.fetchArticles(for: .science) { (articles) in\n            XCTAssertNotNil(articles)\n            XCTAssertGreaterThan(articles?.count ?? 0, 0, \"Empty science articles\")\n        }\n    }\n    \n    func testSportsArticles(){\n        articleRepository.fetchArticles(for: .sports) { (articles) in\n            XCTAssertNotNil(articles)\n            XCTAssertGreaterThan(articles?.count ?? 0, 0, \"Empty sports articles\")\n        }\n    }\n    \n    func testTechArticles(){\n        articleRepository.fetchArticles(for: .tech) { (articles) in\n            XCTAssertNotNil(articles)\n            XCTAssertGreaterThan(articles?.count ?? 0, 0, \"Empty tech articles\")\n        }\n    }\n    \n    func testBusinessArticles(){\n        articleRepository.fetchArticles(for: .business) { (articles) in\n            XCTAssertNotNil(articles)\n            XCTAssertGreaterThan(articles?.count ?? 0, 0, \"Empty business articles\")\n        }\n    }\n    \n    func testYourMoneyArticles(){\n        articleRepository.fetchArticles(for: .yourmoney) { (articles) in\n            XCTAssertNotNil(articles)\n            XCTAssertGreaterThan(articles?.count ?? 0, 0, \"Empty your money articles\")\n        }\n    }\n    \n    func testEducationArticles(){\n        articleRepository.fetchArticles(for: .education) { (articles) in\n            XCTAssertNotNil(articles)\n            XCTAssertGreaterThan(articles?.count ?? 0, 0, \"Empty education articles\")\n        }\n    }\n    \n    func testSpaceArticles(){\n        articleRepository.fetchArticles(for: .space) { (articles) in\n            XCTAssertNotNil(articles)\n            XCTAssertGreaterThan(articles?.count ?? 0, 0, \"Empty space articles\")\n        }\n    }\n    \n    override func tearDown() {\n        articleRepository = nil\n    }\n\n}\n"
  },
  {
    "path": "NYTimesTests/NYTimesTestInfo.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>$(DEVELOPMENT_LANGUAGE)</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "NYTimesTests/NYTimesTests.swift",
    "content": "//\n//  NYTimesTests.swift\n//  NYTimesTests\n//\n//  Created by Waseem Akram on 31/07/20.\n//  Copyright © 2020 Waseem Akram. All rights reserved.\n//\n\nimport XCTest\n@testable import NYTimes\n\n\nclass NYTimesTests: XCTestCase {\n    \n  \n\n}\n"
  },
  {
    "path": "README.md",
    "content": "![](https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/Banner%400.25x.png)\n![SwiftUI](https://img.shields.io/badge/Interface-SwfitUI-red)\n![Architecture](https://img.shields.io/badge/Architecture-MVVM-green)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/TheCodeMonks/NYTimes-iOS/blob/master/LICENSE)\n![GitHub forks](https://img.shields.io/github/forks/TheCodeMonks/NYTimes-iOS?label=Fork&style=social)\n![GitHub Stars](https://img.shields.io/github/stars/TheCodeMonks/NYTimes-iOS?label=Stars&style=social)\n![GitHub Watchers](https://img.shields.io/github/watchers/TheCodeMonks/NYTimes-iOS?label=Watchers&style=social)\n\n\n[![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https://github.com/TheCodeMonks/NYTimes-iOS)](http://twitter.com/share?text=Checkout+this+cool+project+made+with+SwiftUI,+by+@iamwaseem99&url=https://github.com/TheCodeMonks/NYTimes-iOS&hashtags=swiftui,ios,iphone,news,github,iosdevelopers,swift,xcode)\n[![Twitter Follow](https://img.shields.io/twitter/follow/iamwaseem99?style=social)](https://twitter.com/iamwaseem99)\n\n\n\n# NYTimes\n\nNY Times is an Minimal News 🗞 iOS application built to describe the use of **SwiftSoup** and **CoreData** with **SwiftUI**.\n\n## ⛓ Features\n\n<table style=\"width:100%\">\n  <tr>\n    <th>Articles Loading </th>\n    <th>Browse by Category</th> \n  </tr>\n  <tr>\n    <td><img src=\"https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/gifs/HomeLoading.gif\" width=250 height=600 /></td> \n    <td><img src=\"https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/gifs/browseByCategories.gif\" width=250 height=600 /></td> \n  </tr>\n  <tr>\n    <th>Bookmark a Article using 3D Touch. </th>\n    <th>Deleting bookmarks is just one swipe away</th> \n  </tr>\n  <tr>\n    <td><img src=\"https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/gifs/bookmark3d.gif\" width=250 height=600 /></td>\n    <td><img src=\"https://github.com/TheCodeMonks/NYTimes-iOS/blob/master/NYTimes%20Screenshots/gifs/manageBookmark.gif\" width=250 height=600 /></td>\n  </tr>\n</table>\n\n## 📝 Table of Contents  \n- [Requirements](#requirements)\n- [What you can learn?](#whatyoucanlearn)\n- [Technical Background](#techbackground)\n- [Dependencies](#dependencies)\n- [Project Structure](#projectstructure)\n- [Features](#features)\n- [Contribute](#contribute)\n- [Contact](#contact)\n- [License](#license)\n\n\n\n\n<a name=\"requirements\"/>\n\n## ⚙️ Requirements\n```\niOS 14+\nXcode 12.2 and Up\n```\n\n<a name=\"whatyoucanlearn\"/>\n\n## 📚 What you can learn?\n- You can learn Technologies like\n  - SwiftUI\n  - CoreData\n  - Combine\n  - Web Scraping\n- You can learn various Design patterns from this project such as\n  - Dependency injection\n  - Repository \n  - Singleton\n  - Observers\n- You can learn MVVM Two way binding Architecture for SwiftUI with Combine framework\n\n<a name=\"techbackground\"/>\n\n## 🛠 Technical Background\n- NYTimes App was made using SwiftUI as the Core interface with Two Way Binding MVVM Architecture using Combine framework. \n- CoreData is used to store the Article Bookmarks offline in device so that the user can access it at later time.\n- SwiftSoup is used to scrap the required details from the NYTimes website.\n- The User interface of this app mostly uses the inbuilt iOS components to keep the User experience close to the native feel.\n- Bookmarks can be added as easy as a 3d-touch from Homescreen or a tap in bookmark icon in the detailed article screen.\n- This project was built in the mindset of modularity and good coding patterns. Multiple design patterns like Dependency injection, Repository pattern, Singleton Pattern etc.\n\n<a name=\"dependencies\"/>\n\n## 🔗 Dependencies\n\nThis project uses SPM (Swift Package Manager) as Dependency manager.\n\n - [SwiftSoup](https://github.com/scinfu/SwiftSoup)\n - [Kingfisher](https://github.com/onevcat/Kingfisher)\n - [Reachability](https://github.com/ashleymills/Reachability.swift)\n\n<a name=\"projectstructure\"/>\n\n## ⛓ Project Structure\n\n    NYTimes                 # Root Group\n    .\n    ├── Utilities           # Utilities for Fetching data ans Scraping HTML\n    ├── Extensions          # Some useful extensions\n    ├── Globals             # Contains App constants\n    ├── Persistence         # Coredata files. Contains coredata model and Singleton for ManagedObjectContext\n    ├── Views               # SwiftUI Views\n    ├── Repository          # Repository for Coredata\n    ├── ViewModel           # Viewmodels for SwiftUI Views\n    ├── Model               # Model files\n    |   └── Coredata Model  # Coredata model subclasses\n    |\n    └── Supporting files    # Misc. files like Appdelegate, SceneDelegate.\n\n## Architecture\n    \nThis app uses MVVM architecture.\n\n![MVVM](https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/MVVM.jpeg)\n\n\n<a name=\"contribute\"/>\n\n## ✏️ Contribute\n\nIf you want to contribute to this library, you're always welcome!\n\n### What you can do\nYou can contribute us by filing issues, bugs and PRs.\n\n### Before you do\nBefore you open a issue or report a bug, please check if the issue or bug is related to Xcode or SwiftUI.\n\n### Contributing guidelines:\n- Open issue regarding proposed change.\n- Repo owner will contact you there.\n- If your proposed change is approved, Fork this repo and do changes.\n- Open PR against latest `dev` branch. Add nice description in PR.\n- You're done!\n\n## ☕️ Donation\nIf this project help you reduce time to develop, you can give me a cup of coffee :) \n\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.me/iamwaseem99)\n\n<a name=\"contact\"/>\n\n## 📱 Contact\n\nHave an project? DM us at 👇\n\nDrop a mail to:- thecodemonksorg@gmail.com\n\n<a name=\"license\"/>\n\n## ⚖️ [License](https://github.com/TheCodeMonks/NYTimes-iOS/blob/master/LICENSE)\n\n```\nMIT License\n\nCopyright (c) 2020 TheCodeMonks\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n"
  }
]