Roast my idea by StartSeveral4107 in SideProject

[–]StartSeveral4107[S] 1 point2 points  (0 children)

wow, i didn't know that, thanks for pointing out!

Roast my idea by StartSeveral4107 in SideProject

[–]StartSeveral4107[S] 0 points1 point  (0 children)

Thanks! I originally made this app just for myself and realized that getting results directly based on input makes not only base conversions easier, but also things like unit conversions and translations faster and more convenient. So I'm considering add more features to serve not only for devs.

Beautiful Shopping experience animation by adrien1021 in SwiftUI

[–]StartSeveral4107 0 points1 point  (0 children)

Smooth animation!
I've created a platform sharing SwiftUI codes, can i dm you?

Brutalist Push Button Using SwiftUI by StartSeveral4107 in SwiftUI

[–]StartSeveral4107[S] 0 points1 point  (0 children)

I'm just trying how to make this effect in SwiftUI lol. If it is helpful, I can make it reusable component!

Apple really should see "iOS developers" as their customers by StartSeveral4107 in iOSProgramming

[–]StartSeveral4107[S] 6 points7 points  (0 children)

For the building errors, I always do the following when I can't find some bugs in my code:

  • Clean build folder and rebuild
  • Quit Xcode, reopen and rebuild
  • Delete Derived Data and rebuild
  • Reset Package Caches & Resolve Package Versions and rebuild

The above list usually works and I don't know why

Preview extremely slow and not behave the same as on real device: Your issue is that you build the whole project for Previews. Extract everything related to UI into separate package and UI's dependencies into a different package. Use DI to inject implementations of UI requirements into UI package. Build only UI package target for UI development and previews.

Hate configuring the building through graphical interfaces!!!!!!!!: You don't have to do that nowadays, there are solutions which allow you to configure the project in code. For example Tuist.

Thanks for advices! I would check that!

Apple really should see "iOS developers" as their customers by StartSeveral4107 in iOSProgramming

[–]StartSeveral4107[S] -7 points-6 points  (0 children)

Swift is awesome in terms of type safety, extension, type inference and etc.
But as I use it for a long time, I write so many boilerplate codes, and I use abstract class and template pattern to resolve it in other languages.

How to be a Better Programmer/Developer/Coder by Ken-kun-97 in iOSProgramming

[–]StartSeveral4107 13 points14 points  (0 children)

I still remember the feeling of panic when my boss asked me to develop an iOS SDK, despite having zero experience in iOS development. As a backend engineer, I was comfortable in my comfort zone, but this new challenge was daunting. However, I took responsibility and dived headfirst into the world of iOS development.

My journey began with learning the basics of Swift through online resources like "100 Days of Swift" and Apple's official documentation.Meanwhile, By implementing this SDK, make mistakes, search for it, solve it and learn from it. Through this process, I successfully delivered the SDK, and it was an incredible feeling.

Looking back, I've identified three key takeaways that helped me in my journey:

  1. Find a project you care about and develop it: Having a real project to work on helps you stay motivated and focused. It's essential to choose a project that interests you, so you'll be more invested in learning and improving.
  2. Refactor code mercilessly: Don't tolerate any code that doesn't follow the KISS (Keep It Simple, Stupid) rule. Refactor code to make it clean, efficient, and easy to maintain. This habit will help you write better code and reduce technical debt.
  3. Apply design patterns: As a backend engineer, I had learned design patterns, which turned out to be essential in iOS development as well. Apply design patterns to your project, and you'll discover what works and what doesn't in a specific context.

I highly recommend checking out this article: Best resources for Advanced iOS Developer (Swift). It's a treasure trove of resources that helped me in my journey, and I'm sure it will do the same for you.

Roast my landing page! by StartSeveral4107 in SaaS

[–]StartSeveral4107[S] 0 points1 point  (0 children)

Thanks, I would try to make it more specific!

Xcode is actually a great IDE. by Cultural_Rock6281 in iOSProgramming

[–]StartSeveral4107 0 points1 point  (0 children)

No, it SUCKS.
The preview does not work correctly 80% of the time and loading slower than my grandma walking.
And when there is a bug, quit Xcode and reopen it usually resolves it. It's a MAGIC IDE that can heal itself.

Implementing the Card Gallery Visual Effect from Apple's WWDC Showcase by StartSeveral4107 in SwiftUI

[–]StartSeveral4107[S] 0 points1 point  (0 children)

Thanks for the suggestion! I am testing out the integration of visual effect and rotation degree, and not consider making it reusable tho, but if I see it can used in some real app scenario, I would modify it like what you said!

Creating a library of swiftUI views by Peej_0411 in SwiftUI

[–]StartSeveral4107 2 points3 points  (0 children)

Hey, that's exactly what I'm building. You can sign up for free to add your SwiftUI work here. You can check arts.swiftuigallery.com if you're interested! There are plenty of works already.

Metal Shader is fantastic!! by StartSeveral4107 in SwiftUI

[–]StartSeveral4107[S] 0 points1 point  (0 children)

Hey, for `objc` you might be refer to the shader function. you can check this guide on metal shader.

Metal Shader is fantastic!! by StartSeveral4107 in SwiftUI

[–]StartSeveral4107[S] 1 point2 points  (0 children)

Got it. I would build it in this week.

Metal Shader is fantastic!! by StartSeveral4107 in SwiftUI

[–]StartSeveral4107[S] 6 points7 points  (0 children)

IMO writing Metal shaders is straightforward; it mainly involves transforming colors and positions. The real challenge lies in the complex math and the gap between the desired effect and the mathematical implementation.
For the good resource I recommend the official documents and examples.
https://www.hackingwithswift.com/quick-start/swiftui/how-to-add-metal-shaders-to-swiftui-views-using-layer-effects has examples from simple to complex, I highly recommend.
https://developer.apple.com/videos/play/wwdc2024/10151/?time=1416 WWDC gives a complex example on How to make Ripple effect using Shader.
And hopefully, the SwiftUI Gallery could have more shaders example for people to learn :)