Hi everyone,
After watching the WWDC26 What's New in Swift session, I wanted to learn more about Swift's ownership system. I did some research on SE-0516 and the new Iterable protocol, and I wrote an article about it.
In this post, I tried to explain the proposal with simple examples and mental models. The article covers:
- Why we need Iterable and why Sequence is not always enough.
- How borrowed iteration works with Span.
- Support for non-copyable types and compiler optimizations.
I wanted to share this to help others understand the new concept, and also to check my own understanding.
You can read the article below here
I would love to hear your thoughts, feedback, or corrections.
Thank you ![]()