Commit 41c38c5a authored by Eyad Hasan's avatar Eyad Hasan
Browse files

Going to use the file we already have that handles the JSON objects, and just...

Going to use the file we already have that handles the JSON objects, and just change it to use realm instead, might be easier and cleaner this way
parent 251ceeac
......@@ -8,7 +8,6 @@
/* Begin PBXBuildFile section */
2D58D8D61391ACF51F6CA539 /* Pods_WhatsOpen.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6055C82C71D47E26A6E5E34 /* Pods_WhatsOpen.framework */; };
7F08ADC71F02C61C00D53B2F /* Facilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F08ADC61F02C61C00D53B2F /* Facilities.swift */; };
7F4743271E11D1BC00E6E3D1 /* MainTableViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F4743261E11D1BC00E6E3D1 /* MainTableViewControllerTests.swift */; };
CD3C97491DC18AB300A84434 /* SRCTNetworkController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD3C97481DC18AB300A84434 /* SRCTNetworkController.swift */; };
CD466DD21DC12E1200E44DF5 /* MainTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD466DD11DC12E1200E44DF5 /* MainTableViewController.swift */; };
......@@ -33,7 +32,6 @@
/* Begin PBXFileReference section */
3DB5444E9F9F99CD88E3CD9B /* Pods-WhatsOpen.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WhatsOpen.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WhatsOpen/Pods-WhatsOpen.debug.xcconfig"; sourceTree = "<group>"; };
7F08ADC61F02C61C00D53B2F /* Facilities.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Facilities.swift; sourceTree = "<group>"; };
7F4743181E11C7D100E6E3D1 /* WhatsOpenTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WhatsOpenTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
7F47431C1E11C7D100E6E3D1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7F4743261E11D1BC00E6E3D1 /* MainTableViewControllerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MainTableViewControllerTests.swift; sourceTree = "<group>"; };
......@@ -130,7 +128,6 @@
children = (
CD763A791DE24EF100ADFD6B /* examplejson.swift */,
CD3C97481DC18AB300A84434 /* SRCTNetworkController.swift */,
7F08ADC61F02C61C00D53B2F /* Facilities.swift */,
);
name = DataModel;
sourceTree = "<group>";
......@@ -313,7 +310,6 @@
CD763A7E1DE253B900ADFD6B /* SRCTUtilities.swift in Sources */,
CD3C97491DC18AB300A84434 /* SRCTNetworkController.swift in Sources */,
CD763A7C1DE251C400ADFD6B /* SRCTSimpleTableViewCell.swift in Sources */,
7F08ADC71F02C61C00D53B2F /* Facilities.swift in Sources */,
CD81F51D1DC0334600009FBD /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
......
//
// Facilities.swift
// WhatsOpen
//
// Created by Eyad Hasan on 6/27/17.
// Copyright © 2017 Patrick Murray. All rights reserved.
//
import Foundation
import RealmSwift
class Dining : Object {
dynamic var name = ""
}
......@@ -11,8 +11,6 @@ import RealmSwift
class MainTableViewController: UITableViewController {
let realm = try! Realm()
lazy var dining: OpenTimes<Dining> = { self.realm.objects(Dining) }()
var facilitiesArray = Array<Facility>()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment