QOTD ⚡Did you install Xcode 11 or macOS Catalina beta on your machine? Let me know by leaving a comment!👇 Kick start your own app with my free 7 Day App Action Plan ➡️ bit.ly/7dplan
No I have not yet. I’m actually going through your courses and my question is: shoutI stop and start studying Swift UI or keep going through the courses?
If your focus is to make an app for iPhone only, the course is still 100% valid because Swift and SwiftUI are 2 different things. Swift will still be used to write the brain of the app. Now SwiftUI is the new kid on the block that allows you to skip the storyboard to make your app cross platform from iPhone to iPad and to Mac! I don't think Apple introduced Swift 5.x to trash it 3 months later with SwiftUI. Everything you still learn now and tomorrow will still be useful ! @AdrienVillez
Thank you so much for this. This filled a few gaps that I couldn't get from the official tutorial, especially the use and syntax of closures to initialise a List was completely random when I first looked at it.
Hi Chris, I wanted to try SwiftUI as soon as Xcode11 came out. Only it didn't work without OSCatalina, I couldn't wait to try SwiftUI so i installed my first beta on my MBP. I made OSCatalina run on a USB-stick, you never know. It runs good but I can't run Xcode files from my desktop. My files have to be put in a different folder. That took me a while to find out, thanks to the mighty internet. I started learning Swift from Swift 3 so I am not new but definitely not a pro. SwiftUI puts me back a few steps. Your tutorials help me a lot, keep it up.
Advised to still check Apple's tutorial after or while watching the explaination, some function had changed, both in how to use them and the name as well. Might get confused if you are trying this out in 2020
I'm running beta software on my MBP, watch, and phone-- definite bugs, but tolerable at the moment. really appreciate your tutorials as i learn swift. thank you !
I installed Xcode 11 but not Catalina. I’m gonna install it on a different partition Chris, that way it does not interfere with my main OS. Later, when it’s officially released, I can reclaim the space used when I install Catalina over Mojave and Xcode 11 over top of Xcode 10. Hope that made sense mate. Thanks for these tutorials in SwiftUI Chris, the more I work with it the more I’m liking it. Definitely a game changer..👍👍👍
Hey Chris can you make a video on how to make different scenes per say for very new beginners. You do a really good job explaining, you're a serious inspiration to me! Wish I had a teacher like you Edit: What I mean is like how to have a start screen and then something else.
Hello, sorry but there is no video or tutorials about "file sharing", maybe you can check articles online like this one medium.com/if-let-swift-programming/managing-files-in-ios-dfcdfdc1f426 - Francis
landmark.image(forSize: 50) doesn't compile error saying "none function"////// the image shows but it's big = landmark.image. I recently installed Xcode11 wondering if a different name for "forSize:"and forSize Int doesnt show in image drop box
I jump definition image and compare with his code, mine didn't have func image. I guess forSize is not defined in the project file I downloaded. So couldn't access it.
Hi Chris! Thanks for such nice tutorials! Could you please advice - I couldn't find your video you mentioned at 1:07 (App with landmarks) Is it available now somewhere? Thanks
Chris, NavigationLink requires me to put a label name..? not just destination:LandmarkDetail, which label should I put it in or is this even a correct NavigationLink data type?
Hello, according to the documentation developer.apple.com/documentation/swiftui/navigationlink it seems it got updated to have a "label" which is also a view, you can just simply label: { EmptyView() }) as a "hack" to make it work - Francis
Hello, i would be better to follow the apple documentation of this now because some codes got updated, don't worry its the same project developer.apple.com/tutorials/swiftui/ - Francis
Thanks for all the videos you make. They are fantastic. If you wanted to let the user swipe between each child view (the location view in this case) how would you do that? Going from the list to the detail is great and well supported but it seems like there would be lots of use cases where the user would like to easily go to the next detail/child view without having to go back to the list.
"Hello, you can try adding gestures and save ""previous"" selection so you can trigger the navigation from there, however it should not probably work if you just opened the app and did not make a selection yet and actually navigationview already implements a ""swipe"" feature already, try running it on your phone and try swiping after a selection it should work - Francis"
Hello, yes, this was because because this video was made on the early release of SwiftUI, there have been a handful of changes since then, its best to check documentation and online forums if old code does not work anymore - Francis
Pretty good to enhance the view interactively - thanks for good demo But still we need to work around swiftui. I am recently started using it and comparing all the time UIKIt. i have gone through your many videos old & semi old.
Hii Chris , i want to make custom URL like a user , input string into the text-field and which is grab from UI and append into my URL domain. after grabbing from the user. I want to open it using button click.
Hello, what should be simple you only need maybe a randomizer for the ""user"", a textfield to get the extra data to append, and maybe webkit or alamofire to open the web address - Francis
Hello, I am new in SwiftUI, but used be a developer in UIKit. I downloaded file from site but the starter file is not full version for starting. :( I wanted to do parallel
@Chris I have designed a SplashScreen with SwiftUI because I need to make api calls to my server to refresh's the authToken. So, I need to show the splash screen 1st time onlyAfter showing the splash screen will navigate to home page and the user should not be able to navigate back to splash screen. So, Its like I need to remove to splash screen from view stack after navigating to homepage. Can you help me with that? Reference to any article/video will be helpful. Thanks.
Hello, the splash screen on ios is usually just used to show the app logo, i suggest making your splash screen and just ""present"" it to screen on top of your current ViewController so that you can dismiss it easily afterward and will not leave a trace to nagivate into - Francis
Hi Chris, thank you for your awesome video !! I have a question. I created similar pages (not exactly the same but the same function) and I noticed that when I navigate to the second page, there is a huge blank on the top of the screen, so it's dragging everything else down. This does not appear if I access straight to the second page without the navigation function. Do you know how to fix it?? Thanks!
Hello, yes there have been quite a few changes since this video was last posted, this video was made way back when SwiftUI was just annouced so its quite early stage. there will probably be some changes in the future as well - Francis
Hi Chris! thanks for everything so far. I have also been using thise apple Tuts. Although Ive struggled with this one - after the beginning of project, after downloading the project files, all my Apple Developer fields where a mess and I had to copy and paste, and update my Tut 1 files - not the best way but I leaned quite a bit by experimenting with how the program ran as i updated a sheet at a time. However what went wrong? i really dont understand, my apple developer dfetails are fine for tut 1 and are fine when i start with my own projects - but something was seriously wrong - is it a bug with Xcode or am i missing something?
Hello, we created a forum to help people with the tutorials. Could you share this to our CodeCrew Community codecrew.codewithchris.com/ with more details or screenshots if possible? Thanks!
Hello, should be possible to use SQLite is already built-in on the ios app, SwiftUI and storyboard uses the same language swift so its not really any different how you code (unless its UI related) - Francis
Hi Chris, I am getting this error (@34:48) --> Cannot call value of non-function type 'Image', when I am trying to build CircleImage.swift. And related to that, I am getting this error (@35:45) --> 'Int' is not convertible to 'CGFloat?', when I am trying to build LandmarkDetail.swift (this error was refer to '.frame(height: 300)' OR line 18 in your LandmarkDetail.swift file @35.45). Can you please help?
Hello! Sorry to see you are having trouble. Could you post your question (with code sample and/or screenshots) in our community group here (bit.ly/CodeCrewCommunity). Make sure to check the posting guidelines (bit.ly/CWCHowToAskForHelp) so we can help you the best as we can! Thanks for being a CodeCrew member! -Kat
Hi Chris, I’ve updated my Mac to OS Catalina 10.15. and I’m still having trouble displaying my canvas. It is ticked and shows up on the right and side but appears to time out. Any thoughts on what could be causing this?
Hello, we might need more info to help you with your problem, and also some screenshots, please head on over to codecrew.codewithchris.com for more support - Francis
Whenever I download the "Building Lists and Navigation" and extract it, the project file in there is "CreatingAndCombiningViews". The layout and information looks different from yours. Do you still have the original for download?
I've never learned how to use Swift, UIKit, or anything like it, I'd only learned c# through Unity. Your tutorials are really helping me out because going through the apple tutorials alone are very daunting and frankly frustrating as I don't know the language
Hello, maybe you can add a textfield and have a state called searchterm, so anything that you type on the textfield triggers the list to refresh base on the value of the textfield - Francis
i was wondering, why we never used any @State with properties we created in different views. I though you must put @State var ____ when you make a property in SwiftUI
HEY Chris, when i created the LandmarkRow.swift I can't click the button of resume . The error said that Signing for "Landmarks" requires a development team. Select a development team in the Signing & Capabilities editor. That's mean i need to register an apple developer account and pay $99 for it ?
Hello, it's hard to troubleshoot via YT comments. We created a forum to help people with the tutorials. Could you share this to our CodeCrew Community codecrew.codewithchris.com/ with screenshots if possible? Thanks! -Kat
Hey, I am getting this error --> compiling failed: no type names 'LandmarkRow_Previews' in module 'Landmarks', when I am trying to run the LandmarkRow canvas. Can you please help? Thank you!
I installed macOS Catalina and Xcode beta 11. Xcode is almost unusable. I can't get a project to load. I can create a new one but I can't open it again once I close and come back to it. macOS Catalina is also buggy (but beta so understand.). MacBook Air won't sleep in Catalina
During the edit of this video, I had to cut or shorten some bugs and crash yet. Now Chris is using an iMac from 2015 with an OK hardware. Maybe older or smaller hardware will have an even harder time to deal with a beta version. Don't worry, September is close by! @AdrienVillez
On start of your application, if the user is logged in - load some view called HomeView, if the user is not logged in load LoginView, the user should be able to logout at any point, which should again load the LoginView. How would you tackle that in SwiftUI? Note that HomeView is not the initial view, so if you are logged in you actually skip 2 views, InitialView and LoginView and go straight to HomeView. How would you tackle this if the user just logged in and logouts, or logged in, closed the application then started it again and logged out?
@@CodeWithChris Do you mean instead of doing dismiss on current view twice I should just navigate directly to where I want? Doesn't that put many views on top of each other (new to mobile programming, sorry for my silly question)?
Hello, yes you can use firebase in swiftUI you just need to set it up the same way that you set it up for regular storyboard apps via cocoapods, the codes sill be the same as they are using the same library - Francis
@@CodeWithChris thanks for the reply. How would I parse the firebase data to be represented as you have in this video? Would I still need the data.swift file?
Hello, I have now learned how to use tab bar controller, but can't solve one thing and that thing is that how to add on the main tab bar controller some label, background or anything I want. Thanks for answer.
Hello, try checking the documentation developer.apple.com/documentation/uikit/uitabbarcontroller and see if there are any properties that you can change - Francis
I have an imagepicker set up and would like to open a new view when the image is selected.. any ideas on how I might accomplish this? preferably without using navigationlinks
Hello, you can just do a custom pop-up dialog or something that has a UIImage inside so you can just display the image from there and just open it using "present" - Francis
Hey Chris... How can we implement side menu in landing page just after login screen and navigate to its items... Without login screen I've implemented but not sure after login screen...
Weirdly you have to put the navigationBarTitle inside the closure for NavigationView like this NavigationView { List(users) { user in NavigationButton(destination: DetailView(user: user)) { MyRow(user: user) } } .navigationBarTitle(Text("Title")) }
Hi Chris, I am getting this error (@20:24) --> Value of type '[Landmark]' has no member 'identified', when I am trying to run the LandmarkList canvas. Can you please help?
Hello! Sorry to see you are having trouble. You should consider posting your question (with code sample and/or screenshots) in our community group that can be found here (bit.ly/CodeCrewCommunity). Make sure to check the posting guidelines (bit.ly/CWCHowToAskForHelp) like that we can help you the best as we can! Thanks for being a CodeCrew member! @AdrienVillez
@@崔诗敏-s2g Yeah, this got it working on my project: ``` List(landmarkData) { landmark in NavigationLink(destination: LandmarkDetail(landmark: landmark)) { LandmarkRow(landmark: landmark) } } ```
Hello, it really depends on what you want to display on your tableview, if its just a simple list you can either make it a json file or you can even hardcode it, ideally you just want to plan out what data you want to display first - Francis
hey chris, So i tried to install xcode 11 on my macbook air however, i have some issue with the feature canvas. In fact its not appear like it should be. I tried everything but for now, i dont have the answer for this. editor => canvas doesn't work. i think its a bug between xcode 10.2.1 and 11 which are install or maybe doesnt work for macbook air because not enough powerful for this or maybe 13" so too small ... i really dont know.
Another difficult one. Here's a beginners question for you. Does SwiftUI use more code than UIKit (with storyboard) so that one page of code looks neater?
Gave up just over half way. Too much. Not because of the video but the content in general. I also tried the apple tutorial. It's not making any sense to me yet. I think I'll try something a little easier or I'll just burn out and loose interest in SwiftUI.
Hello, since. SwiftUI relies heavily in coding, then yes it would require more info how to make your app/UI look for cleaner and better, but for making simple design UI then using the default values should be fine for practice - Francis
In Swift you have to add the x and y coordinate or an element with its height and width. In SwiftUI it's more or less like a placement. (that's how I see it!) @AdrienVillez
Hello, thank you for the input, there was also been a lot of changes on this video because this was taken directly from the apple documentation example. There has been quite a few changes since then - Francis
Because SwiftUI is just Swift code (behind the scene) and if they had different file extensions, we wouldn't be able to mix them in a project @AdrienVillez
1:03 you should add this to the card (i) so we can select it. Currently only 'SwiftUI Basics for Beginners (2019)' is there. Actually I do not see 'SwiftUI Full Tutorial' in your video list. Also, the SwiftUI Basics for Beginners (2019) is xCode 11. I hope all your new projects are not predicated on upgrading to a beta app and os?
SwiftUI has to be recorded with Xcode 11. Now Xcode 11 is gonna come out in less than 3 months so, it's nice to already have recorded with Xcode 11. Regarding the regular Swift and UIKit, it doesn't make a difference. @AdrienVillez
Unfortunately SwiftUI is only available on Xcode 11. I won't be touching SwiftUI very much until X11 gets released officially in Sept. For now, i'm focused on material that can be done on X10!
Hello, you might be looking for this app tutorial ru-vid.com/group/PLMRqhzcHGw1ZkH8RuznGMS0NZs0jWQQ5a or this beginners tutorial ru-vid.com/group/PLMRqhzcHGw1b89DXHOVA77ozWXWmuBkWX - Francis
I’ve seen many tutorials where the NavigationBarTitle is appended one level below the NavigationView - for example in the LandmarkList it would get appended on the closing curly bracket of the List - why is that?
Hello, becuase the navigationBarTitle is an attribute of the NavigationView, so it should be inside (or appended after the bracket). think of it as an attribute of the class like lets say the class is Person and it has a "name" attribute, so to access and set the attribute you should do Person.name. Same logic goes for this but its just a bit longer with more content - Francis
Hello, SwiftUI is fast changing because its in BETA, it seems that NavigationButton is now depreciated and has been replaced by NavigationLink - Francis
I don't know where I keep going wrong but I always get the following error. Cannot preview in this file -- JSON Practice.app May have crashed It musst have something to do with the JSON file, Data file or Decodable file! Any idea what this could be, I can't seem to find an answer anywhere to help. Here is the project on GitHub: github.com/zenocode/JSON-Practice/tree/master/JSON%20Practice Thanks for the help
Hello, we created a forum for people needing coding help. Could you share this to our CodeCrew Community codecrew.codewithchris.com/ with more details or screenshots if possible? Thanks! -Kat
I am a nuby, that's why I have no idea what to do: updated Xcode to 11 version and found out that canvas is available only on macOS 10.15 (which is Catalina)...should I change Mojave to Catalina or just wait for a miracle update?))
Hello, if you really want to program SwiftUI then you should really update to catalina, who know if there is even a "miracle update" that will come cuz there wasn't one for swift 5 on Sierra ;) - Francis
Hello, yes it would be possible to do it you can refer to this stackoverflow answer stackoverflow.com/a/7516468 its possible that might be a bit different codewise but the logic stays the same - Francis
I had the same problem and I figured out if you go to the apple tutorial page it shows you you have to set up the image like this: landmark.image .resizable() .frame(width: 50, height: 50)
@@tomson8780 Hey another thing I have run into is the List part, in the official document it wrote " id: /.id", but when I wrote in Xcode I got an alert said, "Type '_' has no member 'id'". Have you run into this, too?
Hello! Are you still experiencing this problem? Could you share your question in our community group here (bit.ly/CodeCrewCommunity)? Just check the posting guidelines (bit.ly/CWCHowToAskForHelp) so we can help you the best as we can! Thanks! Kat
@@bookmarkmonaco4255 OMG thank you for posting this. Been pulling out my hair trying to change the data.Swift file to match the one Chris is using in this tutorial.
Hello, most of the time data from an outside database (online) can only be accessed by a JSON return/response, perhaps you are looking for something local like CoreData? ru-vid.com/group/PLMRqhzcHGw1aDYKmCuqXQ_IqpWpJlpoJ3 - Francis
Hello, there have been some changes (improvements) ever since SwiftUI was released so expect things to be easier or more simple to use, its best to check the documentation for this - Francis
I feel like apple decided to enter the home by climbing all the the trees and through window, ignoring perfectly working, comfortable door( SwiftUi is totally a mess to me, sure we can memorize a hundred ways to get what we want, but why? when we learn something, we forget something. The old way worked, it did have a preview too, even if it was not live it sure does not make this better for me, this is not like swift at all. Why would they do something like this when they made swift in the first place. So far - I really hope SwiftUi will be only an alternative. this is just a new way to fill our memory with something (
My first look at SwiftUI was also a big Wow, and I'm still really confused about it... Now, I haven't been coding for a loooong time and I'm focused more on video editing than Xcode so, I can't really say it's hard or complicated since I never put my hands on... Give it a couple of months or even a year and SwiftUI should be more mature then! @AdrienVillez
@@CodeWithChris at the beginning when I first open the Xcode file and then it says you don't have permission to to access read me or sample code and its not letting me run the previews so im pretty confused
We are here to help, if you are brand new to iOS and coding in general, take this 8 Steps Tutorial: ru-vid.com/group/PLMRqhzcHGw1Y5Cluhf7pKRNZtKaA3Q4kg @AdrienVillez
Ha - I'm glad I'm not the only one that felt this way. I thought I was understanding up until this video... and now I feel like "landmark" is the answer to everything, but I have no idea how or why. It is amazing to watch Chris have an error - and then go to the code and comprehend why there was an error and fix it... meanwhile, I'm scratching my head and feeling lost. I guess I'm not ready for this level yet. Hopefully when I circle back, it will make more sense.