TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Apple's API's Are Awful (At Least Some of Them)

28 点作者 speedyapoc9 个月前

4 条评论

TheNightman9 个月前
If you think this is bad, try an Apple TV app! A lot of the platform APIs, like the one mentioned in the article, are still in objective C and really beginning to show their age. The worst is when you want to do something in SwiftUI but the platform APIs are UIKit (‘:
评论 #41362957 未加载
Terretta9 个月前
The couple comments and then paragraph about having to restart the simulator:<p><i>... restart the simulator every 3rd try or so. Because if you don’t the workout will still be running in the background and everything just silently fails and you will think you have a bug in your code until you finally find the correct stack overflow reference that just explains this is the way life is.</i><p>Doesn&#x27;t seem to happen to me in the standalone simulator or on a connected device. For me it seems to happen in the Preview, which is not the same thing. It seems to start when you manage to get the main app and the preview version out of sync, usually during a code edit and preview refresh.<p>The problem seems to go away if you handle previews and preview provider concurrency more explicitly:<p><a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;swiftui&#x2F;previewprovider" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;swiftui&#x2F;previewpro...</a>
lawgimenez9 个月前
Also a current funny bug with SwiftUI, if you left out a “dot”, it will compile but crashes the app during runtime.<p>VStack { } navigationDestination(isPresented: $goToSettings) { }<p>There should be a dot before navigationDestination and this should not compile ever.
评论 #41364460 未加载
drekipus9 个月前
&gt; And so Apple, I say, whoever had a hand in this should be ashamed of themselves. You can and should do better. I love SwiftUI. I love building iOS apps. But please clean this up.<p>As a recent macbook convert (work gave me one) I have to remind myself every day:<p>Apple is not a software company. Their business is to sell hardware at a premium. Software is an afterthought, and if they could offload software, they would. The sleek aluminium case, lovely screen, arm processor.. that&#x27;s what you&#x27;re getting.<p>You&#x27;re not paying a premium for the inability to stack windows, or for shitty dual monitor support, or for awful application&#x2F;state management.<p>Apple is a hardware company. They don&#x27;t give a shit about software.
评论 #41363157 未加载
评论 #41363345 未加载
评论 #41363462 未加载