yakovtouatiBALINK / ios_bootcamp_balink

yacov touati
0 stars 0 forks source link

good idea #6

Open yoni-g opened 1 year ago

yoni-g commented 1 year ago

https://github.com/yakovtouatiBALINK/ios_bootcamp_balink/blob/e25e4031f9393169e7f043dd6c7e18ea011e59a9/week-2/to%20du%20list/to%20du%20list/ViewController.swift#L12

I liked your idea. but you can also:

  1. create random number :)
  2. regularly when declaring such array you write like this:
var arr = [
  UIColor(xxxxx),
  UIColor(xxxxx),
  UIColor(xxxxx),
  UIColor(xxxxx),
  UIColor(xxxxx)
] 

its much more readable

yoni-g commented 1 year ago

@yakovtouatiBALINK - you haven't resolved the issue yet