Post

Replies

Boosts

Views

Activity

Reply to Use of `self` - Confusion
Thank you! for the suggestion on renaming the variable. I'm afraid i'm new to Swift and didn't know i could map it to another name. I would rather do that. Incidentally i did manage to get this working by using self.self.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Use of `self` - Confusion
I figured out what the issue is. i had `self` = try container.decode(URL.self, forKey: .`self`) but it should be self.`self` = try container.decode(URL.self, forKey: .`self`) Which has fixed the problem.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Use of `self` - Confusion
I figured out what the issue is. i had ``self = try container.decode(URL.self, forKey: .self) but it should be self.self = try container.decode(URL.self, forKey: .self)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22