my code: model.whatsappURl doesn't nil

enter image description here

enter image description here there are two phones on iphone x it's work, but in others doesn't ? help me pls

 if model.whatsappUrl != "" {
    selectedPartnerView.whatsButton.isHidden = false
    selectedPartnerView.whatsButton.rx.tap.bind { [weak self] in
        guard let whatsUrl = URL(string: "\(String((self?.model.whatsappUrl)!))") else {return}
        UIApplication.shared.open(whatsUrl)
        }.disposed(by: viewModel.disposeBag)
    }else{
        selectedPartnerView.whatsButton.isHidden = true
        selectedPartnerView.instaButton.leftAnchor.constraint(equalTo: selectedPartnerView.leftAnchor,constant: 8).isActive = true
    }

Related posts

Recent Viewed