title: 'subscript' is unavailable: cannot subscript String with an Int, see the documentation comment for discussion
body: <p><a href="https://i.stack.imgur.com/tLTDs.png" rel="nofollow noreferrer">ScreenShot of issue</a></p>
  
  <p>I want to change the color the selected String from the cell.
  some chunks of code given below to more help to me.</p>
  
  <p><em><code>'subscript' is unavailable: cannot subscript String with an Int, see the documentation comment for discussion</code></em></p>
  
  <pre><code>{
      let Cell = tableView.dequeueReusableCell(withIdentifier: "Cell1", for: indexPath)as! FirstTableViewCell
      Cell.selectionStyle = .none
  
      Cell.marqueeLabel1.type = .continuous
      Cell.marqueeLabel1.animationCurve = .easeInOut
  
      let strings = "Purchase bids- 0123456789     Sell Bids- 0123456789     Cleared- 0123456789     "
  
      let txtfield1 :UITextField!
  
      let string_to_color = "0123456789"
  
      let range = (strings as NSString).range(of: string_to_color)
  
      let attribute = NSMutableAttributedString.init(string: strings)
      attribute.addAttribute(NSForegroundColorAttributeName, value: UIColor.red , range: range)
  
      txtfield1 = UITextField.init(frame:CGRect(x:10 , y:20 ,width:100 , height:100))
      txtfield1.attributedText = attribute
  
      Cell.marqueeLabel1.text = strings[Int(arc4random_uniform(UInt32(strings.count)))]
      Cell.marqueeLabel2.type = .continuous
      Cell.marqueeLabel2.animationCurve = .easeInOut
      let strings2 = ["Purchase bids- 0123456789     Sell Bids- 0123456789     Cleared- 0123456789     "]
  
      // Cell.marqueeLabel2.text = strings[Int(arc4random_uniform(UInt32(strings2.count)))]
  
      return Cell
  }
  </code></pre>