Open2023/10/14にコメント追加4雑多えび2023/10/14https://qiita.com/Tatsuya_ss0121/items/e44511c412956ba42056 えび2023/10/14文中の例で、didSetのタイミングでバリデーション的なことしてるのが気になる。 なぜ一回代入させた上でチェックするのか。 感覚的にはWillSetの方が適切に思える。 えび2023/10/14に更新https://note.com/branch_it_sol205/n/n981dd2a8a3f8#apBNu 話がちょい変わるけどこの使い方良いな。 レイアウトに該当するコードがきゅっとまとまる。 どの要素に対応するレイアウトの更新動作なのか、一目瞭然。 えび2023/10/14に更新この辺り、後で読む。 https://forums.swift.org/t/didset-is-not-triggered-while-called-after-super-init/45226 https://zenn.dev/ikuraikura/articles/2022-02-27-did-set https://qiita.com/turara/items/8302e9bf61eb778e3d9c https://techblog.sgr-ksmt.dev/2017/03/09/deinit_didset/ 返信を追加
えび2023/10/14https://qiita.com/Tatsuya_ss0121/items/e44511c412956ba42056 えび2023/10/14文中の例で、didSetのタイミングでバリデーション的なことしてるのが気になる。 なぜ一回代入させた上でチェックするのか。 感覚的にはWillSetの方が適切に思える。 えび2023/10/14に更新https://note.com/branch_it_sol205/n/n981dd2a8a3f8#apBNu 話がちょい変わるけどこの使い方良いな。 レイアウトに該当するコードがきゅっとまとまる。 どの要素に対応するレイアウトの更新動作なのか、一目瞭然。 えび2023/10/14に更新この辺り、後で読む。 https://forums.swift.org/t/didset-is-not-triggered-while-called-after-super-init/45226 https://zenn.dev/ikuraikura/articles/2022-02-27-did-set https://qiita.com/turara/items/8302e9bf61eb778e3d9c https://techblog.sgr-ksmt.dev/2017/03/09/deinit_didset/ 返信を追加
えび2023/10/14に更新https://note.com/branch_it_sol205/n/n981dd2a8a3f8#apBNu 話がちょい変わるけどこの使い方良いな。 レイアウトに該当するコードがきゅっとまとまる。 どの要素に対応するレイアウトの更新動作なのか、一目瞭然。
えび2023/10/14に更新この辺り、後で読む。 https://forums.swift.org/t/didset-is-not-triggered-while-called-after-super-init/45226 https://zenn.dev/ikuraikura/articles/2022-02-27-did-set https://qiita.com/turara/items/8302e9bf61eb778e3d9c https://techblog.sgr-ksmt.dev/2017/03/09/deinit_didset/