Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
evermeer committed Jan 14, 2017
1 parent beaf46a commit 741ae5b
Show file tree
Hide file tree
Showing 57 changed files with 2,295 additions and 1,022 deletions.
420 changes: 18 additions & 402 deletions AppMessage/AppMessage.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

1 change: 0 additions & 1 deletion AppMessage/AppMessage.xcworkspace/contents.xcworkspacedata

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions AppMessage/AppMessage/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import UIKit
import CloudKit
import EVCloudKitDao

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand Down
53 changes: 0 additions & 53 deletions AppMessage/AppMessage/CloudKit/EVCloudKitDataObject.swift

This file was deleted.

4 changes: 3 additions & 1 deletion AppMessage/AppMessage/Controlers/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import VIPhotoView
import MapKit
import UIImage_Resize
import Async
import EVCloudKitDao
import EVReflection

class ChatViewController: JSQMessagesViewController, UIActionSheetDelegate, UzysAssetsPickerControllerDelegate, MKMapViewDelegate {

Expand Down Expand Up @@ -167,7 +169,7 @@ class ChatViewController: JSQMessagesViewController, UIActionSheetDelegate, Uzys
if docDirPaths.count > 0 {
let filePath = (docDirPaths[0] as NSString).appendingPathComponent("\(id).png")
if let asset = item as? Asset {
if let image = asset.image() {
if let image = asset.File?.image() {
if let myData = UIImagePNGRepresentation(image) {
try? myData.write(to: URL(fileURLWithPath: filePath), options: [.atomic])
}
Expand Down
3 changes: 3 additions & 0 deletions AppMessage/AppMessage/Controlers/HomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ import UIKit

class HomeViewController: UIViewController {

override func viewDidAppear(_ animated: Bool) {
self.view.backgroundColor = UIColor.white
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import UIKit
import CloudKit
import Async
import EVCloudKitDao

class LeftMenuViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {

Expand Down
1 change: 1 addition & 0 deletions AppMessage/AppMessage/Controlers/NewsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import UIKit
import EVCloudKitDao

class NewsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import UIKit
import CloudKit
import Async
import EVCloudKitDao

class RightMenuViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
//CKUserIdentity or CKDiscoveredUserInfo
Expand Down
1 change: 1 addition & 0 deletions AppMessage/AppMessage/Controlers/RootViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import UIKit
import Async
import EVCloudKitDao

class RootViewController: UIViewController {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import UIKit
import Async
import EVCloudKitDao

class SearchViewController: UITableViewController, UISearchBarDelegate {

Expand Down
Loading

0 comments on commit 741ae5b

Please sign in to comment.