SwiftUI Tutorial: Progress Bar with Animation
HTML-код
- Опубликовано: 1 фев 2025
- This swiftui tutorial shows you how to create an animated progress bar in xcode. SwiftUI is one of the most beginner-friendly ways to learn iOS development with Swift.
This tutorial uses Xcode 12 and Swift 5.
Great place for beginners to start iOS Development with Swift: gumroad.com/a/...
Instagram: / logankoshenka
Twitter: / logankoshenka
This video and description may contain affiliate links. If you click on a link and make a purchase, I may receive a commission. Money earned helps to support my channel.
#SwiftUI #Tutorial #iOSDevelopment
That was a great tutorial. Ive been self teaching swift on and off for a little while, still a complete noob, but I never realized you could command click to embed VStacks lol. Adding information like that in your tutorials is very helpful!
Thank you!
Cool! Thanks for the help! With my OCD I made an adjustment so the inner rounded rectangle is at the very least a circle, otherwise it won't lie inside its gray container at smaller percentages, so I made this change to calculate the multiplier:
let halfOfHeight = (height / 2)
let progressWithMin = percent > halfOfHeight ? percent : halfOfHeight
let multiplier = progressWithMin / 100
Stumbled across the video yesterday and have to say wow - you make it look so simple - I had implemented a energy bar in my game using multiple slspritenodes and hiding or showing each one depending on the value lol / looks so much easier your way
haha thanks, glad you like it!
@@logankoshenka I too am learning this new fangled swift thing… (I’m old - grew up on cobol and basic) lol - I may reach out to you if I get stuck with other things - hope you don’t mind… sorry I don’t do any of that instratwitter thing 😂
haha of course not, feel free!
Awesome tutorial Logan, still not working with SwiftUI yet, but I can say that you make it look pretty simple and clear,
means a lot, thank you!
Awesome video! Keep posting about SwiftUI 👌
thank you!
an outstanding tutorial.. thanks a bunch.... Easy to understand and quite effective in its implementation
Thank you for watching! Glad you liked it.
I am working on swiftui widgetkit, and this helps me a-lot thanks
great!!
So good! 👏 Thanks for the walk-through
thank you!
super awesome!
thanks so much :D
Really helpful, and legit a good tutorial
Means a lot - thank you!
Love goes out to u dude
🤝❤️
this is so interesting and helpful!!!! ❤️
Good Job!!! Nice Video!!
thank you!
Looks great however the animation approach has been deprecated. How would you replace this now?
oh, you just add the variable value you are changing on.
correct! sorry - just saw this! you good?
@@logankoshenka yeah answered my own question in like 10 secs. It looks like it wasn’t completely deprecated they just added the value.
I tried using the .animation line in my own code to get the same spring effect but it says that its no longer supported, how would I do this now.
never mind lol i saw someone else had the same question
yes just slightly different now - let me know if you need help!
@@logankoshenka yea im also trying to make it so that you dont even need the button to make the bar move. do you know how to do that
I'm the 300th person to like 🎉🥳
woohoo!! I appreciate it!!
just stumble across this video today and it's great tutorial video, but I use Navigation link (because I would like to use 1 big project to include many instance/example) to access to this progressbar view, how could I achieve this same variable @Star var ( and animation ) ?
Thank you! And I’m not sure I fully understand your question - can you elaborate?
EXCELLENT !!!
thank you!
Creat tutorial : move your multiplier out of body ;)
var multiplier: CGFloat {
progressBarWidth / 100
}
yes! good call haha thanks
nice video)) thanks)
thank you!
"It works!" and bug appears right away, on 1% 😂