Skip to content

Commit b47c0f1

Browse files
committed
use class protocol instead of objc protocol which is overkill
1 parent b8c62d9 commit b47c0f1

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

bk2ch06p265presentedViewControllerStoryboard/ch19p601presentedViewController/SecondViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Standard architecture for handing info from vc to presented vc...
99

1010
*/
1111

12-
@objc protocol SecondViewControllerDelegate {
12+
protocol SecondViewControllerDelegate : class {
1313
func acceptData(data:AnyObject!)
1414
}
1515

bk2ch06p272forcedRotation/ch19p601presentedViewController/SecondViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import UIKit
44

55

6-
@objc protocol SecondViewControllerDelegate {
6+
protocol SecondViewControllerDelegate : class {
77
func acceptData(data:AnyObject!)
88
}
99

bk2ch14p643ducking/ch27p912ducking/Player.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UIKIt
44
import AVFoundation
55
import MediaPlayer
66

7-
@objc protocol PlayerDelegate {
7+
protocol PlayerDelegate : class {
88
func soundFinished(sender : AnyObject)
99
}
1010

bk2ch14p653backgroundPlayerAndInterrupter/backgroundPlayer/backgroundPlayer/Player.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UIKIt
44
import AVFoundation
55
import MediaPlayer
66

7-
@objc protocol PlayerDelegate {
7+
protocol PlayerDelegate : class {
88
func soundFinished(sender : AnyObject)
99
}
1010

bk2ch14p653backgroundPlayerAndInterrupter/interrupter/interrupter/Player2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UIKIt
44
import AVFoundation
55
import MediaPlayer
66

7-
@objc protocol PlayerDelegate {
7+
protocol PlayerDelegate : class {
88
func soundFinished(sender : AnyObject)
99
}
1010

bk2ch16p687AVQueuePlayer/ch29p952AVQueuePlayer/Player.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UIKIt
44
import AVFoundation
55
import MediaPlayer
66

7-
@objc protocol PlayerDelegate {
7+
protocol PlayerDelegate : class {
88
func soundFinished(sender : AnyObject)
99
}
1010

bk2ch17p700PhotoKitImages/PhotoKitImages/EditingViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import OpenGLES
77
import MobileCoreServices
88
import AVFoundation
99

10-
@objc protocol EditingViewControllerDelegate {
10+
protocol EditingViewControllerDelegate : class {
1111
func finishEditingWithVignette(vignette:Double)
1212
}
1313

0 commit comments

Comments
 (0)