jed_fox1’s avatarjed_fox1’s Twitter Archive — № 1,015

  1. …in reply to @stroughtonsmith
    @stroughtonsmith @Javi There are two issues here: the one @Javi mentioned and the fact that the UISwitch is being re-created on every render. For SwiftUI representables, you want to initialize the view in the make method and only refer to it via the parameter passed to the update method.