File tree 3 files changed +11
-7
lines changed
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
8
8
import Foundation
9
+ import UIKit
9
10
10
11
public class PView {
11
12
var props : [ String : String ] = [ : ]
@@ -212,7 +213,6 @@ extension String {
212
213
guard let doubleValue = Double ( self ) else {
213
214
return nil
214
215
}
215
-
216
- return CGFloat ( doubleValue)
216
+ return doubleValue
217
217
}
218
218
}
Original file line number Diff line number Diff line change @@ -47,10 +47,13 @@ public struct PamPushMessage {
47
47
let date = item [ " created_date " ] as? String
48
48
let isRead = item [ " is_open " ] as? Bool
49
49
var bannerUrl : String ?
50
+ _ = bannerUrl;
50
51
51
- if let flexView = FlexParser . shared. parse ( flex: flex) as? PContainer {
52
- if let img = flexView. childs [ 0 ] as? PImage {
53
- bannerUrl = img. props [ " src " ]
52
+ if let flex = flex {
53
+ if let flexView = FlexParser . shared. parse ( flex: flex) as? PContainer {
54
+ if let img = flexView. childs [ 0 ] as? PImage {
55
+ bannerUrl = img. props [ " src " ]
56
+ }
54
57
}
55
58
}
56
59
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <document type =" com.apple.InterfaceBuilder3.CocoaTouch.XIB" version =" 3.0" toolsVersion =" 18122 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" useSafeAreas =" YES" colorMatched =" YES" >
2
+ <document type =" com.apple.InterfaceBuilder3.CocoaTouch.XIB" version =" 3.0" toolsVersion =" 20037 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" useSafeAreas =" YES" colorMatched =" YES" >
3
3
<device id =" retina6_1" orientation =" portrait" appearance =" light" />
4
4
<dependencies >
5
- <plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 18093" />
5
+ <deployment identifier =" iOS" />
6
+ <plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 20020" />
6
7
<capability name =" documents saved in the Xcode 8 format" minToolsVersion =" 8.0" />
7
8
</dependencies >
8
9
<objects >
You can’t perform that action at this time.
0 commit comments