ValidatedPropertyKit v0.0.7 Release Notes

Release Date: 2022-12-30 // over 3 years ago
  • What's Changed

    • ๐Ÿ›  Fixed a bug where a property attributed with @Validated couldn't be mutated.

    Full Changelog : 0.0.6...0.0.7


Previous changes from v0.0.5

  • ๐Ÿ”จ Refactored Architecture

    ๐Ÿš€ This release contains breaking changes and introduces a more SwiftUI oriented architecture.

    structLoginView:View{@Validated(!.isEmpty && .isEmail)varmailAddress=String()@Validated(.range(8...))varpassword=String()varbody:someView{List{TextField("E-Mail",text:self.$mailAddress)TextField("Password",text:self.$password)Button(action:{print("Login",self.mailAddress,self.password)},label:{Text("Submit")}).validated(self._mailAddress,self._password)}}}