Xcode auto generated this swift line for a protocol - I just started the class and Xcode complete with all the protocol functions:
func `self`() -> Self {
<#code#>
}
EDIT: Here is the whole code:
import Foundation
import ImageCaptureCore
class myDeviceBrowserDelegate : ICDeviceBrowserDelegate {
func deviceBrowser(_ browser: ICDeviceBrowser, didAdd device: ICDevice, moreComing: Bool) {
<#code#>
}
func deviceBrowser(_ browser: ICDeviceBrowser, didRemove device: ICDevice, moreGoing: Bool) {
<#code#>
}
func isEqual(_ object: Any?) -> Bool {
<#code#>
}
var hash: Int = 0
var superclass: AnyClass?
func `self`() -> Self {
<#code#>
}
func perform(_ aSelector: Selector!) -> Unmanaged<AnyObject>! {
<#code#>
}
func perform(_ aSelector: Selector!, with object: Any!) -> Unmanaged<AnyObject>! {
<#code#>
}
func perform(_ aSelector: Selector!, with object1: Any!, with object2: Any!) -> Unmanaged<AnyObject>! {
<#code#>
}
func isProxy() -> Bool {
<#code#>
}
func isKind(of aClass: AnyClass) -> Bool {
<#code#>
}
func isMember(of aClass: AnyClass) -> Bool {
<#code#>
}
func conforms(to aProtocol: Protocol) -> Bool {
<#code#>
}
func responds(to aSelector: Selector!) -> Bool {
<#code#>
}
var description: String = ""
}
but its giving an error: Method cannot be an implementation of an @objc requirement because its result type cannot be represented in Objective-C
How do you clear the error? thanks