using placemarks loses default styling behavior of map annotations, i.e default tint and icon of annotation. how do i get this back?
@barrywest32702 дні тому
Hi everyone! I really like this set of tutorials. Much needed for my developement goals. I am having one issue in the Update Section. I am using xCode 15.3 and IOS version 17.4 for my project. In the update section I have followed the coding but I am not getting a preview, having a compile error where it seems that my @State private var ... are causing initializer is inaccessible due to 'private' protection level. Could this be caused by me using the bleeding edge of xCode and IOS ? Am I missing something simple. Thanks
@StewartLynch2 дні тому
My code runs fine on the latest builds so I suggest you recheck your code.
@barrywest32702 дні тому
@@StewartLynch Thank you sir.
@barrywest3270День тому
Going back over my code I could not find an issue in the code I typed. What I did to resolve this issue is I closed many Chrome Browser Windows and retype the code carefully. I suspect that some kind of issue occurred in XCode and it corrupted the Project File somehow. I used Beyond Compare and I could not find the issue that way, so I just had to recreate the project afresh. Just posted my findings, so that others might better understand my resolution to my issues and may comment as they like.
@gakkieNL2 дні тому
Great content as always!
@StewartLynch2 дні тому
Appreciate it!
@gakkieNL2 дні тому
Great additions to the ScrollView. Excellent video as always. Been away from programming a bit, but getting back up to speed. Gonna catchup with your videos! Thanks
@StewartLynch2 дні тому
Welcome back!
@saodatashurova94302 дні тому
I'm grateful for the knowledge you've shared🤩🤩🤩
@StewartLynch2 дні тому
I'm so glad!
@ColeDano2 дні тому
How is it that anytime I need to figure out something, Stewart is there? Very helpful again, thanks. Time to buy you another coffee :)
@StewartLynch2 дні тому
Glad to help!
@StewartLynch2 дні тому
Glad to help!
@robertdavis72623 дні тому
Great video. In it you say that you want to specify the inverse relationship between \Genre.books and \Book.genres, but you don't really say why you want to do that?
@StewartLynch2 дні тому
I don’t recall if I ever used this now, but you can specify the inverse to that the relationship can be inferred both ways giving you the ability to perform methods affecting models in both directions
@MelissaBain1083 дні тому
Thanks again for the videos! The app that I have created has a tabView with 4 tabs. How would I go about this scenario - I would like for the app to open to a specific tab when clicking on the local notification.
@StewartLynch2 дні тому
You can create an observed object with an Int published property that will be initialized as 0 as the selected tab. Inject it into the environment on app launch and bind it to the selection argument of the tab view. Then you can set it to another value from the notification
@AlanRick263 дні тому
Clear & informative 👏 What l’m missing in this excellent series is a section on what to do when releasing a new version. E.g. What do you do just before uploading to AppStoreConnect, and what do you do after Apple approves? When do you create a release tag? Do you create a new development branch before approval or afterwards? Which steps do you take in Xcode and which in GitHub (or the Xcode repository view)? I might not be alone with these questions 🤔
@andrejkling38864 дні тому
Thank you 🎉❤
@andrejkling38864 дні тому
Thank you so much Stewart 💯
@andrejkling38864 дні тому
Thank you so very much Stewart 🔥💯
@T0WSA4 дні тому
Thank you
@ankeecodeverse5 днів тому
❤❤
@MelissaBain1086 днів тому
Thanks for the informative videos! They have really helped. I really appreciate the ability to see a log of the upcoming scheduled notifications. I would love to know if there is a way to print the notification time in the log? I am having some trouble finding out a solution. Do you have any suggestions? TIA
@dibjr6 днів тому
Stewart, thank you for another great series!
@StewartLynch6 днів тому
You are more than welcome to
@praline3137 днів тому
Hi Stewart! First of all - thank you for this tutorial, it's amazing even for beginners. I'm here because of my friend recommendation and I don't regret it. But I wonder why you used "var" instead of "let" when you declare Entry property in Book struct. I know that it depends how it will be initialized whether it is array or single object, but also it works when I changed it to "let entry: [Entry]". So what is the difference here?
@StewartLynch7 днів тому
If you are going to be modifying the property after initialization it has to be a var
@user-it5bw6em3j7 днів тому
fabuloso! gracias
@samuelevans91157 днів тому
amazing video. this will help so many developers. I have published several updates featuring the knowledge you spread. Could you just answer this brief question: what is your background in regards to swift (have you written swift in a professional setting)?
@StewartLynch7 днів тому
I am an independent developer, so I have not been employed by anyone in an iOS/Swift related position. I am entirely self directed in that respect.
@saodatashurova94307 днів тому
WoooooW🤩🤩🤩
@stelluspereira7 днів тому
Excellent video Mr Lynch, noble work of educating the software dev community, THANKYOU
@isaiasizquierdo33697 днів тому
Thank you
@StewartLynch7 днів тому
You're welcome
@klauszakowski23508 днів тому
Thanks for the great tutorial. I am amazed at how easy the translation into other languages has become. The whole course with SwiftData and SwiftUI is great. Apple's teething troubles are slowly being ironed out. I am currently using Xcode 15.4 Beta for this course;-)). Everything is running great so far.
@stelluspereira8 днів тому
Thankyou Mr Lynch, very clear explanations (all of your videos) I am looking for SplitNavigation view & NavigationStack combination, bit not clear from SwiftUI documentation & how to implement, would care to share snippet of code ?
@StewartLynch8 днів тому
NavigationSplitView will collapse to a NavigationStack when your device is in compact width. Have you seen my video on NavigationSplitView? ukposts.info/have/v-deo/iqOegYKDg253o2Q.html
@stelluspereira8 днів тому
Excellent Sir, Thankyou
@RoxieS-pv4ke9 днів тому
I'm trying to make a selection of an array of photos and/or videos using photo poker (as in the threads application) ,,, I know how to do separately only for photos or only for videos, but when I choose both, I ran into a problem,,I don't want to process the video , I can't find suitable information on the Internet, Have you ever done anything like this?
@mkhasson979 днів тому
Many thanks 😊
@StewartLynch9 днів тому
You're welcome 😊
@reinaldof9 днів тому
Great work, Stewart! Loved the enum conforming to the View protocol approach.
@robertdavis72629 днів тому
Great video as always. One issue I seem to be having is that after I add a book and update its dateStarted value, then update, then edit the book again to change the status to completed the dateCompleted is initially set to Dec 31, 1 (i.e., in the very distant past). This happens even though I did make the change to add a range as in the video (which worked in the case of dateStarted). When I changed the initial value of dateCompleted to Date.now from Date.distantPast the problem went away and the picker starts at dateStarted as it is supposed to. Have you seen this issue?
@StewartLynch7 днів тому
I think I fix this in a subsequent video
@chipdickinson930110 днів тому
Thank you for all your videos. They have helped me a lot, especially this series. I do have a question, is it possible to have indoor maps (IMDF) with SwiftUI MapKit? I tried to take the Apple Dinoseum UIKit sample and wrap it in a UIViewControllerRepresentable, but I got too many errors.
@StewartLynch10 днів тому
Unfortunately, I have not explored that at all Chip, Sorry
@chipdickinson930110 днів тому
@@StewartLynch No worries. Thanks!
@joywu111 днів тому
I had seen your old series in this function(not swift data), but can you add one more function is when I pick the photo will show the photo on map?
@StewartLynch7 днів тому
That would be another level and some reverse geocode lookup on the meta data.
@joywu17 днів тому
@@StewartLynch thank you for your explanation, would you have any plans to this function in the future serious?
@StewartLynch7 днів тому
@@joywu1 I have a lot of other videos planned right now but I will add this to my list
@joywu111 днів тому
I learning from you a lot, would you guide me how to get photos GPS location when use photopickeritem (or other function) not the user current location? I can't found any other answer on web.
@dirkfu628011 днів тому
Hi Stewart, great video again, can't wait to find out what solution you came up with in the camera part, especially because there is no SwiftUI API (yet?). Small nitpick: Instead of Image (uiImage: sample.image == nil? Constants.placeholder : sample.image!) whouldn't be Image (uiImage: sample.image ?? Constants.placeholder) much simpler?
@StewartLynch7 днів тому
You are correct. Simpler indeed
@erisonveshi840611 днів тому
In the locationManagerDidChangeAuthorization(_ manager: CLLocationManager) i think you are omitting the .restricted case to fall under the default case which looks wrong in my oppinion. Other than that amazing series and saved me a bunch of time. Cheers Stewart, thank you for the amazing job you are doing.
@RaethanChristianSupatan12 днів тому
Hi! I tried storing multiple photos as an array of data but when I try to display them in a lazyvgrid, the performance of the app become slow. Is there any way to improve performance if there are a lot of photos to be displayed?
@StewartLynch12 днів тому
Do you mean you have a property that is an array of Data? If so, create a new object with a Data property and then store as a one to many relationsip to that object.
@RaethanChristianSupatan12 днів тому
@@StewartLynch Is that the reason why performance was slow? Also, can I not store my array of data property to external storage?
@StewartLynch12 днів тому
I have been reading that this is problematic. I have had no issues using one to many releationship.
@RaethanChristianSupatan12 днів тому
@@StewartLynch I see tysm!
@raethansupatan734111 днів тому
Is there a way to load the image data asynchronously?
@mkhasson9712 днів тому
Thank you very much for you awersome videos and the perfect explainations
@StewartLynch12 днів тому
Glad you like them!
@RoxieS-pv4ke12 днів тому
make a video how to add an array of images or videos to a SwiftData, and I'm wondering right now if I store images not in a Data? but in an URL? ,,, it will be very interesting, there are no such lessons on UKposts
@StewartLynch12 днів тому
This is pretty straight forward. Whether you are saving as a URL or as Data, create a new model for the image. It might only have the single property for the data or url. Then you can link the array to your object as a one to many relationship.
@RoxieS-pv4ke11 днів тому
@@StewartLynch yes, but I think the second property needs to be included in the new photo model is ID
@StewartLynch11 днів тому
Id is not necessary a Swift data model already has a record Id.
@RoxieS-pv4ke11 днів тому
@@StewartLynch today I will try to change the code a little)) and then I did it in my model using an attribute, it works - adds an array of photos, but when deleting an entry, it throws it out of the application
@StewartLynch10 днів тому
@RoxieS-pv4ke What do you mean, throws it out of the application? What is your delete rule on the relationship?
@dmacharo12 днів тому
What a treat! Can't wait for the rest of the series, thanks a million Stuart!
@jamesallison972513 днів тому
I am loving the tutorial so far, and learning not only the topic, but lots of little extras as well. One problem I have had so far is that when I relied on the init in the Book class description to populate the optionals, the newBook call in the create button was unjhappy with the optional parameters so I had to define them there in the create code. Is there something wrong with the way I set up the Book init?
@StewartLynch13 днів тому
Not sure I understand the question James. Feel free to email me to follow up
@jamesallison972512 днів тому
Ok. I figured it out, no need to reply.
@sergiovinhal593413 днів тому
Thank you .
@SinghalRishi2713 днів тому
Thank you so much for this ☺
@samuelevans911513 днів тому
Stewart, you make the most informative videos for swiftui I have ever seen. Thanks!
@StewartLynch13 днів тому
Thank you Samuel. I appreciate the feedback
@user-vf2yy9gq3k14 днів тому
Very useful, thank you so much!
@StewartLynch13 днів тому
Glad it was helpful!
@user-vf2yy9gq3k14 днів тому
Something like notification should not be difficult. You made this so easy!!!! Thank you so much!
@RobertHolzapfel14 днів тому
Why is everybody uploading their packages on GitHub ... at least at first you would prefer somehow store and use them locally! My project can't find the "product" :((
@WattsnabbAB14 днів тому
I have to say i wish i had more time to go thru youre video. They are really good for learning!! Thanks for good explanations!
@chuchoonce14 днів тому
I've paid for the "best" content in Udemy and nobody explains like you It's amazing that content like this is free
@StewartLynch14 днів тому
I am glad you are finding it useful
@ar_transilvania15 днів тому
How can you propagate a logout or login change from within a subview toggle in the appstate environment object without injecting it in every subview?
@ipeerless671716 днів тому
@Binding is not used instead of @ObservaedObject not correct
@StewartLynch16 днів тому
I just rewatched that video, and I don’t see where I said that. Can you give me a time stamp? @StateObject -> @ObservedObject but now, @State for an observed object -> @Bindable. @Binding and @Bindable are different
@ipeerless671716 днів тому
@@StewartLynch at 00.38 second at the begining of video @BIndable is instead of @observedObject if that correct ?it also instead of @EnvironmentObject or any subview of view or instance of struct or class also ? i think all of them one way binding not two ways binding like new @Bindable . about difference between @Bindable , @Binding is clear thanks for your great content
@StewartLynch15 днів тому
u can inject State objects which are oberved into the environment. As I show at the end of the video, if you want to be alble to update a proprety in an Environment State object, you will need to introduce Bindable into your view and assign the State object to the variable with the Bindable property wrapper. I don’t see where there are any mistakes in my explanation, but if so, I would really like to clear it up.
@ipeerless671715 днів тому
@@StewartLynch new property wrapper @Bindable is two ways binding but @ObservedObject is one way binding they are not alternatives for each other u said at 38 second of video first minute
@StewartLynch15 днів тому
I think you are incorrect here. I have a sample project that I would be happy to send to you if you want to reach out to me by email to continue this conversation. It clearly demonstrates the parallels between @State/Observation framework -> @Bindable and @StateObject/@ObservableObject -> @ObservedObject
@1987alejandroivan16 днів тому
It would be nice to see this being used in a multi-module app, does it work the same for a module? Are values only accessible inside the actual module or do we have to expose them in the main project for the workspace?