swift 4 multiple picker view not working? : 
## 

 1. multiple picker views are not showing the data in the picker view in swift 4, I already read many tutorials but no one solve my problem please check and answer me.
2.when I implemented 3 picker views the data is showing only of the first picker view i.e , (strblood) but not the other arrays 


----------
the code below is working properly but there is one error regarding showing the array in the picker view when clciked on the other labels ("lblblood"."lblcountry")

 ##

------------------------------------------------------------------------

** *

    import UIKit
    import Foundation
    
    class RegisterViewController: UIViewController  {
        
        var strBlood = ["O+","O-","O","A","B+"]
        var  strcountry = ["India","Canada","USA"]
        var strgender = ["Male","Female"]
        
        var selectedBlood: String?
        var selectedCountry: String?
        var selectedGender: String?
        
        @IBOutlet weak var txtGender: UITextField!
        @IBOutlet weak var txtCountry: UITextField!
        @IBOutlet weak var lblBloodGroup: UITextField!
        
        
        override func viewDidLoad() {
            super.viewDidLoad()
                 self.chooseCountry()
                 self.chooseBlood()
                 self.choosGender()
        }
        
        func chooseBlood(){
            let bloodPicker = UIPickerView()
            bloodPicker.delegate = self
            self.lblBloodGroup.inputView = bloodPicker
        }
        
        func chooseCountry(){
            
            let countryname = UIPickerView()
            countryname.delegate = self
            self.txtCountry.inputView = countryname
        }
        func choosGender() {
        
        let gender1 = UIPickerView()
        gender1.delegate = self
        self.txtGender.inputView = gender1
        }
        
    }
    extension RegisterViewController : UIPickerViewDelegate , UIPickerViewDataSource {
        
        func numberOfComponents(in pickerView: UIPickerView) -> Int {
            return 1
        }
        
        func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
            
            if lblBloodGroup.isEnabled {
                print("BLOOD SELECTED")
               return strBlood.count
                
            }
            else if txtCountry.isEnabled{
                print("COUNTRY SELECTED")
    
                return strcountry.count
            }else {
                 print("GENDER SELECTED")
                return strgender.count
            }
        
            }
        
        func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
           
            if lblBloodGroup.isEnabled{
                print("BLOOD SELECTED1")
                return strBlood[row]
                
                
            }else if txtCountry.isEnabled{
                
                return strcountry[row]
            }else {
                return strgender[row]
            }
        
           }
        
        func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)  {
            if lblBloodGroup.isEnabled{
                selectedBlood = strBlood[row]
                lblBloodGroup.text = selectedBlood
               
            }else if txtCountry.isEnabled{
                selectedCountry = strcountry[row]
                txtCountry.text = selectedCountry
            }else {
                selectedGender = strgender[row]
                txtGender.text = selectedGender
            }
           
            }
        
    }