SwiftUI Calculator - Master Stacking (Ep 1)

  Рет қаралды 47,898

Lets Build That App

Lets Build That App

4 жыл бұрын

Lots of fun things you can do with SwiftUI's stacking library. Let's go over how to create a two dimensional grid of buttons in today's video.
Maps with UIKit SwiftUI
www.letsbuildthatapp.com/cour...
Fullstack Social NodeJS iOS HTML:
www.letsbuildthatapp.com/cour...
AppStore JSON APIs
www.letsbuildthatapp.com/cour...
Tinder Firestore Swipe and Match
www.letsbuildthatapp.com/cour...
Twitter Slide Out Menu Course
www.letsbuildthatapp.com/cour...
Podcasts Course
www.letsbuildthatapp.com/cour...
Intermediate Training Core Data
www.letsbuildthatapp.com/cour...
Facebook Group
/ 1240636442694543
Completed Source Code
www.letsbuildthatapp.com/cour...
Instagram: / buildthatapp
Twitter: / buildthatapp

Пікірлер: 69
@bernardonigbinde
@bernardonigbinde 4 жыл бұрын
Brilliant website Brian! Love your "App Guides" section so much! Thank you for all you do - really. I appreciate it!
@ozolc
@ozolc 4 жыл бұрын
Wow. Calculator using SwiftUI. Looking forward to next episodes!
@mracipayam
@mracipayam 4 жыл бұрын
Thank you, swiftUI is fast and short, it is perfect for quick works.
@jross3r
@jross3r 4 жыл бұрын
Great video Brian. Very helpful.
@dalestewart
@dalestewart 4 жыл бұрын
Excellent tutorial using VStack, HStack, and ZStack!
@ngenge_senior
@ngenge_senior 3 жыл бұрын
Thank you a lot. Your courses are amazing
@alexsahagun8007
@alexsahagun8007 4 жыл бұрын
This framework is amazing. As a junior developer one of the things that was taking the longest time was doing all this on the storyboard and putting all the nested stacks on there
@alexsahagun8007
@alexsahagun8007 4 жыл бұрын
@@user-gc1wj8tt2p I think in swiftUI you can use .onAppear and .onDissapear. I gotta look into it more though!
@MissaMelodica
@MissaMelodica 4 жыл бұрын
Great stuff! Thank you and I learned a lot.
@jakeliujakeliu
@jakeliujakeliu 4 жыл бұрын
Thank you, this is great tutorial :)
@malinayudu6407
@malinayudu6407 4 жыл бұрын
Great tutorial
@javierdejorgesanchez-garni1158
@javierdejorgesanchez-garni1158 4 жыл бұрын
Hi Brian, thanks for your videos. I’m learning a lot. I have a question; is it posible to build a SwiftUI app embedded in a UIKit view controller? If so how? Thanks very much.
@software-sage
@software-sage 4 жыл бұрын
Thanks man you're a great and fast teacher
@software-sage
@software-sage 4 жыл бұрын
Will you make a follow up video for handling the logic?
@anoop4real115
@anoop4real115 4 жыл бұрын
Thanks for sharing
@saintplays9874
@saintplays9874 3 жыл бұрын
Thanks for help !
@TheMusician18
@TheMusician18 4 жыл бұрын
This was a great video man subbed for sure! Just ran into a small issue, Value of type 'ContentView' has no member 'buttonWidth' I thought I followed along alright too lol any suggestions?
@Music-gn1xe
@Music-gn1xe 4 жыл бұрын
Thank you so much
@goekhansari
@goekhansari 4 жыл бұрын
thank you man
@yunus6090
@yunus6090 2 жыл бұрын
Thanks
@joshi1q2w3e
@joshi1q2w3e 10 ай бұрын
Do you have a tutorial where you show how to build a calendar app like the iPhone has? I would love to see a tutorial lime that because I’ve searched everywhere and idk how to even start building a calendar app like the one the iPhone comes with.
@viksha8046
@viksha8046 4 жыл бұрын
waoo sir its amazing using storyboard is boring thing dynamically is awesome
@smackaroony
@smackaroony 4 жыл бұрын
love it
@rajanabeelahmed2473
@rajanabeelahmed2473 4 жыл бұрын
Thanks King
@trs_4612
@trs_4612 3 жыл бұрын
this is what i was wondering. i lacked the vocab so i was going around commenting questions like "what if my apps have hundreds of buttons?" LOL
@malinayudu6407
@malinayudu6407 4 жыл бұрын
Can you make a video on How to Handling the TabBar Set Up With Swift UI.
@TBCS3000
@TBCS3000 4 жыл бұрын
Brian Could you please build a Messaging chat app with SwiftUI and Firebase?
@postfixprefix6861
@postfixprefix6861 4 жыл бұрын
Hi, Brain. Very interesting lessons. Always watch them )) I have a question. You use .cornerRadius(buttonWidth()) I use .cornerRadius(buttonWidth() / 2) Why it is equal?
@AFTstorm
@AFTstorm 4 жыл бұрын
Using a 50% corner radius to all corners will equal to the the same amount as using 100%. Basicly any radius between 50% and 100% looks the same
@sibusisondlovu7509
@sibusisondlovu7509 4 жыл бұрын
top staff
@lifardtwisted2095
@lifardtwisted2095 3 жыл бұрын
When will you create ep 4 Brian? I don't see in your channel
@mrrice4036
@mrrice4036 3 жыл бұрын
Can I apply this concept to swift 4 with StackView ? 😐
@jensonjohn
@jensonjohn 4 жыл бұрын
❤️
@t4tahmed427
@t4tahmed427 4 жыл бұрын
how its possible to remember all this word and code? why not une Xcode facilites? like in Xcode we can text and button same way in MS word
@kokonabil886
@kokonabil886 4 жыл бұрын
it may be a stupid question but I want to know what is the meaning of \.sef
@klhmia
@klhmia 4 жыл бұрын
3:46 I'd much rather the lesson be slower and more in-depth (teaching proper / efficient / industry standard practices), as opposed to faster simply to fit a KZfaq algorithm and the attention span of people who aren't really into it. That being said, love this guide and appreciate it very much! Subbed :)
@fernando73820208
@fernando73820208 4 жыл бұрын
I think you have to wrong channel, don't get me wrong he gots good videos, but you want something more basic. This guy is talking like if you already know what's what. there's another good channel on KZfaq his name is Sean Allen, I also make videos on IOS Dev. its pretty easy each line of code those something, sometimes there's only 2 line of code, so I just mess with 1 or 2 lines of code and play with code... good luck coding...
@klhmia
@klhmia 3 жыл бұрын
@@fernando73820208 Thanks for the reply and info! I've since found a fair amount of Swift content, although, have been chugging through a couple Udemy guides I bought for quite the deal which have helped tremendously. Good luck likewise, I will definitely check out your content though as it seems to be just what I'm looking for.
@Tenly2009
@Tenly2009 4 жыл бұрын
Wait. In your last step, you set the cornerRadius to “buttonWidth()”.... Should that not have been “buttonWidth() / 2” ?
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
From what I notice, SwiftUI doesn't require a precise radius. r
@pgong415
@pgong415 2 жыл бұрын
By looping text elements to creat the buttons, you will not be able to apply action on the buttons. Can you loop on the buttons? Also looping all the buttons in one blow, you cannot modify specified colors to specific buttons? Plus the functionality of buttons cannot be designed by this text looping way. What do you think? Anyway, a good show on stacking techniques! Carry one.
@travelfeaturedyournexttrav5368
@travelfeaturedyournexttrav5368 4 жыл бұрын
hii sorry i follow you tutorial but i have a problem can you help me please? I make an app with tableview and inside there are a list of item and check box but when i check the first item, automatically they check the second item in the list. and also a i have a problem for save that with user default.
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
Just to be clear, this is a SwiftUI tutorial.
@danielwatson6529
@danielwatson6529 4 жыл бұрын
Im a bit confused, why string for the numbers instead of Int?
@danielwatson6529
@danielwatson6529 4 жыл бұрын
Ah its just the name of the button
@Vyacheslavskiy
@Vyacheslavskiy 4 жыл бұрын
UIScreen is a very dirty hack, GeometryReader is a perfect solution for such cases
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
Yeah, you can probably tell that I didn't want to use UIScreen there :)
@bernardonigbinde
@bernardonigbinde 4 жыл бұрын
Check "App Guides" section of the website - you'll love it.
4 жыл бұрын
How to do this with GeometryReader ?
@treeislife
@treeislife 4 жыл бұрын
In term of the language, when do you use the . dot notation e.g. (.padding()) VStack(spacing: 12) { : : : }.padding() or passing as a parameter e.g. VStack(spacing: 12)? VStack returns a ref to an object VStack with spacing 12, but why padding() needs to be called as a method? Is it to do with OO things? psksvp
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
Hmm..padding and spacing are two totally different things.
@stefancosmin2777
@stefancosmin2777 4 жыл бұрын
My guess is that we specify spacing as parameter to instruct the VStack how to draw its children, so it’s the VStack job to know that. Padding on the other hand is external to VStack, the VStack doesn’t care about its existence. Furthermore, padding can be applied to any component, it’s part of the View Protocol, whereas spacing (and other parameters like that) are declared on the constructor of implementing types because not all types of views need that
@treeislife
@treeislife 4 жыл бұрын
@@LetsBuildThatApp Why are they different? I feel, padding and space in the case of VStack are in the same category. To me, they are just the attributes (properties) of the instance of the VStack, so I was just wondering why they are set in different way. I was also wondering about handling different languages on UI elements? SwiftUI looks like a great DSL which is heading down the same path with Java Swing. Though I hope noob coder won't mix UI layout logic with the interaction logic between the user and the UI element like many swing programmers do. When one starts out programming, one normally tries to get the result and pays no attention to how (pattern) to get it. In the late 80s when IB was invented, they were trying to solve the problem of mixing up layout logic and interaction logic. Anyway, thanks for the great tutorial. psksvp
@sergioudalov361
@sergioudalov361 4 жыл бұрын
from Russia with love
@joannes86
@joannes86 4 жыл бұрын
A clean and easy way to split an array extension Array { func chunked(into size: Int) -> [[Element]] { return stride(from: 0, to: count, by: size).map { Array(self[$0 ..< Swift.min($0 + size, count)]) } } } let result = YourARRAY.chunked(into: 4)
@bernardonigbinde
@bernardonigbinde 4 жыл бұрын
lol... now see the difference the folks complaining on the website were complaining about. I don't think it's an issue at all - more learning really.
@user-oh4ky7rv5i
@user-oh4ky7rv5i 4 жыл бұрын
What were they complaining about
@zouromd5853
@zouromd5853 4 жыл бұрын
project since feb 2018
@smackaroony
@smackaroony 4 жыл бұрын
so many stacks
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
More stacks on the backb
@brxntrxn
@brxntrxn 4 жыл бұрын
Professor Brain (O_O)
@puntawatsubhamani6443
@puntawatsubhamani6443 3 жыл бұрын
It is not that difficult you just need sometimes to master
@zouromd5853
@zouromd5853 4 жыл бұрын
we are in swift 5.1
@Creativeetea
@Creativeetea 4 жыл бұрын
A ForEach loop in a ForEach ? Why here ?
@SMC247
@SMC247 4 жыл бұрын
Why does "Master Stacking" sound weirdly sexual #randomthoughtfortheday ;)
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
That's how we do
@captainmerica2498
@captainmerica2498 Жыл бұрын
nice 69th comment
SwiftUI: CalculatorButtons with Enumeration and Switches (Ep 2)
19:02
Lets Build That App
Рет қаралды 23 М.
iOS 15 Async Await JSON Fetching AsncImage Main Actors
31:28
Lets Build That App
Рет қаралды 14 М.
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 6 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 21 МЛН
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 31 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 11 МЛН
iOS Roadmap to Professional Developer: Skills you MUST have!
19:42
Lets Build That App
Рет қаралды 137 М.
Calculator App Example SwiftUI Xcode Tutorial
8:22
Code With Cal
Рет қаралды 7 М.
24 Xcode Tips in 15 Minutes
15:30
Paul Hudson
Рет қаралды 72 М.
Reactive Environment Object Application State (Ep 3 SwiftUI)
11:05
Lets Build That App
Рет қаралды 21 М.
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 65 М.
🔴 NEW SwiftUI Airbnb Clone | iOS 17 | Xcode 15
3:09:05
AppStuff
Рет қаралды 39 М.
Swift in 100 Seconds
2:25
Fireship
Рет қаралды 738 М.
How To Create A Calculator App in Xcode 15 (SwiftUI) - Part 1
12:52
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 6 МЛН