mvcgen 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mvcgen/version.rb +1 -1
- data/lib/templates/default/swift/Controllers/Notifications/Cells/NotificationCell.swift +3 -4
- data/lib/templates/default/swift/Controllers/Profile/Cells/DescriptionCell.swift +0 -7
- data/lib/templates/default/swift/Helper/APIManager.swift +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d6616c193c1773f239ef20cb2109d337d0521aa
|
4
|
+
data.tar.gz: b848d1cec10d3fd7d40c1a7db97a752d3252f4a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6659f1937693b087927d8e6214f03d62b33aa989bf333970ea3feaf613bbe57705dfc16212457ee4ebdf1822a0e8c46c42563b56041208c40c2bc83a5f70ce73
|
7
|
+
data.tar.gz: 7effc09cd774283a86e315bf445a7f5851b7c9138cb18575b7333b985ebedbb2643e299b8b8a482cdd8e071984a1b6cf4e0a8b4c37b3b2e7e3c8b90ce17686ec
|
data/lib/mvcgen/version.rb
CHANGED
@@ -59,10 +59,9 @@ class NotificationCell: UITableViewCell {
|
|
59
59
|
|
60
60
|
self.newNotificationView.isHidden = notification.read
|
61
61
|
|
62
|
-
let region = Region.
|
63
|
-
let dateB = DateInRegion(
|
64
|
-
|
65
|
-
self.notificationDate.text = colloquial
|
62
|
+
let region = Region.local
|
63
|
+
let dateB = DateInRegion(notification.createdDate as Date, region: region)
|
64
|
+
self.notificationDate.text = dateB.toRelative()
|
66
65
|
|
67
66
|
// In case you need to config something by notif type:
|
68
67
|
// switch notification.notifType{
|
@@ -15,12 +15,5 @@ class DescriptionCell: UITableViewCell {
|
|
15
15
|
|
16
16
|
@IBOutlet weak var descriptionTextView: UITextView!
|
17
17
|
|
18
|
-
func configure(with userHistory: UserHistory) {
|
19
|
-
|
20
|
-
self.destinationLabel.text = userHistory.name.capitalized
|
21
|
-
self.destinationBackgroundImage.kf.indicatorType = .activity
|
22
|
-
self.destinationBackgroundImage.kf.setImage(with: URL(string: history.thumbnailUrl), options: [.transition(.fade(0.2))])
|
23
|
-
}
|
24
|
-
|
25
18
|
}
|
26
19
|
|
@@ -254,7 +254,7 @@ class APIManager {
|
|
254
254
|
var parms: [String : Any] = [:]
|
255
255
|
|
256
256
|
// TODO check utc
|
257
|
-
parms["date"] = Date().
|
257
|
+
parms["date"] = Date().timeIntervalSince1970*1000
|
258
258
|
|
259
259
|
Alamofire.request(APIHelper.sharedInstance.servicesURL + Endpoints.readNotifications, method: .post, parameters: parms,
|
260
260
|
encoding: JSONEncoding.default,
|