Added a basic Markdown mode to my Swift editor prototype! πŸ˜€

This'll be super useful for writing Swift articles, since I can see the syntax highlighted code right in the editor (even for inline code!). Going to use this to write this week's article on Sunday! πŸš€

Fine tuning the content (and animations!) of my upcoming talk "The Lost Art of System Design" πŸ˜€

Premiere on Monday at the Swift & Fika conference! πŸŽ‰ It will also be recorded and available for everyone later πŸ‘

I'm now using my Swift editor to work on my Swift editor πŸ˜…

Added continuous evaluation & auto-print to my Swift editor prototype! πŸ˜€

It now runs the Swift compiler on a background thread for every new line, and wraps all assignments in closures that also print their result πŸ‘ It's getting closer & closer to becoming a full Playground πŸš€

Added a few more features to my Swift editor prototype πŸ˜€

πŸ€– Autocomplete of local symbols, keywords & system frameworks
⚑️ Automatic completion of "" + {}
πŸ“ Automatic indentation on new lines

Still just a prototype, but it's quickly starting to become a quite nice editor πŸš€

My Splash-powered Swift editor can now compile & run code, and show the results - Playground-style πŸš€ Still a <1 hour prototype, but I'm starting to think that this has some potential πŸ˜€

One really nice benefit of Swift multiline string literals - even for single lines of text - is that they don't require quotes to be escaped πŸ‘ Perfect when working with things like HTML, or creating a custom description for an object πŸ’―

Thought I'd also open source this little script, that makes it much nicer to use the Swift Package Manager - by making the most common commands a lot less verbose, and adding commands like 'install' and 'init-cli' πŸ‘

Hope you'll find it useful πŸ˜€

Splash + NSTextView = Super fast & lightweight Swift editor ❀️

Maybe this should be my next project? πŸ˜€

Want to see my new Swift syntax highlighter in action? πŸ˜€

I've published a version of "Model controllers in Swift" that uses it - check it out and let me know what you think πŸ‘ I'm planning to open source the syntax highlighter tomorrow! πŸš€

Fine tuning my new Swift syntax highlighter - which can be used to highlight code for a blog post or to generate code images (like this one) πŸ˜€

I've decided that I'm going to open source it! I've had way too much fun working on this to keep it to myself πŸ˜… Coming this week! πŸš€

While it's very common in functional programming, the "reduce" function might be a bit of a hidden πŸ’Ž in Swift. It provides a super useful way to transform a sequence into a single integer value πŸ‘

More about transforming collections:

When I use Codable in Swift, I want to avoid manual implementations as much as possible, even when there's a mismatch between my code structure and the JSON I'm decoding.

One way that can often be achieved is to use private data containers combined with computed properties πŸ‘


Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!