Documentation Archive Developer
Search

SafariServices Changes for Swift

SafariServices

Modified SSReadingList
Declaration
From
class SSReadingList : NSObject {
    class func defaultReadingList() -> Self!
    init!()
    class func supportsURL(_ URL: NSURL!) -> Bool
    func addReadingListItemWithURL(_ URL: NSURL!, title title: String!, previewText previewText: String!, error error: NSErrorPointer) -> Bool
}
To
class SSReadingList : NSObject {
    class func defaultReadingList() -> SSReadingList?
    init()
    class func supportsURL(_ URL: NSURL) -> Bool
    func addReadingListItemWithURL(_ URL: NSURL, title title: String?, previewText previewText: String?) throws
}

Declaration
From
func addReadingListItemWithURL(_ URL: NSURL!, title title: String!, previewText previewText: String!, error error: NSErrorPointer) -> Bool
To
func addReadingListItemWithURL(_ URL: NSURL, title title: String?, previewText previewText: String?) throws

Declaration
From
class func defaultReadingList() -> Self!
To
class func defaultReadingList() -> SSReadingList?

Declaration
From
class func supportsURL(_ URL: NSURL!) -> Bool
To
class func supportsURL(_ URL: NSURL) -> Bool

Raw Value Type
From--
ToInt