How to Make a Card View in SwiftUI - Step by Step for Beginners (2023)

  Рет қаралды 11,035

A Swiftly Tilting Planet

A Swiftly Tilting Planet

Күн бұрын

In this video, I will be showing you step-by-step how to create a card view in SwiftUI. We will start by setting up our project and then move on to creating the basic layout for our card. From there, we will add some styling and customizations to make our card look great.

Пікірлер: 34
@androidfanatic6528
@androidfanatic6528 Жыл бұрын
Great video and tutorial, thank you. The "Bob Ross" of SwiftUI development. Subbed!
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
😂 Thank you.
@DailyDoseof-Health
@DailyDoseof-Health Жыл бұрын
Thank you for the great work. Looking forward to more tutorials.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Thank you. Hopefully I will have the next video out soon.
@zurvey
@zurvey Жыл бұрын
This is my first video I've seen from you. I liked and subscribed. BTW, thank you for starting by showing us the finished product. I wish everyone would do that; it is easier to follow a video when you know what its purpose is. Thanks for making and posting this.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Thank you. I agree it’s nice to see the finished product before you start diving into the code.
@PhilosoBot
@PhilosoBot Жыл бұрын
So good to see you making videos again! I wondered what happened to your old ones, I really missed them.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Yeah, I needed to take a break for a while but now I’m working on putting together some new tutorials and Swift developer related videos.
@MJXed
@MJXed Жыл бұрын
I love the content I will use it in my next SwiftUI project, keep it up 🎉
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Glad it was helpful.
@Nature-cl4kb
@Nature-cl4kb Жыл бұрын
thank you!
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
No worries.
@werderdoc8618
@werderdoc8618 Жыл бұрын
Great video. Thanks very much for this. For me as a very new beginner concerning SwiftUI programming, it was a great introduction. Thanks again...
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Glad it was helpful.
@w0mblemania
@w0mblemania 3 ай бұрын
Nice work.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet 3 ай бұрын
Thank you.
@tahmidakter2034
@tahmidakter2034 Жыл бұрын
Very intuitive video. I am a react developer. Coming from a react background I can relate a lot of comparative thing with swiftui still I am new in swiftUi. Learned a lot of things in this video. Hope to see more of your video. Thanks 😉
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Glad to hear this was helpful. My next video coming out soon will be about integrating a searchable map view, so that should be fun. Just out of curiosity, are you learning SwiftUI for side projects or are you looking to get into mobile development as well as web development?
@tahmidakter2034
@tahmidakter2034 Жыл бұрын
@@a_swiftly_tilting_planetWill be waiting for the next video. My childhood dream is to become a great developer. Since childhood, I was fascinated by the android & ios system. That time I was a kid. So, didn't know how apps work and how an app gets created. After knowing about these development path, I've learned programming all by myself and till this day, I am trying to learn how to make IOS & android app. Swiftui seems pretty fun. It would be great If you could give me some tips on roadmap.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
I’ll work on a roadmap and/or Swift resource video.
@tahmidakter2034
@tahmidakter2034 Жыл бұрын
@@a_swiftly_tilting_planet I will be waiting for your video. You can consider me as your student 😀
@QDWorld-Apps
@QDWorld-Apps Жыл бұрын
Fantastic video … can you please let me know how to change the background colour of the cards to dark grey or something. When I change the colour in the PersonCardView .background (Color.gray) it is not working please help
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Use a ternary operator like this. www.hackingwithswift.com/books/ios-swiftui/conditional-modifiers
@BradCaldwellAuburn
@BradCaldwellAuburn 9 ай бұрын
So let's say your List will contain a potentially endless number of CardViews (like FB or Twitter), and you don't want performance issues. I hear List is lazy at least for iPhones. So would it only load as needed for screen and a little extra if your database has say 1,000 cards available if the user scrolled far enough down, or would it load all the cards and nearly crash the app?
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet 8 ай бұрын
I apologize for the delayed response. I will need to delve deeper into this myself. In the meantime, I came across a video directly from Apple discussing SwiftUI performance. Demystify SwiftUI performance: developer.apple.com/videos/play/wwdc2023/10160/
@MarkDog0410
@MarkDog0410 Жыл бұрын
very good video, but you need to speak louder .
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Glad you enjoyed the video. I am working on improving my audio. Just posted a new video yesterday. Let me know if the audio is better in that one.
@MarkDog0410
@MarkDog0410 Жыл бұрын
@@a_swiftly_tilting_planet that’s awesome , thanks your video to improve our skills.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
No worries. I hope to have another video out this afternoon or tomorrow.
@محمدبنسراجالدين
@محمدبنسراجالدين Жыл бұрын
When tapping any button the whole card gets selected and all buttons get triggered..did try using the buttons? Am I doing something wrong?
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Good catch. Sorry about that. Here is the fix: PersonCardView(person: person1) .listRowSeparator(.hidden) .buttonStyle(.plain)
@محمدبنسراجالدين
@محمدبنسراجالدين Жыл бұрын
@@a_swiftly_tilting_planet Good fix 👍. this fix solves a big problem, which is: when using the new NavigationSplitView you must have a list as the sidebar view..otherwise no pushing and popping happens when views are collapsed (ex. all iPhones in portrait)
@maverickchan9552
@maverickchan9552 Жыл бұрын
why are you wispering .... just kidding...
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Still working audio. 🤫
Жизненный цикл iOS приложения | SWIFT
18:02
Stop using GeometryReader in SwiftUI
4:27
Flo writes Code
Рет қаралды 5 М.
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 31 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,6 МЛН
SwiftUI List with Custom Cell & Passing Data
36:27
Sean Allen
Рет қаралды 117 М.
Create a weather app from scratch with this SwiftUI Crash Course
37:04
🔥 Building a Reusable Card View in SwiftUI #09
8:34
Code with Franck
Рет қаралды 120
How to Implement Map Integration in SwiftUI - Step by Step for Beginners (2023)
45:16
SwiftUI 5: What’s New In ScrollView
13:07
Mike Mikina
Рет қаралды 9 М.
Selection and PieCharts in iOS 17
20:57
Stewart Lynch
Рет қаралды 3,1 М.
Data Flow in a SwiftUI App
33:15
CodeWithChris
Рет қаралды 54 М.
Custom SwiftUI Calendar
20:30
Stewart Lynch
Рет қаралды 9 М.
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 31 МЛН