CosmeticMind TextField Position

0

I have the following textfield

  self.txtIdentificationCard = TextField()
        self.txtIdentificationCard.placeholder = "Email"
        self.txtIdentificationCard.detail = "Error, incorrect email"
        self.txtIdentificationCard.isClearIconButtonEnabled = true
        self.txtIdentificationCard.delegate = self
        self.txtIdentificationCard.isPlaceholderUppercasedWhenEditing = true
        self.txtIdentificationCard.placeholderAnimation = .hidden
//         Set the colors for the emailField, different from the defaults.
                self.txtIdentificationCard.placeholderNormalColor = Color.amber.darken4
                self.txtIdentificationCard.placeholderActiveColor = Color.pink.base
                self.txtIdentificationCard.dividerNormalColor = Color.cyan.base
                self.txtIdentificationCard.dividerActiveColor = Color.green.base
//         Set the text inset
                self.txtIdentificationCard.textInset = 20

        let leftView = UIImageView()
        leftView.image = Icon.cm.audio
        self.txtIdentificationCard.leftView = leftView


        view.addSubview(txtIdentificationCard)

Using the CosmicMind library link

But if I do not programmatically coordinate it, it does not show the component, is this really the case? If so, I find it unfeasible, in the worst case if you recommend some materials for me, I would be perfect thanks.

    
asked by Bruno Sosa Fast Tag 09.05.2018 в 21:04
source

0 answers