@twostraws
Make Xcode's Assistant aware of your ViewModels, Views, etc:
defaults write .dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View" "Screen"
Quite handy when working with SwiftUI:
Looking for the definitive resource to learn how to use Firebase in iOS apps?
I spent 100+ hours to build this FREE interactive tutorial that walks you through replicating Apple's reminders app using SwiftUI and Firebase:
Waiting for WWDC and not sure how to spend your time?
How about learning how to use SwiftUI and
@Firebase
with this interactive tutorial!
Running just shy over 5 hours, this should give you a head start for next week.
It might seem like a small thing, but this is actually a pretty big deal. Thanks for listening to our feedback, and bringing bindable list items to SwiftUI,
@luka_bernardi
,
@natpanferova
, and team!
#WWDC21
#SwiftUI
With all the information Apple shared about async/await and structured concurrency at
#wwdc21
, it easy to get lost. So here is a quick guide to get you started. /1
If you'd like to learn how to build SwiftUI components, check out this hands-on interactive tutorial I built for you!
You will learn:
- Different techniques for composing views
- How to make your views customisable
- Making your views interactive
- And how to style your views
For a chance to win a signed copy of my book “Asynchronously Programming with SwiftUI and Combine”, come to my workshop “Building Reusable SwiftUI Components” at
@IOSDEVUK
(starting at 1pm).
Just finished uploading the slides for my talk "Building Reusable SwiftUI Components" that I gave at
@SwiftConf
.
Thanks everyone who attended, and all the inspiring conversations we had about views, components, and architecture for SwiftUI apps!
Also, for a chance to win a signed copy of my book “Asynchronous Programming with SwiftUI and Combine”, come to my talk “Building Reusable SwiftUI components” at
@swiftheroes_it
this Friday, 15:15.
When building UIs in SwiftUI, you can easily end up with a large chunk of code that is hard to understand.
Here are three simple things you can do to fix this:
Learn how to build re-usable SwiftUI components in my talk at
@AppriseConf
on March 23rd in Oslo!
For a chance to win a hand-signed copy of my book "Asynchronous Programming with SwiftUI and Combine", like and RT this tweet, and attend my talk.
Calling all Firebase developers - we want to hear from you! Did you build something amazing using
@Firebase
? Found a creative use for one of our APIs? Come write for us and the community at .
Details:
I remember my first day at the
@google
office in London (Belgrave House on Buckingham Palace Road) like it's yesterday.
A lot of things have changed in the past 10 years, but I am still as excited about my job as I was back then. Maybe even more! Over the years,...
Join me on a journey to replicate the iOS Reminders app using SwiftUI and 🔥
@Firebase
! In the first part of this series, I'll show you how to build the UI using SwiftUI and Combine:
Someone just said something really nice about a piece of work of mine, and it made me feel sooo good 🤗
Here's your reminder to give praise to people when they did something nice. It doesn't cost you, but it will light up their day ☀️
Typing calls to methods with many optional parameters used to be a pain. With Xcode 14, this is now much easier, thanks to fuzzy code completion - check this out:
Inspired by
@merowing_
's talk about
@Injection4Xcode
at
@swiftheroes_it
, I decided to see if this works for
@Firebase
(particularly Firestore) as well. Check this out: hot reloading a SwiftUI app!
With these time savings, I think I can call it a day. Thanks, Krzysztof and John!
In Not only Swift issue
#49
:
🧠 Gemini LLM in your Swift apps
🛡️ Secure code with Typestate
👀 Trigger property observers
🔁 Overload SwiftUI's onSubmit
⌨️ Xcode keyboard shortcuts
🔑 Don't ship API keys!
🤝 Life of an Open Source dev
👀 A little secret
First presentation of the day
@swiftheroes_it
:
@icanzilb
takes us on a roller coaster of UI development through the years, starting with text-based UIs: “A 100% SwiftUI app”
🔥 Quick Firebase Tip 🔥
Most of Firebase's API calls are asynchronous. If you're using Swift, you've got three options to make asynchronous calls:
1) Trailing closures
2) Combine
3) async/await
Curious to learn more? Read on 👉🏻 /1
👋🏻 Hey
#visionOS
developers! If you're trying to add Firebase to your visionOS project, and the compiler just shows you a long list of errors, don't fret!
Instead, set FIREBASE_SOURCE_FIRESTORE=1 before launching Xcode:
When building UIs in SwiftUI, you can easily end up with a large chunk of code that is hard to understand.
Here are three simple things you can do to fix this:
Someone in my stream mentioned
@hashnode
as an alternative to Medium, so I thought I’d give it a try. Here’s the result of mirroring my Gatsby-powered blog: - let me know what you think!
#SwiftUI
#Firebase
🔥 Quick Firebase Tip 🔥
Most of Firebase's API calls are asynchronous. If you're using Swift, you've got three options to make asynchronous calls:
1) Trailing closures
2) Combine
3) async/await
Curious to learn more? Read on 👉🏻 /1
SwiftUI's view styling APIs are one of the most underappreciated parts of the framework. Learn why they are much more powerful than you might have thought.
Finishing up my script for “Getting Started with Firestore on iOS” before heading to the studio at Google’s London campus at King’a Cross. Can you spy Sparky?
I know I’m not the only one who is super excited about this milestone - *all* of Firebase’s products can now be integrated using Swift Package Manager.
Calling all Swift developers - if you're interested in using Swift in Cloud Functions for Firebase, vote on this UserVoice idea suggested by
@mortenditlevsen
:
SwiftUI can render basic Markdown, but sometimes you need more advanced features, like tables, headings, blockquotes, and more.
@gonzalezreal
wrote a fantastic library for this: MarkdownUI.
Check it out:
Can you map a struct to a Firestore document and save it to a collection in a single line of code?
Reply here with your solutions and come back tomorrow to compare notes!
Did you know Firestore supports Codable out of the box, making mapping documents to Swift types a one-liner?
Interested to learn more? I’m working on a comprehensive article - feel free to follow along as I write it:
So I condensed all the cool new pieces of information from this conversation and some additional research into a blog post. Thanks to everyone who contributed! Enjoy:
Some exciting things coming in Swift 5.5. For example, here are some refactorings to help you migrate your callback-style code to using async/await.
Great work by
@_hamishknight
!
Having trouble catching up on all of the 175 videos Apple released at WWDC23?
@WWDCNotes
is here to help by providing written summaries of many of the sessions.
SwiftUI is constantly evolving: actionSheet has been deprecated, but confirmationDialog offers a much better API.
Learn more about confirmation dialogs and interactive dismissal (and how to prevent it):
When building UIs in SwiftUI, you can easily end up with a large chunk of code that is hard to understand.
Here are three simple things you can do to fix this:
My post about error handling in Combine is taking shape! Currently at 14k characters, and there’s still ground to cover. Interested in reading a preview? If this tweet gets at least 14 likes, I will share a preview link. I might or might not write about incremental back off…
@migueldeicaza
I'm working on a blog post about error handling in Combine that shows some techniques for exposing errors to the actual users (in the screenshot above, this is mostly for the developer's benefit).
ICYMI: Firestore supports Codable. No need to map your documents manually. Codable also gives you all the flexibility you need (changing attribute names, mapping only partial documents, etc.). Full details in our comprehensive guide:
📑💯 Friends don't let friends map their Firestore documents manually.
In this episode of
#FirebaseBytes
,
@peterfriese
shows you how Codable can help map your documents, with code that's easier to read and less error-prone.
Start learning →
🎁 We're GIVING AWAY three tickets to our workshop "SwiftUI & Firebase" at plSwift next week!
For a chance to win, like and RT this tweet - we will draw the lucky winners tomorrow.
Details about the workshop:
Firebase & SwiftUI workshop by
@peterfriese
and
@coelho_dev
- authentication
- fetching data
- real-time sync
- security rules
and much more, all using Combine and async/await
If you're using xcodes to download and install Xcodes (you should!), you'll want to make sure to install aria2 as well. This will use up to 16 parallel connections, making the process **a lot** faster.
See the docs:
iOS developers - I'm curious: do you run a personal blog, and if so, where do you host it?
Feel free to reply with a link to your blog (after voting, of course)!
@Firebase
Let's replicate the iOS Reminders App using SwiftUI, Combine, and
@Firebase
🔥! In part 2 of this series, I'll show you how to store your data in ☁️ Cloud Firestore, and seamlessly log your users in with Firebase Anonymous Authentication 🕵🏻♀️