SwiftUI Calculator - Master Stacking (Ep 1)

  Рет қаралды 48,232

Lets Build That App

Lets Build That App

Күн бұрын

Пікірлер: 69
@alexsahagun8007
@alexsahagun8007 5 жыл бұрын
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 5 жыл бұрын
@@user-gc1wj8tt2p I think in swiftUI you can use .onAppear and .onDissapear. I gotta look into it more though!
@JimRohn-u8c
@JimRohn-u8c Жыл бұрын
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.
@bernardonigbinde
@bernardonigbinde 5 жыл бұрын
Brilliant website Brian! Love your "App Guides" section so much! Thank you for all you do - really. I appreciate it!
@ozolc
@ozolc 5 жыл бұрын
Wow. Calculator using SwiftUI. Looking forward to next episodes!
@jross3r
@jross3r 5 жыл бұрын
Great video Brian. Very helpful.
@mracipayam
@mracipayam 5 жыл бұрын
Thank you, swiftUI is fast and short, it is perfect for quick works.
@dalestewart
@dalestewart 4 жыл бұрын
Excellent tutorial using VStack, HStack, and ZStack!
@lifardtwisted2095
@lifardtwisted2095 4 жыл бұрын
When will you create ep 4 Brian? I don't see in your channel
@pgong415
@pgong415 3 жыл бұрын
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.
@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 KZbin 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 KZbin 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 4 жыл бұрын
@@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.
@ngenge_senior
@ngenge_senior 4 жыл бұрын
Thank you a lot. Your courses are amazing
@mrrice4036
@mrrice4036 3 жыл бұрын
Can I apply this concept to swift 4 with StackView ? 😐
@software-sage
@software-sage 5 жыл бұрын
Thanks man you're a great and fast teacher
@software-sage
@software-sage 5 жыл бұрын
Will you make a follow up video for handling the logic?
@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.
@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?
@anoop4real115
@anoop4real115 4 жыл бұрын
Thanks for sharing
@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
@trs_4612
@trs_4612 4 жыл бұрын
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.
@malinayudu6407
@malinayudu6407 4 жыл бұрын
Great tutorial
@viksha8046
@viksha8046 5 жыл бұрын
waoo sir its amazing using storyboard is boring thing dynamically is awesome
@saintplays9874
@saintplays9874 4 жыл бұрын
Thanks for help !
@TBCS3000
@TBCS3000 4 жыл бұрын
Brian Could you please build a Messaging chat app with SwiftUI and Firebase?
@Tenly2009
@Tenly2009 5 жыл бұрын
Wait. In your last step, you set the cornerRadius to “buttonWidth()”.... Should that not have been “buttonWidth() / 2” ?
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
From what I notice, SwiftUI doesn't require a precise radius. r
@kokonabil886
@kokonabil886 4 жыл бұрын
it may be a stupid question but I want to know what is the meaning of \.sef
@travelfeaturedyournexttrav5368
@travelfeaturedyournexttrav5368 5 жыл бұрын
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 5 жыл бұрын
Just to be clear, this is a SwiftUI tutorial.
@jakeliujakeliu
@jakeliujakeliu 5 жыл бұрын
Thank you, this is great 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
@yunus6090
@yunus6090 2 жыл бұрын
Thanks
@Music-gn1xe
@Music-gn1xe 4 жыл бұрын
Thank you so much
@MissaMelodica
@MissaMelodica 5 жыл бұрын
Great stuff! Thank you and I learned a lot.
@treeislife
@treeislife 5 жыл бұрын
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 5 жыл бұрын
Hmm..padding and spacing are two totally different things.
@stefancosmin2777
@stefancosmin2777 5 жыл бұрын
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 5 жыл бұрын
@@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
@Vyacheslavskiy
@Vyacheslavskiy 5 жыл бұрын
UIScreen is a very dirty hack, GeometryReader is a perfect solution for such cases
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
Yeah, you can probably tell that I didn't want to use UIScreen there :)
@bernardonigbinde
@bernardonigbinde 5 жыл бұрын
Check "App Guides" section of the website - you'll love it.
4 жыл бұрын
How to do this with GeometryReader ?
@postfixprefix6861
@postfixprefix6861 5 жыл бұрын
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
@smackaroony
@smackaroony 5 жыл бұрын
love it
@sibusisondlovu7509
@sibusisondlovu7509 5 жыл бұрын
top staff
@joannes86
@joannes86 5 жыл бұрын
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 5 жыл бұрын
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.
@7027-s6f
@7027-s6f 5 жыл бұрын
What were they complaining about
@goekhansari
@goekhansari 5 жыл бұрын
thank you man
@rajanabeelahmed2473
@rajanabeelahmed2473 5 жыл бұрын
Thanks King
@sergioudalov361
@sergioudalov361 5 жыл бұрын
from Russia with love
@Creativeetea
@Creativeetea 4 жыл бұрын
A ForEach loop in a ForEach ? Why here ?
@jensonjohn
@jensonjohn 5 жыл бұрын
❤️
@sxteesx
@sxteesx 5 жыл бұрын
Professor Brain (O_O)
@puntawatsubhamani6443
@puntawatsubhamani6443 4 жыл бұрын
It is not that difficult you just need sometimes to master
@zouromd5853
@zouromd5853 5 жыл бұрын
we are in swift 5.1
@smackaroony
@smackaroony 5 жыл бұрын
so many stacks
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
More stacks on the backb
@zouromd5853
@zouromd5853 5 жыл бұрын
project since feb 2018
@SMC247
@SMC247 5 жыл бұрын
Why does "Master Stacking" sound weirdly sexual #randomthoughtfortheday ;)
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
That's how we do
@captainmerica2498
@captainmerica2498 2 жыл бұрын
nice 69th comment
SwiftUI: CalculatorButtons with Enumeration and Switches (Ep 2)
19:02
Lets Build That App
Рет қаралды 23 М.
24 Xcode Tips in 15 Minutes
15:30
Paul Hudson
Рет қаралды 74 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Calculator App Example SwiftUI Xcode Tutorial
8:22
Code With Cal
Рет қаралды 7 М.
SwiftUI Firebase Chat 01: Creating a Login Page
26:07
Lets Build That App
Рет қаралды 34 М.
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 677 М.
WWDC24: SwiftUI essentials | Apple
24:16
Apple Developer
Рет қаралды 100 М.
Reactive Environment Object Application State (Ep 3 SwiftUI)
11:05
Lets Build That App
Рет қаралды 21 М.
The Complete Guide to NavigationView in SwiftUI
39:18
Paul Hudson
Рет қаралды 132 М.
How To Create A Calculator App in Xcode 15 (SwiftUI) - Part 1
12:52
The Swift Guy
Рет қаралды 1,6 М.
iOS Roadmap to Professional Developer: Skills you MUST have!
19:42
Lets Build That App
Рет қаралды 137 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН