Fixed unit test and problems running when being bridged to objective-c
This commit is contained in:
parent
0f4b1ba546
commit
d4035ffdf4
|
|
@ -15,7 +15,7 @@ public class SKLocalPhoto: NSObject, SKPhotoProtocol {
|
|||
public var photoURL: String!
|
||||
public var shouldCachePhotoURLImage: Bool = false
|
||||
public var caption: String!
|
||||
public var index: Int?
|
||||
public var index: Int = 0
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@
|
|||
|
||||
import UIKit
|
||||
|
||||
public protocol SKPhotoProtocol: NSObjectProtocol {
|
||||
@objc public protocol SKPhotoProtocol: NSObjectProtocol {
|
||||
var underlyingImage: UIImage! { get }
|
||||
var caption: String! { get }
|
||||
var index: Int? { get set}
|
||||
var index: Int { get set}
|
||||
func loadUnderlyingImageAndNotify()
|
||||
func checkCache()
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ public class SKPhoto: NSObject, SKPhotoProtocol {
|
|||
public var photoURL: String!
|
||||
public var shouldCachePhotoURLImage: Bool = false
|
||||
public var caption: String!
|
||||
public var index: Int?
|
||||
public var index: Int = 0
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
|
|
|||
Loading…
Reference in New Issue