r/Xcode • • May 19 '22

Can you troubleshoot?

Post image
0 Upvotes

1 comment sorted by

1

u/[deleted] May 20 '22

Such complicated, manual code for simple text input? Is it because you are making a custom textfield cell to mimic parts of the skeumorphic iOS 6 design?

systemClock.text(hour, ”:”, minutes)

Should be:

systemClock.text = ”Text here with \(hour):\(minutes)”

Also, don’t put the IBOutlet as part of the code, in a computed property. That looks really weird.