Live data from Hacker News

100 Days of SwiftUI

hackingwithswift.com

61–70 of 110 posts

Re: 100 Days of SwiftUI

#61
post #50

Earlier quoted context omitted.

I’ve been writing mobile apps since 2013. Cross Platform UI is a myth. Just use a framework and language you are familiar or comfortable with. I prefer native so I just stick to that. You are sure to be most productive in languages you are familiar with rather than any new/old cross platform UI framework. Just be cognizant of the fact that all of them have trade offs.

> Cross Platform UI is a myth How can you say this when many of the worlds most used apps are written in React Native? Same with Electron and desktop apps. I find it hard to believe you can be more productive writing native code when you need two entirely different codebases, compared to a single one, no matter how good of an iOS and Android developer you are.

I don't know if I was using React Native "wrong" or what, but when I tried it out I found it to be a miserable experience. There's almost no usable components "built-in"...there seems to be an expectation that you cobble your UI together using one of a variety of different third-party components or component libraries, and every single one I tried was incomplete, buggy, poorly-maintained, poorly-documented...

Based on that trial: I'd much rather work on two sane codebases instead of one in React Native that's a maintenance disaster. As a bonus, since your apps will be native, they'll probably be faster, feel higher quality, integrate better with the platforms, etc.

Re: 100 Days of SwiftUI

#62
post #50

Earlier quoted context omitted.

I’ve been writing mobile apps since 2013. Cross Platform UI is a myth. Just use a framework and language you are familiar or comfortable with. I prefer native so I just stick to that. You are sure to be most productive in languages you are familiar with rather than any new/old cross platform UI framework. Just be cognizant of the fact that all of them have trade offs.

> Cross Platform UI is a myth How can you say this when many of the worlds most used apps are written in React Native? Same with Electron and desktop apps. I find it hard to believe you can be more productive writing native code when you need two entirely different codebases, compared to a single one, no matter how good of an iOS and Android developer you are.

Because when problems come up you need an iOS and Android developer to sort them for you.

Re: 100 Days of SwiftUI

#63
post #50

Earlier quoted context omitted.

I’ve been writing mobile apps since 2013. Cross Platform UI is a myth. Just use a framework and language you are familiar or comfortable with. I prefer native so I just stick to that. You are sure to be most productive in languages you are familiar with rather than any new/old cross platform UI framework. Just be cognizant of the fact that all of them have trade offs.

A lot of people saying it doesn’t exist or work, but as the creator of Tamagui, I have to vouch for it. I think it works pretty amazingly, and we have some really beautiful apps in every App Store (plus web).

Do you have a link to an example iOS app built in Tamagui to check out?

Re: 100 Days of SwiftUI

#64
post #45

i used this to learn swift myself and wished there was a newsletter to send out a reminder for me. instead, i used this apple script to generate a reminder every day for me. you can open Script Editor on your mac and run this. it will start today and schedule a new alert with the appropriate link :) ```AppleScript set baseURL to " https://www.hackingwithswift.com/100/swiftui/ " set numberOfDays to 100 tell applicatio…

note that Swift != SwiftUI, and there are "100 days" courses for both of them.

Re: 100 Days of SwiftUI

#65
post #37

Earlier quoted context omitted.

Flutter is mostly fine. Until you need to implement text input in your app. And it turns out that autocomplete doesn’t work properly on iOS for non-English phones and you discover there’s a bug filled on their tracker for 5 years already and it’s still open [1]. Or you encounter another similar issue that is niche enough that the developers ignore it completely but is frustrating for your users and there’s nothing yo…

Isn't getting 95% of the way there better than getting 0% of the way there? What are you going to do instead?

It depends. For some use cases it’s definitely enough and if you’re on tight budget it might get you far enough. But eventually it might fall short and you’ll have to either fight the framework or switch to a native solution.

I believe it’s good for knocking out an MVP if the mobile app is not critical to your business. I would not choose it otherwise though.

Re: 100 Days of SwiftUI

#66
post #29

Earlier quoted context omitted.

> there will be no good cross-platform mobile UI story Generally (IMHO) there are no good cross-platform stories, mobile or otherwise with the notable exception of some game engines. The closest you can get is choosing the web browser as your platform and writing a web app (Electron). If you want to make the best app you can, use the native toolkit directly or via a framework for your UI.

For web apps on desktop you're not even restricted to Electron anymore. Thanks to Tauri, I feel a lot more comfortable shipping web apps beyond the browser (and React Native) since I don't have to pay the cost of bundling Chromium and Node.js. The Rust ecosystem is large enough that any backend-related task I would use Node.js for has an equivalent in Rust.

We were never restricted to Electron.

There are browsers already installed, and MSHTML apps and XUL predate it for a decade.

Re: 100 Days of SwiftUI

#67
post #11

Earlier quoted context omitted.

Why not include C#/MAUI on this list to make it 5?

The moment it went with Catalyst on macOS and forgot Linux exists entirely it was dead on arrival. It's Xamarin Forms but worse. Well done Microsoft slow clap .

Ignoring Linux I can even understand, given the Year of Linux Desktop meme, but the Catalyst shortcut, what were they thinking.

Not even the new VS4MAC UI uses MAUI, they used their own bindings.

Re: 100 Days of SwiftUI

#68
post #45

i used this to learn swift myself and wished there was a newsletter to send out a reminder for me. instead, i used this apple script to generate a reminder every day for me. you can open Script Editor on your mac and run this. it will start today and schedule a new alert with the appropriate link :) ```AppleScript set baseURL to " https://www.hackingwithswift.com/100/swiftui/ " set numberOfDays to 100 tell applicatio…

note that Swift != SwiftUI, and there are "100 days" courses for both of them.

The URL is correct for SwiftUI.

Re: 100 Days of SwiftUI

#69
post #50

Earlier quoted context omitted.

I’ve been writing mobile apps since 2013. Cross Platform UI is a myth. Just use a framework and language you are familiar or comfortable with. I prefer native so I just stick to that. You are sure to be most productive in languages you are familiar with rather than any new/old cross platform UI framework. Just be cognizant of the fact that all of them have trade offs.

A lot of people saying it doesn’t exist or work, but as the creator of Tamagui, I have to vouch for it. I think it works pretty amazingly, and we have some really beautiful apps in every App Store (plus web).

Sorry but what you say just isn't possible. Especially with a browser-based cross-platform solution, you're gonna pay on the performance and native integration front.

What you built looks nice and I'm sure it works well for many classes of apps though.

Re: 100 Days of SwiftUI

#70
post #4

Tangent but I'm holding out from learning Swift until I see how the "Cross platform UI" wars shake out. We've got at least Kotlin, Dart, and JavaScript all battling it out (via Kotlin Multiplatform, Flutter, React Native) to be the king of UI languages across all platforms. I really like Swift though (from the little I've learned), so it's too bad it doesn't really have a cross platform UI story yet. (I could learn a…

Add Rust to your list. The Rust UI ecosystem is still very immature, but it has a tendency to implement things very well once they are implemented and the potential is huge.

That's another one I'm watching for sure!
Post reply on HN