Michael Friend
12/10/2024, 9:30 PMShared.Skie.Identifiers.MyClass
but those enum cases take an instance of the wrapped sealed type as a parameter whereas i want to be able to call it like foo(x: .caseA)
Tadeas Kriz
12/10/2024, 9:38 PMenum
, that would describe just the hierarchy without actual class instances, right?Michael Friend
12/10/2024, 9:49 PMMyClass.InnerA.InnerB.Leaf
and `MyClass.InnerA.InnerB.LeafWithProp("string")`and we got a lot of pushback from the iOS team about the name spacing from the nesting being lost in translation and becoming MyClassInnerAInnerBLeaf
as well as not being able to get autocomplete with swift enums .case...
syntax. Right now to appease ios side we basically have a manually maintained wrapper enum written in swift that basically is just a case myclass_innera_innerb_leaf
that has a property with a big switch on self thats basically
var tag: String {
let wrapped =switch self {
case myclass_innera_innerb_leaf: MyClassInnerAInnerBLeaf
...
}
wrapped.tag
}
and i noticed the SKIE generated enum looks pretty similar but isnt hand maintained for every new case.Tadeas Kriz
12/10/2024, 9:52 PMMichael Friend
12/10/2024, 9:54 PM.shared
or ()
when calling it and anything that wasnt nested in the base class didnt show up in the the autocomplete after the dotMichael Friend
12/10/2024, 10:03 PMYou could write your own SKIE subpluginskie felt like magic when i had an early access to it and that hasnt changed lol. Ill leave the wizardry to you for now Tadeas. Thanks for the response!