Xcode: 2 swift control : I have an app with 2 swift control to hide or show some textfield depending of the user if he switch them on/off.
The problem is the first swift seems to control the second one. If the first is off, the second one is off also. I would like them to work independently from each other.
Any advice?

Thanks guys

    @IBAction func switchP(_ sender: UISwitch) {
        
        if (sender.isOn == true){
            textFieldP.isHidden = false
            
        }else{
            textFieldP.isHidden = true
            
        }
        
    }


    @IBAction func switchT(_ sender: UISwitch) {
        if (sender.isOn == true){
            
            textFieldT.isHidden = false
            
            
        }else{
            
            textFieldT.isHidden = true
            
            
        }
        }



