CommentComment

Like Marco Eidinger, I was also reminded of the Swift Snippets feature in Swift Package Manager as I read the post on VS Code that I linked to last week.

He has a good write-up of what it does but concludes that the outlook for the feature is pessimistic due to low adoption rates within Apple-authored packages.

I have a different view, and I believe this feature has a bright future! Even though it technically shipped with Swift 5.7, you need to enable it with an environment variable, and I’m not sure that counts as “shipped”, does it? I certainly think it’s too early to judge it.

There was a time when we’d not know about upcoming features of Xcode until Craig Federighi stepped on stage at WWDC and unveiled the beta of a new major version. However, since the Swift language, Swift Package Manager, and other core tools such as DocC are open-source, we get glimpses into potential enhancements to Xcode that would have been secret before.

Even when swift package learn no longer needs enabling with an environment variable, it will be too early to judge the feature. I can’t wait to see the integration with DocC work inside Xcode (or on the web? 🤯) or how it will fit into Swift Playgrounds. It could even be that Xcode 15 or 16 might open a “Package Playground” instead of the current “Add Package” window that lets you search for and then experiment with a package before hitting that “Add Dependency” button.

I also see loads of potential for community tools, like the VS Code integration mentioned in Adam’s post or the Swift Package Index’s “Try in a Playground” feature.

Most importantly, the concept of including snippets of code that demonstrate what a package does is really powerful, and being able to guarantee those snippets always work with continuous integration will be transformative. Get ready to say goodbye to README files that include code snippets that may or may not work.

I can’t wait to see what features Apple is working on behind the scenes that leverage package snippets.

Dave Verwer  

News


Code




Design

Books

Jobs

iOS SDK Developer @ Stream – Do you want to work on an open-source chat SDK used by hundreds of high-profile companies and startups that impact billions of users? If you are a product-minded engineer and care about software quality, apply on the link below. – Remote (within European timezones) or on-site (Netherlands)

Freelance Interview Engineer (US Only) @ Karat – We're dedicated to improving access in tech. If you are too, join us as a Karat Interview Engineer. As such, you'll conduct technical interviews of developers like you on behalf of our hiring clients (including Duolingo, Indeed, and more) using the Karat Platform and its data-tested questions. – Remote (within US timezones)

Senior Swift (iOS) Developer @ Nord Security – iOS developer has an essential role in growing the NordPass product and a lot of freedom to make an impact. There is plenty of space for experiments and constant improvement. You would be a part of a very ambitious and enthusiastic team which gives a lot of support and encouragement every day. – Remote (within European timezones)

Senior iOS Engineer @ Doximity – Doximity, the medical network used by over 80% of US clinicians, is hiring passionate iOS engineers (fully remote!). Come be part of an amazing product team + work on an app that is constantly evolving. Use your skills (Swift, TCA, Combine) to be an integral part of our growing telemed feature. – Remote (within US timezones)

Native iOS Engineer @ MartianCraft – Are you someone who enjoys collaboratively solving challenging problems? At MartianCraft, we work together to create innovative software for our clients. You’ll always be surrounded by the best and brightest in the industry. – Remote (within US timezones)

R&D OSS Engineer @ DockYard – DockYard is a digital product consultancy, solving complex problems for enterprise clients like Netflix and Apple. We are an active OSS contributor currently working on a new naitve app framework. We're seeking to hire a SwiftUI Engineer to work within our R&D department to build out the libraries. – Remote (within US timezones)

 

Is your company hiring? I’d love it if you passed this link on to your hiring manager. It’s free to post a job that will get seen by thousands of developers, so there’s nothing to lose! 👍

 

And finally...

Some singers can smash glass with their voices, and some singers can… 💥