Live data from Hacker News

Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

blog.timac.org

131–140 of 145 posts

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#131
post #50

Earlier quoted context omitted.

That's because the majority of iPhone users are consumers. The majority of Mac users are producers, creating content for the iPhone users. If they kill Mac then their iPhone cash cow will dwindle as they will no longer have content.

This is pretty much only because the Mac is the only way to "officially" create iPhone apps.

And, while it is really the only way to create iPhone content Apple cannot let the Mac die.

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#132

Earlier quoted context omitted.

My worry though is that when Windows fucked up, Mac OS was a viable alternative. Now that Mac fucks up, what's the alternative? Linux has its own challenges.

The viable alternative is Windows, as pretty much all the tablet nonsense is gone in Windows 10 and 11.

Windows is absolutely not an alternative. The UI degradation we're complaining about in the Mac has already happened in Windows - I mean they've now got 3 different UI paradigms for system settings and the newest one is this disgusting phone-style UI full of whitespace. Ads and "suggestions" everywhere don't help either.

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#133
post #73

Earlier quoted context omitted.

The enter key activates the blue (default) button, the spacebar activates the one with the focus ring around it. You can move the focus ring with tab.

Cmd+the first letter of the button works.

Doesn't work for me, probably because my system language is Russian. The button is "Удалить" but neither Cmd+D nor Cmd+У work, regardless of the current keyboard layout.

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#134
post #77
post #63

Earlier quoted context omitted.

> do you use a lot of windows? I do, yeah. Though I stopped using windows for work and just use it daily for gaming or just general reading/browsing/minor task machine. Occasionally I would write a bit of code on it, maybe a small python script or some in-browser debugging, but that's about it. For work, audio/music recording related stuff, coding side projects, and all other sort of personal usage, it is macOS. I al…

Actually, I was wondering if you drag, resize, or organize desktop windows ( https://developer.apple.com/design/human-interface-guideline... ) to do things that aren’t possible on iOS. Though, I also use Windows for gaming, mostly Rocket League :-)

So sorry, I totally misread what you meant and wrote a wall of text about Windows OS, rather than desktop window management.

I do use quite a lot of application windows on macOS, and I use Rectangle Pro to snap/organize them. I saw someone else mentioning Moom in the comments as well, also heard good things about it.

However, I will admit, I definitely like the way FancyZones (feature built-into PowerToys, which is a first party Microsoft tool for Win10/11 full of other nifty things) window management works more than that of Rectangle Pro. But the combination of Rectangle Pro + virtual desktop organization + trackpad gestures is imo amazing for overall window management for me. I definitely like that overall package more than FancyZones on its own.

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#135
post #49

Earlier quoted context omitted.

That's because the majority of iPhone users are consumers. The majority of Mac users are producers, creating content for the iPhone users. If they kill Mac then their iPhone cash cow will dwindle as they will no longer have content.

> The majority of Mac users are producers That's not true at all, and sounds like Mac user elitism that everyone hates. It is true, that many iPhone users aren't interested in mac and some not interested in any kind of desktop/laptop device at all. The same true vice-versa - I have a mac* and not interested in iPhone and plenty of my colleges are the same. *: One because compliance is easier than on Linux and another…

Sorry, that's not what I meant, I incorrectly phrased that the wrong way around.

If you are making stuff for iPhones, you essentially have to have a Mac because XCode to create iPhone apps requires a Mac to run. I meant the majory of app creators are Mac users. So if they kill the Mac workflow then they will castrate the cash cow that is the iPhone.

I know there are alternative workflows you could make by using something that can cross compile to iPhone and using a Windows/Linux system, then renting a Mac device via a cloud service like AWS, but I would be surprised if it made up a significant amount of development.

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#136
post #129

Earlier quoted context omitted.

I hoped Apple would have had the design sense to keep them separate like they should be I don't think Apple lost their religion. I think Catalyst/SwiftUI were created as an answer to desktop applications moving to Electron. Moving to web-based applications significantly reduces the value proposition of macOS and to some extend also iPadOS/iOS. Most likely, a SwiftUI app will still be a better macOS app than an Electr…

> I think Catalyst/SwiftUI were created as an answer to desktop applications moving to Electron. How is it an answer? Electron gives the developer the same code for the web and for Microsoft Windows. Catalyst and SwiftUI give the developer none of theses.

macOS has a small number of users compared to iOS. Many companies do make native iOS apps due to its large market share. If macOS can be targeted with the same API as iOS, it's more attractive for developers who are writing an iOS app to make a macOS build as well.

This has already happened for a small number of applications -- e.g. the macOS Twitter app is a port of the iOS app using the Catalyst framework.

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#137
post #129

Earlier quoted context omitted.

> I think Catalyst/SwiftUI were created as an answer to desktop applications moving to Electron. How is it an answer? Electron gives the developer the same code for the web and for Microsoft Windows. Catalyst and SwiftUI give the developer none of theses.

macOS has a small number of users compared to iOS. Many companies do make native iOS apps due to its large market share. If macOS can be targeted with the same API as iOS, it's more attractive for developers who are writing an iOS app to make a macOS build as well. This has already happened for a small number of applications -- e.g. the macOS Twitter app is a port of the iOS app using the Catalyst framework.

This has nothing to do with Electron.

There's no Electron for iOS (because Apple requires WebKit and prohibits Chromium).

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#138
post #66

Yup. and basically all apps (re)created suck big time. They're just iOS ports. You're forced to do litereally everything using your mouse, and for example the Home app, it's basically useless if you want to organize/edit things. We're going to a CRUD operation world, where you have to do every edit one-by-one. And then in a few years, people will be amazed that you can save so much time because of a new "bulk editing…

I started using macOS with Big Sur (still on it) and I don't understand why Apple would remove the ability to select buttons in dialog windows with the keyboard. I've googled it and it seems you used to be able to do that on macOS, but when I follow the instructions on Big Sur, I can't move the selection from the button active by default to the other one (e.g. "Ok" vs "Cancel"). That means my right hand is making run…

As others have said "use keyboard for navigation" works, but also you can generally press any button with the shortcut cmd-first-letter-of-button-text. E.G., if the dialog is "delete" and "cancel" and cancel is the default, cmd-D should press "delete". "replace" and "cancel", cmd-R should press "replace". Etc

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#139
post #4

In 2021, the Mac grossed $30B. iPad ($30B) and iPhone ($196B) together grossed $226B. Mac users might think they're still the most important part of Apple but it turns out, the Mac is quite insignificant compared to Apple's mobile OS's when you put things in perspective. I am still surprised that Apple is pouring resources into the Mac. Nowadays, smartphones and tablets are the main computer for 90% of people. The so…

I wouldn't call $30B insignificant! Would you lose these 30 billions because you can't bother to take care of the Mac?

Re: Apple’s Use of AppKit, Mac Catalyst and SwiftUI in macOS

#140

I recently took to rewriting what should be a very simple app from Obj-C to Swift with SwiftUI - because it's the future. The CPU usage was at 5% while idle, just for having a simple tiny pie chart that updates. Not to mention that for some seemingly basic things I still had to use AppKit anyway. Wrote basically the exact same thing 1 day later in Swift with AppKit and NO SwiftUI and it sits at 0% CPU usage with less…

Is this app open source? I would live to poke around and see the difference both in code and performance
Post reply on HN