You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a struct with @Element and @Attribute and then try to create an init () {} you always get the error from the title even though all are initialised in the constructor before self is used.
Example:
import XMLCoder
publicstructLocalizableText:Codable{@Attributepublicvarlanguage:String@Elementpublicvarvalue:String?enumCodingKeys:String,CodingKey{case language ="Language"case value =""}publicinit(){
language =""
value ="de/de"}}
The text was updated successfully, but these errors were encountered:
When creating a struct with
@Element
and@Attribute
and then try to create aninit () {}
you always get the error from the title even though all are initialised in the constructor before self is used.Example:
The text was updated successfully, but these errors were encountered: