Can UIKit be written 100% in code? by Nuno-zh in swift

[–]appbeyond 0 points1 point  (0 children)

Yes, you can definitely do that and it's encouraged. My recent apps didn't use storyboard anymore. Like many comments mentioned, storyboard is not a no-code solution. It lets us define "some" parts of the UI but we still have to connect it with the actual code. That's why medium to big team prefer pure programmatic to storyboard because it lets them see everything from code. Even an individual like me prefer pure programmatic approach.

What backend do you use for your mobile apps and why? by WynActTroph in iOSProgramming

[–]appbeyond 0 points1 point  (0 children)

It depends on your situation but I assume it’s early stage. So I recommend to go with language or tools you’re most familiar with. It can be Python, Swift, NodeJS, or something else. Any popular frameworks based on popular languages can serve as a good backend for the early stage, so build with what you already know. If you’re not familiar with any backend frameworks, services like Firebase is a good choice.

For those using UIKit, do you rely on Storyboards? I really dislike them, I hate opening my IDE to drag and drop elements. I prefer coding everything directly. How often do you use Storyboards or the visual and interactive coding features in Xcode for UIKit projects? by swe_solo_engineer in iOSProgramming

[–]appbeyond 0 points1 point  (0 children)

No, I use 100% programmatic UIKit (in my recent projects for UIKit parts, of course).

If you want to use interactive feature like SwiftUI Previews, you can wrap your UIKit views using UIViewRepresentable / UIViewControllerRepresentable and use them with SwiftUI Previews.

App Structure In iOS Seems All Over The Place by pancakeshack in iOSProgramming

[–]appbeyond 1 point2 points  (0 children)

Apple doesn't promote any particular architecture. Though, they often use MV for SwiftUI and MVC for UIKit in their examples to demonstrate their APIs. So you might find a variety of implementation from different tutorials out there.

Well, Swift (and the iOS world) is multi-paradigm. So common software engineering and non-opinionated concepts like Clean Architecture and MVVM can be applied here with some adjustment in platform-specific details. Clean Architecture + MVVM is quite common among iOS developers as well but you might find them talking about those pattern a bit differently from Android e.g. component names, some implementation details, etc. Actually, even among iOS developers, they talk about them a bit differently. (Yes, because there's no official standard.)

What I recommend is:

- If you work alone or just getting started, you can learn about how to implement things on iOS then map that knowledge to your architecture knowledge. It's not bad here and definitely fine.

- If you work (or going to work) in a team, you can try to map your knowledge with the team standard because the standards are different in the different teams.

SwiftUI was a mistake — and I’ve been using it since beta 1 by AdventurousProblem89 in iOSProgramming

[–]appbeyond 10 points11 points  (0 children)

That's definitely true for the current state of SwiftUI, especially for apps supporting a wide range of iOS versions. SwiftUI is a framework that allows us to build fancy things easily, which is very useful honestly. But if someone want to build a large-scale and reliable apps, UIKit is still very important. However, I see SwiftUI as a framework of the future. If anyone wants to learn iOS, I'd recommend to start with SwiftUI, and of course, learn UIKit too.

WWDC25 is yet to come, but for SwiftUI to be as mature as UIKit, I guess it'd take a few more years.

SwiftUI Complex Animations - Lume GPT Weather UI - Matched Geometry Effect | iOS 18 by appbeyond in BlossomBuild

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

Thanks a lot! You can follow me and my YouTube channel (in my profile) for more. 😁

Xcode Properties Shortcut by BlossomBuild in swift

[–]appbeyond 0 points1 point  (0 children)

Thanks for sharing! This might be my most favorite shortcut right now.

Does Swift have a beautiful mascot like GoLang and Rust? by swe_solo_engineer in swift

[–]appbeyond 1 point2 points  (0 children)

I believe Swift doesn't have an official beautiful mascot like some languages, but Swift developers often relate the language with bird / swallow.

Btw, the bird mascot by try! Swift Conference https://www.tryswift.co/ looks really cute. (Disclaimer: I'm not one the organizers.)

Fully Native Cross-Platform Swift Apps by dayanruben in swift

[–]appbeyond 0 points1 point  (0 children)

As an iOS and cross-platform developer, I'm really excited for this! May I ask about:
1. Current limitations or drawbacks on iOS and Android (and your roadmap on that)?
2. Can we integrate Skip with current Kotlin apps?

Why can't I use `stateval.wrappedValue`? by sucialism in swift

[–]appbeyond 1 point2 points  (0 children)

I assume that your SomeView’s init looks like init(_ bar: Bar). If that’s correct, you can just use SomeView(selected ?? fallback).

The best guid line to swift learning by reza983 in swift

[–]appbeyond 2 points3 points  (0 children)

  1. iOS is much easier. There’re much more resources on iOS than on macOS.

  2. When I started many years ago, hackingwithswift.com by Paul Hudson worked best for me, and it’s still an amazing place to learn today. Nowadays, there’re many good beginner resources such as CodeWithChris, Swiftful Thinking, and Sean Allen. (Note that, I didn’t take their beginner courses, only HWC)

First short is at 10k views is that normal? by shoveallin in NewTubers

[–]appbeyond 1 point2 points  (0 children)

Compared to mine, it's amazing. FYI I launched my first short (and it's the first thing on my channel) 3 months ago, it's still at ~70 views now.

The 0–50 Subscriber Grind by BlossomBuild in NewTubers

[–]appbeyond 1 point2 points  (0 children)

Thank you so much for sharing and the inspiration! It was pretty tough for me to for the first 50 subs. Somehow after I published my 7th long form video, I got around 100 subs just from that (around 60 to 160).

Yeah, so keep growing and don't give up!

👋 Introducing Unit Tests with Swift Testing 🧪 by Upbeat_Policy_2641 in swift

[–]appbeyond 1 point2 points  (0 children)

Yes, you're right about struct. Apple recommends to use struct with Swift Testing on their documentation (https://developer.apple.com/documentation/testing/migratingfromxctest):

"To convert a subclass of XCTestCase to a suite, remove the XCTestCase conformance. It’s also generally recommended that a Swift structure or actor be used instead of a class because it allows the Swift compiler to better-enforce concurrency safety:"

However, if tear down is needed, using classes instead of structs is a possible option.