Skip to main content
4 votes

Form for OTP entry with six single-character text fields

Your solution to this particular problem is fine in its own way. However when it comes to scaling, it will become quite messy. Since I don't see any scope of improvement/tweaking in your approach, I ...
bjg's user avatar
  • 227
2 votes
Accepted

iOS tableView with two special rows of headers

Defensive programming (never force unwrap, no forced cast, ...) is good and important to handle "runtime problems" gracefully: Unexpected user input, failed network connections, I/O errors, and many ...
Martin R's user avatar
  • 24.2k
2 votes
Accepted

UITableView allowing some kinds of requests to be deleted with swipe gestures

In your first implementation you can make deleteAction a constant if you initialize it in all cases of the switch-statement: ...
Martin R's user avatar
  • 24.2k
2 votes
Accepted

Playing a sound depending on the currently displayed flash card image

You shouldn't determine the sound to play from the image displayed. Instead you should use the same piece of information to set both the image ...
vacawama's user avatar
  • 406
2 votes

A quiz to practice some of the notion of the chapter four of app development with swift

First of all I want to mention that I used Swift 4.2/Xcode 10.1 to write this answer. You should have this extension in your project, ...
Roman Podymov's user avatar
1 vote

Damage or Heal based on the buttons you press

not so much but some tiny changes: DRY i just would avoid all the self.healthBarView.frame.size.width and make methods: ...
muescha's user avatar
  • 288
1 vote
Accepted

Swift UITableViewCell class to show cameras, ratings for a car wash and other information

here just my ideas how to improve your code. maybe in some points i am wrong, but this are the places i would dig into and make it a little better: 1) set Image only once ...
muescha's user avatar
  • 288

Only top scored, non community-wiki answers of a minimum length are eligible