I got into SwiftUI some time ago. After sprinkling a few files into my projects, I decided to take a look at a full rewrite.
That app is not even close to be released, but some packages are!
Let me introduce the SNAP package suite: https://t.co/eWRu0RbTO6
🧵 for details …
@mredig She still has control to her Facebook, which is linked to instagram. But she can’t control the Instagram account via Facebook, because she needs to log in to Instagram to do so.
The weird part: they changed the email without the process that the Instagram support indicates.
Does anyone have experience with hacked Instagram accounts?
Somehow someone managed to change the email address of my wifes account. Without her getting an email to confirm the new email.
The support only references this email to revert the email change.
Feels like Apple is in final Feedback mode before WWDC.
Just got a response to https://t.co/q6RCgGWHdS… with an updated example code to show what I did wrong 🤯👏
The proposed solution still does not work on iOS though 🙄
After a few month into the big rewrite of Figure Case it feels weird to have nothing to release for a while.
So I just created a tiny update 🤷♂️
… waiting for review actually feels good 😅
As pointed out on Mastodon the example is pretty bad.
Conditional ViewModifier should be used carefully as it does not maintain the view identify and can lose state.
As a rule: if you expect the condition to change, use a ternary operator.
I got into SwiftUI some time ago. After sprinkling a few files into my projects, I decided to take a look at a full rewrite.
That app is not even close to be released, but some packages are!
Let me introduce the SNAP package suite: https://t.co/eWRu0RbTO6
🧵 for details …
1. SnapCore - A collection of useful helper implementations, common extensions, convenience definitions and workarounds.
https://t.co/3qrUqZN4kN
When I run into SwiftUI workarounds, I try to make them reusable.
Contains a conditional ViewModifier, can’t do SwiftUI without it!
6. SnapSwiftData
https://t.co/kbOjoKBPLe
A bonus package to improve interoperability between SwiftData and CoreData. It provides SwiftData with access to CoreData objects and Persistent History Tracking.
5. SnapAppTemplate
https://t.co/ZB7FOJx43M
Where all packages come together:
1.Infrastructure with the packages ready to go.
2.Define a navigation hierarchy for the app.
3.SnapMatchingNavigation
4.Settings screen with some theme configuration options.
Are there any Swift Macro experts around?
Seems like a steep learning curve and I am not sure if I should even begin to look into it deeper.
Is it possible to get the name of the attribute the macro is attached to?
@mredig That’s true, but it’s text that can be autocompleted vs text I have to type and want to exactly match. It’s especially annoying when changing it later on.
I did browse through a few examples, but they always try to do fancy stuff, nothing that useless 😅