Member-only story

New features in Swift 5.1

Steven Curtis
3 min readJun 10, 2019

--

With the Beta version of Xcode 11 we now have access to these great new features.

Apple are now creating Swift only frameworks, so the excitement and development around Swift is really pushing forwards so there has never been a better time to either start using Swift or brush up with the fundamentals.

So let's get right in!

Module stability

You can now use third-party libraries without concern for the version of the Swift compiler they were created with. Module stability is similar to ABI stability at the compilation stage rather than at the execution stage. We now have a stable interface between modules.

Shared Swift runtime

Apps now use the runtime from the OS when it is available. If your App works on an older version of iOS the runtime will be bundled with your App. This means that your Apps size will be much smaller than ever before, and this gives a faster runtime for App (which is one of the advantages of iOS12).

Return from single-expression functions without the return keyword

You can now return from single expression functions, and you do not need the return function as it is inferred by the compiler.

--

--

No responses yet