@marcpalmer@iosdev.space
@marcpalmer@iosdev.space avatar

marcpalmer

@marcpalmer@iosdev.space

Day job โ€” iOS on Concepts sketching app.

Indie โ€” Subtitle your damn video posts and make it good! ๐Ÿ‘‰ Captionista for iOS. Promote your apps with framed screenshots! ๐Ÿ‘‰ Shareshot for iOS and macOS (maybe)

๐ŸŒ Green ๐Ÿˆ Animals ๐Ÿ—ฟOld stuff ๐Ÿ›ธ UAPs ๐Ÿ•น๏ธ Was Sprog of UK Atari ST demo crew TLB

This profile is from a federated server and may be incomplete. Browse more on the original instance.

christianselig, to random
@christianselig@mastodon.social avatar

SwiftUI noob question: I understand why my ViewModel is being initialized twice, but why is it not being deinitialized?

It's created, then a second later when appState.show is changed, the view is recomputed, and view, and its ViewModel, are created anew. Cool! But why is the old one not deinitialized? What's holding onto it?

Sample code: https://gist.github.com/christianselig/d88b1a4d1989b973689ae62d4691162f

marcpalmer,
@marcpalmer@iosdev.space avatar

@christianselig is it because your dispatch async closure captures the original value?

marcpalmer,
@marcpalmer@iosdev.space avatar

@christianselig no I get that, just wondered if it was doing something funny with the onAppear closures

marcpalmer, to random
@marcpalmer@iosdev.space avatar

There are so few insects in our rural garden now. Havenโ€™t seen any bats yet this year either. Almost no blackbirds. Lived here for 18 years, this is a drastic change.

This is extremely worrying.

marcpalmer,
@marcpalmer@iosdev.space avatar

@craiggrannell Yep. In the past weโ€™ve had dozens of bees at a time a few years ago. Declined rapidly in last 2-3. The odd cabbage white, again used to have dozens.

jsq, to random
@jsq@mastodon.social avatar

It appears that the Xcode file menu option โ€œResolve Package Versionsโ€ is not the same as "xcodebuild -resolvePackageDependenciesโ€.

I need to be able to โ€œResolve Package Versionsโ€ for all targets in a project via the command line.

Is this even possible? Does anyone know how to do this?

Do you have to invoke xcodebuild -resolvePackageDependencies for every single scheme/target?

marcpalmer,
@marcpalmer@iosdev.space avatar

@jsq @NeoNacho is this not related to Xcode deleting the package.resolved file all the time?

marcpalmer,
@marcpalmer@iosdev.space avatar

@cjwirth @jsq @NeoNacho because it is broken it would seem. For us it normally happens when changing git branch.

craiggrannell, (edited ) to random
@craiggrannell@mastodon.social avatar

UK folks:

  • Publisher states a payment has been made + sent remittance.
  • I have not received the funds (after six weeks now) and my (UK) bankโ€™s customer services, fraud and international teams have all stated they cannot see any payment and that I do not have a block on my account.

Any advice on what to do? Iโ€™ve never been in this situation before, and the amount of money is not insignificant. But also, the publisher appears to be very much in โ€œweโ€™ve paid so nothing we can doโ€ mode now.

marcpalmer,
@marcpalmer@iosdev.space avatar

@craiggrannell @rowan_johnson I think a first port of call is just a simple letter โ€œyouโ€™re outside business terms. Please settle the invoice/provide proof of payment within 7 days or we will be obliged to apply statutory interest to the invoiceโ€. Google the details, but its several % above BoE rate and I believe you can backdate it. Its protected in law. Funny how people can owe ยฃ1000 but freak about paying 8.5%pa more. Tend to pay quick. https://www.gov.uk/late-commercial-payments-interest-debt-recovery/charging-interest-commercial-debt

marcpalmer, to iOS
@marcpalmer@iosdev.space avatar

Any CoreImage gurus out there? Losing my mind ๐Ÿ˜ญ

  1. Load sRGB image with alpha (see bottom โ€œshadowโ€ image with rounded-corners in SwiftUI preview)
  2. Use CoreImage to composite over white
  3. Get smaller, more โ€œpointyโ€ version

Cause: auto-conversion from sRGB to linear sRGB inside CoreImage is not happening, but the nodes are in the tree. Changing CIContext workingColorSpace to NSNull or non-linear sRGB โ€œfixesโ€ it โ€” but canโ€™t be used for correct compositing results. ๐Ÿคฏ?

