Fixed unit test and problems running when being bridged to objective-c

This commit is contained in:
Kevin Rummler 2016-05-14 20:05:05 +02:00
parent 0f4b1ba546
commit d4035ffdf4
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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()