Luke Redpath Profile picture
Jun 24, 2020 3 tweets 1 min read Read on X
Good to see you can finally import modules/app code into an Xcode playground - you may need to do an testable import of your main app code as it is all internal by default.
You'll need to check this box to make it work. #WWDC Image
Spoke to soon - it imports framework code fine, but even though testable import YourApp_Module satisfies the compiler, it fails at runtime with missing symbol errors.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Luke Redpath

Luke Redpath Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @lukeredpath

Feb 8, 2022
TIL - if you’re creating your own SwiftUI environment keys where the value is some kind of “action”, modelled as a closure (e.g. `() -> Void) you might see unexpected re-renderings of views that use that @environment property.
In our case, we had a custom void closure environment value that we only set once in the whole app (and I confirmed it was only set once), yet a child view was re-rendering and using the new .printChanges() API it was because it thinks the custom environment value changed.
My hunch - which turned out to be correct - was that closures in Swift are reference types and SwiftUI gets confused when its environment holds reference types. As a clue - note that similar built-in values in SwiftUI are actually structs with callAsFunction() methods.
Read 5 tweets
Oct 1, 2020
With all due respect to Rowland, I think this tweet is an inaccurate representation of what the app is doing and I don’t think it’s a bug or that they “accidentally left test code” in the app. (Thread)
The exposure notification framework has its own built in scoring system and prior to iOS 13.7 I believe there was very little way to customise that algorithm. However the NHSX app uses its own scoring system to minimise false alarms. 2/
In order to do this, the app needs to get extra information about a possible exposure. To do this it needs to call the following (now deprecated) API method: developer.apple.com/documentation/…
Read 11 tweets
Sep 17, 2020
Hmm, it looks like the cause of System Preferences beach-balling when trying to manage iCloud settings is because my laptop cannot connect to iCloud at all - even fails in Safari with a connection error. Seemed fine on my iPhone. Anyone else unable to connect?
Other devices on the network can connect, which would seem to rule out a router issue. I can also connect if I tunnel through a VPN - anybody got any ideas?
Damn, it was the Asus router AiProtection - for some reason "P2P and File Transfer" block was blocking access to iCloud.
Read 4 tweets
Sep 17, 2020
Still baffled by the way billing works with Apple Family Sharing. If you want an individual member to pay for their own purchases they need to have an in credit Apple ID balance. But the only way to do that is buy a gift card. 🤷🏻‍♂️
The family owner account can just use “Add Funds to Apple ID” to add funds directly but this doesn’t work on child accounts.
At least (as I’ve just found out) you can buy a gift card online. Just seems like an unnecessary step.
Read 5 tweets
Sep 13, 2020
Starting to instantly recognise fake “brands” on Facebook/Instagram ads as obvious dropshippers with some regularity now. It doesn’t take long to find the stuff they are flogging on AliExpress for a third of the price.
Typically they are Shopify shops with the same copypasta terms and conditions and questionable return policies (eg restocking fees). Some claim their products are “made to order” to get out of honouring returns.
My favourite one is the one who claims their products were “designed” by somebody who based on Googling doesn’t appear to exist. They also have an amusing “authenticity” page warning of “copycats” (in other words other drop shippers flogging the same stuff).
Read 7 tweets
Sep 11, 2020
Job hunt update: I’ve found several interesting opportunities and have spoke to a number of people - thanks to all who have shown interest.

Currently have one or two promising roles that I’m exploring but still nothing concrete as yet. 1/
I’m still exploring Ruby and iOS roles, looking for lead dev or senior roles with a progression route to lead/principle. Open to both but particularly interested in greenfield iOS roles and building an iOS team. 2/
Remote is a red line for me, I don’t mind the occasional visit to the office if London-based but that’s it. 3/
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(