If you want to be able to loop thru the content of your custom Swift object, you need the Sequence protocol
Navdeep Singh article explains the working and requirements of this useful Swift protocol
https://medium.com/swlh/swift-sequences-fc388635c4af
Navdeep Singh article explains the working and requirements of this useful Swift protocol
https://medium.com/swlh/swift-sequences-fc388635c4af
No comments:
Post a Comment