nsscreencast / comments

Public comments on NSScreencast.com
0 stars 0 forks source link

Storyboard Initializable #169

Open subdigital opened 3 years ago

subdigital commented 3 years ago

Written on 01/30/2018 07:34:59

URL: https://nsscreencast.com/episodes/273-storyboard-initializable

subdigital commented 3 years ago

originally written by Murray on 06/04/2017 16:37:16

Great episode! I'm wondering why storyboardIdentifier is only in the extension and not first declared in the protocol?

static var storyboardIdentifier: String { get }

subdigital commented 3 years ago

originally written by subdigital on 06/04/2017 16:38:49

(Hey Murray!) You're right, it should be!

subdigital commented 3 years ago

originally written by Murray on 06/11/2017 17:43:28

So could the initial protocol declaration be empty?

subdigital commented 3 years ago

originally written by subdigital on 06/11/2017 20:45:11

Indeed it could, provided you only ever wanted to call this on a UIViewController, which seems like a reasonable assumption.