craiggrannell, to random
@craiggrannell@mastodon.social avatar

โ€œIt didnโ€™t strike me as particularly cleverโ€

Which feels like a problem. Ken Segall has written about whether something is off about Apple ads, in terms of smarts.

โ€œbut I didnโ€™t suspect for even a second that it might prove even slighty controversialโ€

Which I find surprising coming from anyone writing in this space. The intersection of tech and the liberal arts wasnโ€™t supposed to be a crusher.

From: @daringfireball
https://mastodon.social/@daringfireball/112413294096218514

marcpalmer,
@marcpalmer@iosdev.space avatar

@craiggrannell @BenRiceM it is interesting for sure to think about alternatives. The ad was not great but also not a massive issue for me and Iโ€™m super AI. However what you point out is key: what problem is being solved? Not having a drummer, bass player etc. to work with. They are great features, and only intended for roughing out tracks really - but the alternative timeline where Apple built in features to help you find other musicians to collab with in-appโ€ฆ

marcpalmer,
@marcpalmer@iosdev.space avatar

โ€ฆcould be revolutionary if done right. Why not do both? Enabled easy sharing of a rough mix with the collaborator, maybe a free โ€œrecording collab modeโ€ for the recipient to use and the track is automatically delivered back. We know they canโ€™t do social networks properly but imagine the scope of something like this, including publishing music direct to Apple Music and automatically sharing payouts (pennies, OK, different problem) to collaborators.

dan, to random
@dan@duck.haus avatar

Holy shit what??

marcpalmer,
@marcpalmer@iosdev.space avatar

@dan @imyke I have sympathy for this move by Apple. Package-format documents/projects (basically folders) are magically handled by iCloud to make sure updates are atomic on the receiving end, not one file here and there updating as the sync progresses. iCloud even has magic for large zipped file formats now where it can update only the files inside it that change. Other cloud providers donโ€™t seem to have this (?) and so dealing with large files is a nightmare, and folder based docs a disaster.

marcpalmer,
@marcpalmer@iosdev.space avatar

@dan @imyke the problem is I donโ€™t believe there is a way for arbitrary sync services to safely sync multi-file projects. They donโ€™t have atomicity so if you copy such a project or have it open mid-sync of 53 of 89 changed files inside it you get data corruption and maybe crashes. Iโ€™ve dealt with this in detail in two apps. You need extra smarts communicating between sync service and the app to solve these problems. iCloud has that.

marcpalmer,
@marcpalmer@iosdev.space avatar

@dan @imyke You can argue Appleโ€™s 3rd party interface for this (File Providers) is inadequate because nobody (except Working Copy probably) is implementing it properly. Google Driveโ€™s implementation of it is a shit show.

marcpalmer,
@marcpalmer@iosdev.space avatar

@dan @imyke To be specific, Apple platforms have File Coordination to help deal with this (NSFilePresenter, NSFileCoordinator) and even implementing that is non-trivial if youโ€™re not doing things the Applle way. Apple are clearly doing it that way in the apps but the sync services donโ€™t properly participate I imagine and so things likely go bad.

simonbs, to random
@simonbs@mastodon.social avatar

Finally found a place in Denmark that serves espresso tonic, and with that, I think I have a new favorite coffee shop ๐Ÿ˜

Photo of a coffee shop and all its equipment.

marcpalmer,
@marcpalmer@iosdev.space avatar

@simonbs I love coffee and I love tonic waterโ€ฆ I am skeptical but I am going to have to give it a try. I presume the espresso is chilled or on ice?

mcnees, to random
@mcnees@mastodon.social avatar

LaTeX friends!

Iโ€™m looking for a modern and native (not electron) mac OS text editor that might take the place of textmate in my latex workflow.

I'm hoping to find something with existing bundles / scripts / extensions comparable to textmateโ€™s LaTeX bundle. The great "Watch Document" feature works so much better than โ€œlatexmk -pvcโ€.

Any recs? I feel like the pickings are slim. When a nice native editor has any LaTeX support it's usually just syntax highlighting and a basic build script.

marcpalmer,
@marcpalmer@iosdev.space avatar

@mcnees I donโ€™t know about the LaTex specifics but worth taking a look at Panicโ€™s Nova. I use it as my non-Xcode text editor now.

marcpalmer, to random
@marcpalmer@iosdev.space avatar

So I was helping someone set up a new hand-me-down iPhone. This iPhone has been erased, but previously used our home WiFi. It is at the โ€œhelloโ€ screen with the language prompt state.

