-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObjectNeedle.swift
56 lines (34 loc) · 1.03 KB
/
ObjectNeedle.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// ObjNeedle.swift
// needlzapp
//
// Created by scoobydoo on 08-12-2017.
// Copyright © 2017 Spire Innovation. All rights reserved.
//
import Foundation
import CoreLocation
import UIKit
class Needle {
// **********************************
// PROPERTIES
// **********************************
var myLocation: CLLocation?{
willSet{
}
didSet{
// unwrap myLocation optional
if let thisLocation = myLocation{
// populate address string varaibles
var myAddress = Address(location: thisLocation)
} else {
// error with location
}
}
}
var myMap: UIImage?
var myPhoto: UIImage?
var myLat: String = ""
var myLon: String = ""
var myAddress: String = ""
let time = DateFormatter.localizedString(from: Date(), dateStyle: .short, timeStyle: .short)
}