Read the transcript
Jeroen Leenarts: Hi, and welcome
to the 71st episode of my
podcast. My name is Leenarts.
And I've been developing
software over 20 years
developing iOS apps for over 10
years, and I'm running that code
cash for over nine years. If
you're an iOS app developer, you
should listen to my podcast
because it will keep you updated
on interesting articles,
conferences and events you might
not have heard about. In this
episode, I'm going to talk about
what's new in Swift 5.6.
Building a custom combine
operator for exponential back
off UI Kit application with
Swift UI views, using the Swift
UI view in UI Kit app as an
individual component, supporting
all SDK versions with Swift, and
of course, daanish, Monday
morning tweet. On top of that,
I'm going to mention the Swift
code and a Cocoa Touch meetup
that's taking place next week.
So let's get started. This
week's been a busy week for me,
I've been preparing a workshop
that I'm doing tomorrow, I'm
actually doing a workshop for
stream at try Swift. So looking
forward to that one still need
to do some preparation today.
And tomorrow morning, which is
always the case with these
content creation things you
always keep on tweaking and keep
on adding things last minute,
just do you know, you can just
make it a little bit better. At
least that's what help. So I'm
looking forward to this one,
probably I'll be a little bit
nervous when we get started. But
once the show was on the road, I
think this workshop will work
out so brilliantly. There's no
tickets available anymore. But
once the workshop has been done,
I will have a surprise few
available in regards to content
that's been created for this
workshop. So keep an eye out on
my Twitter. And who knows maybe
it has some interesting news,
either tomorrow, or maybe later
in this week. On top of that,
the weather is really improving
hair in the Netherlands, a lot
of sunshine, it's still very
cold, but at least the sun is
out and just walking outside
with like two degrees Celsius in
the sun. It's already really
nice. And you only need to bring
my hoodie to keep myself warm
enough. So that's good as well.
Conference preparations are
ongoing as well. So I'm making
sure that I have all my ducks in
a row in that regards. By the
looks of things I'll be
attending swift heroes tech
around in Belgium threesixty
hidef, app DEF CON, and swift
leads by Adam. So who knows,
maybe some more will be added.
But there's a conference I did
want to mention specifically, I
will not be attending that one
myself, because it's too close
to another conference that I'm
actually going to, and that's
swift comm. Swift Khan just
announced that they are
officially back in 2022. So the
conference will take place in
Cologne, that's in Germany on
August 17. And 18th. Highly
recommend it. And they already
have some interesting speakers
lined up for their event. If you
want to know more about Swift
calm, you can go to Swift
comm.com. So a little over a
month out of Swift heroes
looking forward to that one,
really excited. And yeah, just
hoping for the best with COVID
that it's doesn't flare up
towards the summer, but things
are looking good. And things are
improving every week in the
Netherlands in that regard.
familywize, my daughter is going
to check some interesting things
for her for her profile. If
you've listened to a podcast
before you probably know a
little bit about that. So
hopefully this will work out and
I can share more on this. In one
of my next episodes. My son, we
just had a week long vacation
with with the family which
stayed at home. But he was
really looking forward to going
back to school. And the
immediately once he saw his
teacher, he mentioned to her
that he missed her. So that was
great to see as well. And let's
hope he keeps on enjoying school
as much as he is right now on
his fourth year. Yeah, let's
just get started with the topics
of this week. First article.
What's new, in Swift 5.6. Yeah,
this is an article that's too
too good not to mention, it's if
you're a little bit into keeping
up to date with iOS content.
This is one that you probably
have already seen. It's an
article by Paul Hudson. And it's
an overview of what's new in
Swift 5.6. I can't go over all
the details that's in article
but I just say
check this article read up on
it, because this is stuff that's
coming your way in a future
Xcode update. So check it out.
And any content by Paul is
always good in my book. So make
sure to keep an eye on his
website if you are not doing
that yet. So the second article
is by Peter Frieza. It's called
building a custom combined
operator for exponential back
off. So this is an article about
using combined and doing
exponential back off. So what is
exponential back off it
basically means if something
fails, then you try again, after
certain duration. If that fails,
then you try again after double
the waiting time before trying
again if again fails, you double
the waiting time again. So it's
a nice overview of how you can
use combined to add more
complexity to a re Try operation
that you need to do, for
instance, for networking, and
it's another one of those good
articles that Peter can write.
And yeah, some useful tidbits in
there. And definitely check it
out. If you want to use combine
more often for networking. Then
there's an article by Thomas
fatter, again, keep on
mentioning articles where this
guy over and over, probably
because he's he's onto something
with his blog, augmented co.io.
So the article that he wrote is
called UI kid navigation with
Swift UI views. It's a nice
overview of how you can use
Swift UI, while still hanging on
to the UI Kit navigation that's
been working so well for us over
the years, because one of the
challenges that I see people are
having when using Swift UI is to
make sure that their navigation
structure works decently. And
they just do that by far falling
back on UI kit, navigation, and
then embedding the Swift UI
views in the UI Kit structure.
So this article is in good
overview of this practice. And
there's an example projects
attached that you can have look
at and copy some some tidbits of
this code to your own code base,
if you want to apply this
pattern to your code as well.
Then there's an article by
Giovanni Monaco, using the Swift
UI view in UI Kit app as an
individual components. So the
Swift UI framework was created
in 2019, or it was released in
2019. And in just a few years,
it's been looking like it's
going to be the future of iOS
development. But it's also true
that UI Kit has been around
since 2008. So especially if you
have been developing for a few
years, you will have apps
developed but UI kit, right? So
why don't use all that swift UI
code has to offer to give your
app a makeover, why not use all
that swift UI. Since swift UI is
the future of iOS development,
it's good to sort of like get
started. And what yovani suggest
is that you start replacing bits
of your code base with Swift UI
based pieces, and but setting it
up in such a way that the Swift
UI piece of code is usable as a
sort of component. So that you,
if you use the same structure on
different locations in your code
base, you can reuse this bit of
code or this component, really,
so that you also make sure that
you don't create too much
duplication in your code base.
It's a nice interesting way of
actually using Swift UI in UI
Kit app in interface builder,
which is a fun exercise. So any
which way that you look at it.
And it's, it's a good way of
looking at how you can integrate
swift UI and UI kits as well. So
couple this with UI Kit
navigation for swift UI article
that was the previous article.
And just doing these two things,
I if you start doing this, I
think you're well on your way on
upgrading your existing code
base for swift UI base future,
while gradually transitioning
yourself over to this new
future. And then the final
article is on chime hq.com.
It's written by a mosquito. I
hope I pronounced that correct,
Matt. So I'm supporting older
SDK versions with Swift, the
Swift package manager has made
it easier than ever to make
library with a wide
compatibility by default, Swift
package manager even supports
Linux, right? So however, it can
be quite tricky to support
different major iOS and Mac OS
SDK versions. Swift provides a
number of conditional complex
conditions that you can use, and
that will help you try and
achieve this goal. But there's
currently no way to determine
which SDK you are building
against, or maybe there is. So
in this article, Matt goes into
some details of things that you
can do to make sure that you
have a code base that can
actually compile in a way that
is predictable to you.
irregardless of what specific
SDK, somebody is compiling your
package against this could
indeed mean that you would
deliberately fail the
compilation if your code base is
not working, or should not be
available on a specific SDK
version. But if you want to
support older SDKs versions,
then yeah, there is some things
that you can do. And this
article, gives you some insight
of things that you can try. And
that's the final article of this
week. There's also a nice
Cocottes meetup happening next
week. So it's it's an it's the
first in person meetup back.
Okay, so no, of course, the
event itself, the presentation
will be live streamed, so more
details if you sign up on their
meetup page, but I have to check
when not to connect to this
meetup myself, but I'm
definitely looking forward to
going to inperson meter with
cokehead Snell again. The issue
that I'm facing is making sure
that I have somebody available
to take care of my kids while
I'm out of my house. Going to
This, this meetup. And yeah, in
this case, it definitely is like
kids when going to a meetup. So
I hope I can put something
together and make sure that I'm
available to go to this meetup.
Next week, so otherwise, I'll be
watching the live stream. And
then there's done nice morning
morning tweets. So yeah, a lot
of things have already been
posted by people on this. So
there's Pawel who's cannot focus
on anything. job related. He's
living in Poland. So there's
some some big things happening
in the world right now that we
are all very much aware of. And
then there's Christian Kurosaki.
Yeah, he's also going to the
Polish Ukrainian border later
this week to give free
transportation for refugees. And
he will also go to my wash out
to pick up a few old MacBooks
and PC laptops given by friends
for Ukrainian orphans that are
now in a local orphanage in
loads. So he's also not able to
focus on work on code related
things, but he's doing whatever
he can to, to make a difference
in this horrible situation
that's happening in the Ukraine.
And then there's a couple more
cards, he planning on finishing
the review process of his 100
days of stretch, why and maybe
attempt to pass the final exam
on Sunday. And he also wants to
learn some Python syntax. And
Dominic girdle, is building his
new app pill, which lets you add
medication and set
notifications. It also shows you
whether your newly added
medication has some interaction
issues, which are already saved
medications. So he's building
and he's trying to figure out
where this is viable app idea.
And then there's Sahil. He's
going through the ultimate
perfect portfolio series by
Paul. And yeah, looking forward
to his results. And then there's
an article on developer. Today
he's publishing an article about
the NEC member look up an
interesting topic in Swift's
attributes. I don't think that
I'm aware of this article yet.
potica? Did you add it to the
iOS dev directory. So that's
always a good idea, if you have
a blog, or some other video
content, is to put it on day
four verse iOS, def directory,
it's a pull request away. And
then there's a lot of people in
the iOS community that gain
visibility on your content,
because it does look like an
interesting piece that you're
writing there. And just keep at
it. And that's it for this week.
These are the links and articles
I wanted to mention. Something
that's happening this week is
also the Apple event. That's I
think, on Tuesday, and I'm
planning on having a Twitter
space with Stefan again on on
Wednesday about this new app,
basically, about the new stuff
that's being announced.
Hopefully, on Tuesday. It's kind
of weird, getting excited about
something technology in Apple
related. Consider world
circumstances. But yeah, I do
think that it's good to be able
to enjoy those things, even
though there are some issues in
the world. So right now. Enjoy
your week. And good luck with
all the projects and code bases
that you're working on. Talk to
you again next week.
If you have any feedback, please
let me know through Twitter. I'm
just a DM OA. You can also add
mention me at app Force One. And
I always look forward to getting
your feedback and learning on
what you are working on and any
challenge that you might be
facing. So keep it up. And
definitely review me on any
podcasting platform that you
listen to because it really
helps spreading the word on my
podcast. Talk to you again next
Unknown: week.