Adding images to a SwiftUI application | Bootcamp #7
Вставка
- Опубліковано 10 жов 2024
- In this video we will add images to our Xcode project and then incorporate them into our SwiftUI view. This video covers how to add, resize and reshape images. Using SwiftUI modifiers, we can easily make an image resizable, change an image's aspect ratio, and even clip the shape to make circular images.
Next video: • Frames and Alignments ...
Last video: • System Icons, Multi-Co...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-t...
DISCORD: / discord
GITHUB: github.com/Swi...
SAY THANKS: www.buymeacoff...
Thanks, Nick!! For anyone watching years later, if you have any images that are .png files, ensure that the .png is lowercased or else you'll get a warning about the image not being usable, and yet it still works just fine (cuz it's a warning). In other words, if your image is flowers.PNG, you'll get said warning (at least that's what happens on mine in Xcode 15.0.1). Cheers!
I like your subtle but extremely effective repetitive actions when beginning your tutorials in this series. For example, opening up a new file for each new tutorial. This is simple, however, most effective for someone following and repeating the same actions in Xcode.
I'm glad it helps! It's going to get much hard than this though I hope you're ready 😉
I watched the ads full, just to give back something to you in return
🥹😂 My man!!
THANK YOU FOR YOUR AWESOME INSTRUCTIONS AND KNOWLEDGE. YOU ARE TRULY A BEAUTIFUL SOUL!!
This series has been so helpful so far! Even in 2024!
Really helpful! Been looking for this tutorial for ages! :)
Wow, I didnt know about the last example. Thank you so much
Happy to help :)
These videos are seriously the best!!!
Thank you so much for these lessons. Your have an excellent teaching style, very easy to understand and follow along!
Welcome Jorge!
Thanks. I’m added images in many of my apps. Stored in iCloud and core data
.clipped I so long searched it
thanks)
clear explanation
Thanks for your wonderful videos Nick. I'm moving from coding iOS and Android apps in Microsoft's .Net MAUI framework to Swift. Even though the MAUI app appears to work well on iPhones, there are too many issues I have and need to write native iOS code. Alas, for images, I seem to have taken a step backwards. .Net Maui renders SVG images at any size correctly without adding antialiasing. Is there a way to use SVG assets and scale them correctly, as they were originally designed to be scaled?
Dude, keep doing, what you are doing
Awesome your tutorial
Thank you!!! (감사합니다.)
천만에요 :)
Great video, thank you so much!
Named my swift view file image lol. Lesson learned don’t name files after a function you are about to use
Haha we’ve all been there 😂😅
THANKS
THANK YOUUUUU
Is there a chance to download this whole tutorial project?
Google icon in apple tutorial
.clipShape(Circle())
How to let the user upload an image, please?
no matter what I do my image wont show up
.clipShape(RoundedRectangle(cornerRadius: 25.0))
.aspectRatio(contentMode: fill).clipped()
sup bro😉
.renderingMode(.template)