@samuelkraft
Samuel
2 years
Diving head first into SwiftUI, wish me luck
3
0
9

Replies

@samuelkraft
Samuel
2 years
First success! πŸ™Œ Managed to hack together a simple list of all my blogposts showing their views & likes
Tweet media one
1
0
2
@samuelkraft
Samuel
2 years
Second success: interactivity! Sort posts by date, likes & views ✨
1
0
1
@samuelkraft
Samuel
2 years
I dig how easy it is to build something that looks ok with barely any added styling, compared to the blank slate of a web app
1
0
0
@samuelkraft
Samuel
2 years
Learned to do basic math by adding view/like totals (need help getting that like count over 1000 now ok?πŸ™ˆ). map() and reduce() surprisingly similar to js equivalent
Tweet media one
Tweet media two
1
0
0
@samuelkraft
Samuel
2 years
Third success: Navigation, remote image loading & opening external links in a SFSafariView. Also learned about accentColor (go orange!) and ButtonStyle
1
0
3
@samuelkraft
Samuel
2 years
Today I learned about Tab Bars and how to layout with Grids by breaking out the "totals" to their own tab
1
0
1
@samuelkraft
Samuel
2 years
πŸ” Added search + refactored the data fetching logic
1
0
1
@samuelkraft
Samuel
2 years
πŸŽ₯ Finishing this first experiment of SwiftUl with an on-device video of my small blogpost-stats app, feels amazing having it in your hand! Impressed how easy it was to get it to look ok (albeit stock), and features like filtering, searching, pull-to-refresh, animations and grids
1
0
1
@samuelkraft
Samuel
2 years
The source code is open here: The API route powering the data:
0
0
0
@BraydonCoyer
Braydon Coyer
2 years
@samuelkraft So cool! I loved working with SwiftUI last year!
1
0
1
@samuelkraft
Samuel
2 years
@BraydonCoyer What did you build? I'm enjoying it so far!
0
0
0
@chrcit
Christian Cito
2 years
@samuelkraft That’s very cool! I last built an iOS app for a school project back in 2014 and I want to try it out again this year. Can you recommend any resources for SwiftUI and/or general modern iOS dev?
1
0
0
@samuelkraft
Samuel
2 years
@chrcit Things must have changed a lot since! I enjoyed this as an introduction to SwiftUI Then I like to learn as I'm building so looked at apples example apps here (specifically the "Meme Creator" to learn data fetching)
2
1
1
@samuelkraft
Samuel
2 years
@notkoalas Thanks!
0
0
0
@samuelkraft
Samuel
2 years
@lerneSwiftUi Thank you, that's way too kind! Learning by trial and error πŸ˜… Very lucky that soo many amazing developers are publishing blogposts and open sourcing their apps πŸ™
0
0
0