And yet.

It shows album art on the โ€œhelloโ€ screen for the current music being played on the nearest Homepod in the room. I used another device to change the track and it updated with new art.

What is this witchcraft โ€” and why?!

Migueldeicaza, to random
@Migueldeicaza@mastodon.social avatar

While my UI for Godot on iPad is making a lot of progress, I have come to realize that getting assets into Godot or loading existing projects is an area I havenโ€™t touched.

The iPad doesnโ€™t make it easy to get files into it.

Just did a walkthrough - it is possible today to import files, but it is cumbersome - and this is not what I want peopleโ€™s first impression to be.

And getting your project out is also not obvious.

What would people would like to see in terms of getting data in and out?

marcpalmer,
@marcpalmer@iosdev.space avatar

@Migueldeicaza @simsaens the basic document stuff is fine if you use Appleโ€™s UIDocument etc. Itโ€™s if you get custom that things get hard quickly and if you do custom file management UI itโ€™s a world of hurt.

marcpalmer,
@marcpalmer@iosdev.space avatar

@Migueldeicaza @simsaens definitely not and it would break iCloud sync of the folder contents!

โ€œFunโ€ bug of the day with custom file management UI: FileManager.moveItem of folder B over A where they have the same name and B is a subfolder of Aโ€ฆ A is deleted and therefore so is B and you get an error and all your files are lost. Files app has this behaviour also. Awesome.

petehare, to random
@petehare@mastodon.xyz avatar

I strongly disagree with the coverage that keeps calling it an โ€œEV winterโ€ or an โ€œEV downturnโ€.

Itโ€™s an โ€œexpensive car downturnโ€. The issue isnโ€™t the electric motor, itโ€™s the fact theyโ€™re all high-end vehicles.
https://mas.to/@carnage4life/112224158033304628

marcpalmer,
@marcpalmer@iosdev.space avatar

@Adrianthomas @petehare @carnage4life exactly, theyโ€™ve all been chasing high end car margins because of production and battery constraints. Thereโ€™s almost nothing on the market for people who donโ€™t actually particularly want cars or want luxury, they just need them. We just bought an end of line new Renault Zoe for ยฃ14000. Iโ€™ve never spent more than ยฃ16k on a new car in my life.

Migueldeicaza, to random
@Migueldeicaza@mastodon.social avatar

Delightful - using WebAssembly to speed up Swift macro compilation.

https://forums.swift.org/t/poc-improving-macro-build-times-with-webassembly/70967

marcpalmer,
@marcpalmer@iosdev.space avatar

@Migueldeicaza I canโ€™t even understand what this is doing. I triedโ€ฆ

flargh, to random
@flargh@mastodon.social avatar

@dmoren is right. Also, tvOS deserves better hardware than Apple TV.

https://www.macworld.com/article/2286656/is-tvos-the-least-loved-of-apples-platforms.html

marcpalmer,
@marcpalmer@iosdev.space avatar

@craiggrannell add to that never really making it obvious you can use phones as controllers. They flubbed the initial launch of that feature and then seemed to bury it once it shipped.

czottmann, to random
@czottmann@norden.social avatar

And then you realize that under Sonoma & iOS 17, the conditionals in your appโ€™s Shortcuts actions are ignored by the Shortcuts editor until the first parameter is set by the user โ€” only then the if-this-then-that display logic kicks in.

(ParameterSummaryWhenCondition etc. donโ€™t seem to get initialized right away, unlike on Ventura & iOS 16.)

What. A. Shitshow.

marcpalmer,
@marcpalmer@iosdev.space avatar

@czottmann by this I mean it always chooses the โ€œotherwiseโ€ branch

marcpalmer,
@marcpalmer@iosdev.space avatar

@czottmann oh thanks very interesting I will try that. I did use the full type name and it didnโ€™t work, so I wouldnโ€™t expect Self to work but weโ€™ll find out.

marcpalmer,
@marcpalmer@iosdev.space avatar

@czottmann sad trombone, no it doesnโ€™t. I need to keep trying other things.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • khanakhh
  • InstantRegret
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • tacticalgear
  • mdbf
  • Durango
  • JUstTest
  • modclub
  • osvaldo12
  • ethstaker
  • cubers
  • normalnudes
  • everett
  • tester
  • GTA5RPClips
  • Leos
  • cisconetworking
  • provamag3
  • anitta
  • lostlight
  • All magazines