Hey great videos, one thing i noticed was you said `You can only have one subscript for each type you are injecting`, because you aren't passing parameters. You actually can have parameters for subcripts example => `public subscript (safe index: Index?) -> Element? {`, but surprisingly enough, still limits limits yo to one subscript per type. Just thought i'd share.
I don't know if something has changed, but if I put in an Int subscript, I get no crash and it uses my version. I checked by using if index == atIndex - 1 which gives me an array with subscripts starting at 1. (XCode 15.3, iOS 17.4)
Hey great videos, one thing i noticed was you said `You can only have one subscript for each type you are injecting`, because you aren't passing parameters. You actually can have parameters for subcripts example => `public subscript (safe index: Index?) -> Element? {`, but surprisingly enough, still limits limits yo to one subscript per type. Just thought i'd share.
Oh man I did not realize that 😅 thanks for the comment. I’ll pin this so others can see it!
@@SwiftfulThinking You were ultimately still right, it still limits you to one even with the parameter label. Really enjoy the vids! Thanks
Just wanted to say you and your work is awesome. Count me as a fan Nick!
Amazing video once again Nick! You really are my favorite Swift/SwiftUI resource :)
Thank u, Nick :)
I don't know if something has changed, but if I put in an Int subscript, I get no crash and it uses my version. I checked by using if index == atIndex - 1 which gives me an array with subscripts starting at 1. (XCode 15.3, iOS 17.4)