Many of the earliest virus exploits relied on poor/no data validation. Indeed, the problem persists even today with developers seemingly forgetting about data validation. This is a big hole that needs to be avoided, which isn’t difficult to do. It’s just rather dull and time-consuming to get right sometimes.

With that in mind, I thought I would try to provide a simple example for you to copy and paste should the need arise. The requirement is to input a PIN number, although it could be any string in effect.

#programming #swiftui #swift #mobile #ios

Data Validation in SwiftUI 2.0
2.30 GEEK