Xcode 15 beta is here. Today we are going to explore the newest advancements in productivity
and performance found in Xcode 15. Let's uncover the enhancements to code completion and Xcode
previews gain insights into the bookmarks navigator and delve into the streamlined
source control process. We have a lot to cover, so let's dive deep and find out what's new in
Xcode 15 Beta. And if you want to find out even more about Xcode 15 of some features go ahead
and check out SwiftUI Nation, my community. You can join at store.developer.com/community
and today we are going to talk about what's new in Xcode 15 beta. So you want to download Xcode 15 beta.
Check out the video that I made previously. It should be somewhere over here also and let's just
open it up. So let's double click on here and let's create a new project. Let me resize this and make
sure that you select iOS and app and let's click on next right over here and under product name
my first one, okay. New thing here under storage. You can select Swift Data, Core Data or of course
a none. We are going to select none for now but make sure you SUBSCRIBE to the channel because we
are going to dive deep into Swift Data. I'm going to have a series on this soon. So let's click on
next right over here. Let's drop it somewhere and make sure that you select Source Control, create
git repository on my Mac because we are going to have some new stuff over there too. Okay!
So as you can see it looks exactly the same. So let's dive deep into the new stuff. First is,
well basically my very favorite one is the quick actions. So if you hit Command + Shift + A the quick
actions bar will pop up and then you can just search anything and just go maybe content view or
what whatever you'd like and you can search for it and you can just simply jump to line.
It's so, so super fun to you use, okay. That's a quick actions. Next up and this is really a new.
The Bookmarks Navigator. You see we have something new right over here and you can bookmark certain
parts of your code. Of course we previously had uh something like to do's but now it's gotten even better.
So you could just either on this ellipsis button and then just bookmark a
line or a file but let's just see. I'm going to bookmark the content view struck. So right click
on it and we could just bookmark the whole content for you dot Swift or the content view a swift line 10.
So I will just do that and as you can see now I have a new bookmark right over here.
I'm also going to bookmark maybe the text. It doesn't really a matter for the sake of this tutorial but
now you can see that we have two bookmarks right over here. I'm going to remove the canvas for now
as you can see here we have our bookmarks you can click right over here, double click on it
and you could just edit the description and let's just see a view and you will see that
here is our view and then right click on it again edit the description and you can see let's say a
text or whatever you see that's a good fit for your bookmark name. Now you can also use this as
a kind of a to-do list where you can just check the one that you have completed or you could
just simply delete the bookmark all together and then you know you don't have anything there.
Now let me just add that bookmark in again. So what you can also do is just select all of them
and then you can just create a new group from selection and just name it I don't know to do's.
But most probably you are going to name this much more appropriately according to whatever
these bookmarks may mean to you. So these bookmarks are really, really fun to use. I highly recommend.
Are you a SwiftUI developer looking to stay ahead of the curve and master the latest advancements in this
cutting-edge framework? Look no further than SwiftUI Nation. The Ultimate Community for SwiftUI
enthusiasts like you. Join us in our weekly Zoom events where we dive deep into SwiftUI latest
features, share Insider tips and tricks and foster collaborative environment for knowledge exchange
among talented developers. Don't miss out on the opportunity to enhance your SwiftUI skills and
connect with like-minded professionals. Join SwiftUI Nation today at store.rebeloper.com/community
and unlock your true potential in the word of SwiftUI development. Next up is bookmarks inside
search. So let's just go into the search and let's just search for the content maybe for the content
and here we go. We have our searches for the content. If we right click on it you can bookmark
this find content. So we can just do that. Add it to bookmarks and now you see right over here we have
a Content search and if you are going to update that search or any other bookmark you can just
click on the refresh right over there and it will just refresh the bookmark for you. Of course you
can just move this search into maybe a searches group or you know it's a relatively
simple to gather all of your bookmarks into these groups, okay. So next up is something new in the
Swift language and the Xcode goes with it it's Swift the Macros and here it is. It's hash preview.
Let's just put back the canvas right over here and as you can see here we have our preview of our
content view. Now if we add another one let's just copy and paste that. We have another preview.
As you can see, two previews side by side. Also you can add second name to your preview which is really,
really welcomed addition. Those are previews and there are a lot to talk about macros. Go ahead and
SUBSCRIBE again to the channel because I'm going to release videos on these new topics also. Next up
is the documentation preview. So let's say we added a documentation right over here, Option + Command + /
and we are going to have the view that is starting the app with, okay. So okay this
is a good documentation and you just writing that but what if and let me just go right over here
to the app file and if I option click on it now you can see that we have the view that
is starting the app with, okay. This is fine but when I wrote that out it wasn't that intuitive.
Now Xcode supports live editing. So here it is. So under content view you want to select assistant
and then go and select download preview and here it is. Now you can add your whatever let's see this
is so cool, okay. And you can have this documentation preview so you might as
well write better documentation with it, okay. Next up is code completion. Now first I want to
check out is the assets catalog. Let's create a new color right over here. So let's create
a new color set. I will name this my color and I will just leave it as is. It doesn't really
matter. Now inside the content view and let's just go back and I will remove the assistant
for now. So we may have a much larger space right over here. Next up is code completion
and we are going to start off with the assets catalog. I have created here a deep white color.
So right over here under the content view I can access it without the string value. So this will
be really cool. Color and just go dot and start typing it out, deep white. It's, it's super, super fun.
Also please note that let's just create a new color set and let's just say this will be my color.
That is the name, now under the content view if you want to access that color and type my as you
can see it's just a my color but it says the my color asset catalog color resource. So color will
be deducted from that. So it will just say my. So make sure that you name your colors appropriately
as you glitch this is also a good feature to have. Okay! So another code completion Improvement
Let's just have a new file right over here. It will be a swift file and I will name this my text field, okay.
Let's create that and I will just import SwiftUI right over here and I will create a struct of
my text field. So if I type out M it will suggest that this should be my text field because the file
name is my text field, okay. And yeah I'm just going to leave it as it that is because that
is the awesomeness of the code completion that I wanted to show you, okay. Next up is creating a
view modifiers. So right over here under the text we just add dat and as you can see it
is suggesting the font and then the bold. Now under the font there here you can see that we
have an arrow right over here and then you can just have those multiple variations. Now under
font we don't have much but if we just go under let's just go VStack and padding, I just hit
dot and then padding and hit the right arrow you will see that we have these options available.
So yeah I'm just go with the simple one for and now, maybe for the color let's just have a frame
and you see we have quite a lot right over here. So I will just have the right arrow and then I will
just have maybe a height of 100.That's perfectly fine. Now you saw that when I was jumping through
all of these specific views and add a view modifiers the more used ones were suggested to me.
So for example under the text if I just hit dot right over here the font will be the top suggested one
and that next up comes bold. So let's just go the font of title, that's perfectly fine.
Now under the VStack the padding will be shown, okay. And if we added already the first
suggested one in our case this is the font. If I hit dot again you can see now foregroundStyle
will be there and it's all according to your coding style. We can just select
bold right over here and whatever you'd like, okay. So next up is source control navigator. So under
the source control as you can see we added quite some changes and they are kind of not,
they are just stashed, they are not stashed right over here. Unstate change it says. So if we click on
it then you can stage the change. Now it's filled with blue and then you can just go under
source control and you see all of your files, this is under changes. It's much, much simpler.
So you can see we have stage changes. Some changes staged and some changes did not stage
and also we added and modified all of that stuff. This is really, really cool. So what we can do is
go under integrate and then commit. So the new commit dialogue, well the new commit window
will just pop up and you can just take a look at these new commits, really, really cool.
We have a lot of commits under the project file but as you can see we have our contents Json file,
let's just scroll a little bit down so we can see a little bit of code and as you can see these are
committed these are not committed and you can just click and Stage the change right over
here also state the change. It's really, really nice. What one thing that you could also do is let
me just scroll a little a bit up right over there. You can actually make sure that this is a smaller
version like it's compact or it is expanded all the way through the code. Now you can just add
a commit message. My first message right over here and then just click commit and it will be
committed. Now if you want to push to the GitHub repository then you want to first create one.
So let's create a new remote right over there. It will be public that's fine. Let's create that
pushing and now if we go back to changes and you can stage all yeah let's just do that and
now you can just unstage the changes, discard the changes. Let's go on the repositories staged and
go under integrate and push everything up, there we go. Pushing it up it's a much more
streamlined way of handling your source control. Now if you want to get all of these goodies you
must download Xcode 15 beta. Go ahead and check out how to do that. Yhe video is right over here.