ra1028 / Former

Former is a fully customizable Swift library for easy creating UITableView based form.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Cannot find type 'TextFiefldFormableRow' in scope"

jderbs opened this issue · comments

Have this protocol implemented in a file, and it's worked for months. All of a sudden I started getting this error. Not sure why.
Here's the file:


import UIKit
import Former
import PhoneNumberKit

class PhoneNumberField: UITableViewCell, TextFiefldFormableRow {

    
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var textField: PhoneNumberTextField!
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        titleLabel.textColor = .formerColor()
        textField.textColor = .formerSubColor()
        textField.countryCodePlaceholderColor = Colorify.Marina
        
        if #available(iOS 11.0, *) {
                    PhoneNumberKit.CountryCodePicker.commonCountryCodes = ["US", "CA", "MX", "AU", "GB", "DE"]
        }
        
       
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func formTextField() -> UITextField {
        return textField
    }
    
    func formTitleLabel() -> UILabel? {
        return titleLabel
    }
    
    func updateWithRowFormer(_ rowFormer: RowFormer) {}
}