The point would be to be able to test the code to find out the issue.
What is self in self.edit ?
What if you replace self.edit() by a call to a dummy func as
func test() { print("Test", self) }
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: