Post

Replies

Boosts

Views

Activity

Comment on Having trouble with RawRespresentable "Expected to decode String but found a dictionary instead."
Interesting. I would not have thought of that. When you refer to the "need to keep Activities and Activities.Inner in sync", is this referring to updating the code in the struct? No need to keep an Inner synced to Activities at run time right? Thanks for the suggestion I'm going to work with it tonight. I have to admit the duplication in Inner seems suboptimal, but if this way works when my approach fails, I'm all ears.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’26
Comment on Implementing RawRepresentable for a DictionaryType has broken my Test target build. Not sure how to fix things...
Thanks Quinn, this makes sense. My 'final destination' is: @AppStorage("scriptPickers") var scriptPickers: ScriptPickers = ScriptPickers.defaultDictionary In order for this to work I implemented RawRepresentable for ScriptPickers. While the part of my brain that likes efficiency has an allergic reaction to: struct ScriptPickersWrapper: { let scriptPickers: ScriptPicker } I now see how this is preferable to adding a RawRepresentable conformance for Dictionary. thanks
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’25
Comment on Trying to better understand CGAffineTransform.... and need a bit of guidance.
Stepping back from my specific question, I'm performing a scale and a rotation, both of which need to be compensated with a translation. While I'm currently doing this in 3 steps: translate (compensating for both scale and rotation) scale rotation My plan is to just directly set a,b,c,d,tx,ty in one step. (now that I think I at least partly understand what I'm doing :-)
Topic: Graphics & Games SubTopic: General Tags:
Jan ’25
Comment on Trying to better understand CGAffineTransform.... and need a bit of guidance.
Your sample code is exactly what I needed to do (ie translation before rotation) Stepping back from my specific question, my larger goal is to perform 4 steps scale up in size translate (so the scale happens about a specific 'center' point) rotate translate (so the rotation happens about the same centre point) Based on the feedback here I've change to translate (to compensate for the scaling) translate (to compensate for the rotation) scale up rotate Thanks Claude
Topic: Graphics & Games SubTopic: General Tags:
Jan ’25
Comment on Should Photo Extensions work in iOS simulators?
Hello gchiste, your assumption is correct. I was referring to a "Photo Editing Extension" I still do not see my extension when I follow the above steps, however I do see it when I follow these steps: run my new 'empty' PhotoEditingExtension target in an iOS simulator select photos as the app to run open a photo tap 'Edit' tap the ... button in the Edit view Following the above steps no a physical device I don't see my extension in the Options bottom sheet :-(
Topic: App & System Services SubTopic: General Tags:
Jan ’24
Comment on Having trouble with RawRespresentable "Expected to decode String but found a dictionary instead."
Interesting. I would not have thought of that. When you refer to the "need to keep Activities and Activities.Inner in sync", is this referring to updating the code in the struct? No need to keep an Inner synced to Activities at run time right? Thanks for the suggestion I'm going to work with it tonight. I have to admit the duplication in Inner seems suboptimal, but if this way works when my approach fails, I'm all ears.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’26
Comment on Implementing RawRepresentable for a DictionaryType has broken my Test target build. Not sure how to fix things...
Thanks Quinn, this makes sense. My 'final destination' is: @AppStorage("scriptPickers") var scriptPickers: ScriptPickers = ScriptPickers.defaultDictionary In order for this to work I implemented RawRepresentable for ScriptPickers. While the part of my brain that likes efficiency has an allergic reaction to: struct ScriptPickersWrapper: { let scriptPickers: ScriptPicker } I now see how this is preferable to adding a RawRepresentable conformance for Dictionary. thanks
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’25
Comment on Trying to better understand CGAffineTransform.... and need a bit of guidance.
Stepping back from my specific question, I'm performing a scale and a rotation, both of which need to be compensated with a translation. While I'm currently doing this in 3 steps: translate (compensating for both scale and rotation) scale rotation My plan is to just directly set a,b,c,d,tx,ty in one step. (now that I think I at least partly understand what I'm doing :-)
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’25
Comment on Trying to better understand CGAffineTransform.... and need a bit of guidance.
Your sample code is exactly what I needed to do (ie translation before rotation) Stepping back from my specific question, my larger goal is to perform 4 steps scale up in size translate (so the scale happens about a specific 'center' point) rotate translate (so the rotation happens about the same centre point) Based on the feedback here I've change to translate (to compensate for the scaling) translate (to compensate for the rotation) scale up rotate Thanks Claude
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’25
Comment on Should Photo Extensions work in iOS simulators?
Hello gchiste, your assumption is correct. I was referring to a "Photo Editing Extension" I still do not see my extension when I follow the above steps, however I do see it when I follow these steps: run my new 'empty' PhotoEditingExtension target in an iOS simulator select photos as the app to run open a photo tap 'Edit' tap the ... button in the Edit view Following the above steps no a physical device I don't see my extension in the Options bottom sheet :-(
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’24