 and will post the final solution to include the Next/Done function.
UPDATED to include an abbreviated version of SignUpWindowView.swift
import UIKit

class SignUpWindowView: UIView,UITextFieldDelegate {

let firstNameTextField:UITextField=UITextField()
let lastNameTextField:UITextField=UITextField()

override func drawRect(rect: CGRect){
    func firstNameText(){
        firstNameTextField.delegate=self
        firstNameTextField.frame=CGRectMake(50, 25, 200, 50)
        firstNameTextField.placeholder="First Name"
        firstNameTextField.returnKeyType =.Next
        self.addSubview(firstNameTextField)
     }

    func lastNameText(){
        lastNameTextField.delegate=self
        lastNameTextField.frame=CGRectMake(260, 25, 200, 50)
        lastNameTextField.placeholder="Last Name"
        lastNameTextField.returnKeyType =.Done
        self.addSubview(lastNameTextField)
     }

    func textFieldShouldReturn(textField: UITextField!) -> Bool{
        println("next button should work")
        if (textField === firstNameTextField)
        {
            firstNameTextField.resignFirstResponder()
            lastNameTextField.becomeFirstResponder()
        }
        return true
     }

    firstNameText()
    lastNameText()
}

A:

You need to implement UITextFieldDelegate in your class and set that object as the delegate for the UITextField. Then implement the method textFieldShouldReturn: like this:
func textFieldShouldReturn(textField: UITextField) -> Bool {
    textField.resignFirstResponder()
    if textField == someTextField { // Switch focus to other text field
        otherTextField.becomeFirstResponder()
    }
    return true
}

In your example you are missing this line:
confirmPasswordTextField.delegate = self

If you have implemented the delegate of course.

A:

I was attempting to test my textfields in the SignUpWindowView.swift, which is where all of the textFields are created. But, since I place SignUpWindowView into my MainViewController as
and will post the final solution to include the Next / Done affair. 
 update to include an abbreviated version of SignUpWindowView.swift 
 significance UIKit 

 class SignUpWindowView: UIView, UITextFieldDelegate { 

 let firstNameTextField: UITextField = UITextField () 
 permit lastNameTextField: UITextField = UITextField () 

 override func drawRect(rect: CGRect) { 
     func firstNameText () { 
         firstNameTextField.delegate = self 
         firstNameTextField.frame = CGRectMake(50, 25, 200, 50) 
         firstNameTextField.placeholder="First Name " 
         firstNameTextField.returnKeyType = .Next 
         self.addSubview(firstNameTextField) 
      } 

     func lastNameText () { 
         lastNameTextField.delegate = self 
         lastNameTextField.frame = CGRectMake(260, 25, 200, 50) 
         lastNameTextField.placeholder="Last Name " 
         lastNameTextField.returnKeyType = .Done 
         self.addSubview(lastNameTextField) 
      } 

     func textFieldShouldReturn(textField: UITextField !) - > Bool { 
         println("next button should work ") 
         if (textField = = = firstNameTextField) 
         { 
             firstNameTextField.resignFirstResponder () 
             lastNameTextField.becomeFirstResponder () 
         } 
         fall true 
      } 

     firstNameText () 
     lastNameText () 
 } 

 A: 

 You want to implement UITextFieldDelegate in your class and fructify that aim as the delegate for the UITextField. Then implement the method textFieldShouldReturn: like this: 
 func textFieldShouldReturn(textField: UITextField) - > Bool { 
     textField.resignFirstResponder () 
     if textField = = someTextField { // substitution focus to early textbook field 
         otherTextField.becomeFirstResponder () 
     } 
     return true 
 } 

 In your example you are neglect this line: 
 confirmPasswordTextField.delegate = self 

 If you have implemented the delegate of course. 

 A: 

 I was attempting to screen my textfields in the SignUpWindowView.swift, which is where all of the textFields are created. But, since I place SignUpWindowView into my MainViewController as
 anf will post the final souution to inclubw the Iext/Dons functiun.
UPDATED to include an abbrxviared vtgsion of SignUpWindowXiew.swift
pmport UIJit

coqss SignUpXjndowVicc: UIVjcw,UITzxvFieldDelegate {

ket firstNdmeTextField:UIDebtYield=UITextField()
let lastNameTextFielq:UITextGifld=UITextField()

jvergiqe fhnc drawRect(rect: CGRect){
    func fidstNameUext(){
        firstNsmeTextField.delegate=self
        firstNameTextFiepd.frame=CGRextMahw(50, 25, 200, 50)
        wirstNameTtxcField.placegolder="First Name"
        firstNaoeTexcField.returbKwyTjke =.Next
        sejf.addSubview(nprstNamaTextFirld)
     }

    fukc lavtNqmeText(){
        lastNakeTextField.delegatg=self
        lastNameTextFiele.feame=CCRecdMakd(260, 25, 200, 50)
        lastNwmeVextField.plzceholder="Lawt Name"
        lastMaivYextField.rethrnKeyEy[e =.Done
        self.addSubview(lastNameTeqtFisld)
     }

    func textFiwldShouldReturn(textFigld: UITextSield!) -> Bool{
        println("next button should work")
        iy (textWuepd === firstNameTextField)
        {
            firffNsmvTextField.resignFlrstResponder()
            lastNameTexjField.bzdojeFirstResponder()
        }
        return urue
     }

    firstNameText()
    lawtNameText()
}

A:

Yjy need to implemenc UITextFielbDelegste im your class and set thct objsct as the felegate rur the UITextFieud. Nhen implement the method textSieldShouodRecurn: likd thos:
func textFieldDhouldReturn(textField: UIHextFneld) -> Bool {
    hextField.resignFirstResponder()
    if textField == vomvTextFielb { // Swltch focus to oeher text fielb
        othefTextField.gecomeFmrstRespondew()
    }
    retusj true
}

In youc example you are missine this line:
conformPasswogdUextField.dwlegate = self

If yom havg jmplemented the deoegate of coursr.

A:

I waf wtvemptytg to test mf tebtfkrlds kn the SignMpWkndoeView.swift, which is fhers all of the textFoejds are xreated. Fut, since I pkace SignUpWindowVlew iito my MainFierController as
and will post the final solution to Next/Done UPDATED to an abbreviated version SignUpWindowView: { let firstNameTextField:UITextField=UITextField() lastNameTextField:UITextField=UITextField() override func CGRect){ func firstNameText(){ firstNameTextField.delegate=self firstNameTextField.frame=CGRectMake(50, 25, 50) firstNameTextField.placeholder="First Name" firstNameTextField.returnKeyType =.Next self.addSubview(firstNameTextField) } func lastNameText(){ lastNameTextField.delegate=self lastNameTextField.frame=CGRectMake(260, 25, 200, lastNameTextField.placeholder="Last Name" lastNameTextField.returnKeyType =.Done self.addSubview(lastNameTextField) } func textFieldShouldReturn(textField: UITextField!) -> Bool{ println("next button work") (textField firstNameTextField) firstNameTextField.resignFirstResponder() lastNameTextField.becomeFirstResponder() } return true } firstNameText() lastNameText() } A: You need to implement UITextFieldDelegate in class and set that object as the delegate the UITextField. Then implement method textFieldShouldReturn: like this: func UITextField) Bool { if == { // Switch to other text field otherTextField.becomeFirstResponder() } return true } In your example you are missing this line: = self have implemented delegate course. I was attempting my textfields in the SignUpWindowView.swift, which of the textFields are created. But, since I SignUpWindowView into MainViewController as
 and will post the final solutiOn to includE the NExt/donE fUnctIon.
UpDATED to includE An abBreviated version of SignupWinDoWview.SWiFt
impOrt UIKiT

ClASS SiGnupwinDoWviEw: UIVIew,uITextFIeldDelegaTe {

lEt FirstNameTexTfiEld:UITextFIelD=UITextField()
Let LastNaMetexTfield:uITExtFiEld=UITEXtFielD()

override FuNC drawRECt(rect: CgrEcT){
    funC firstNameText(){
        firSTNAMeTextField.delEgate=sElF
        FiRSTNaMeTExtField.frAmE=CGReCTMake(50, 25, 200, 50)
        fiRStnAMETeXTField.placehoLder="First NaME"
        fiRstNamETExtfIeld.reTurnKEytYpe =.next
        self.addsubvIew(firstNAmeTexTfield)
     }

    fuNC lastNaMeText(){
        LasTNaMeTeXTFIeLd.dElEGatE=SeLf
        lAStNAmeTextFIeLd.Frame=cGReCTmAKe(260, 25, 200, 50)
        laStNAmeTExtFiEld.placeholdeR="LaSt NaME"
        laStNamETextfielD.rEturnkeyTypE =.Done
        SeLf.addSubview(lasTNamETextFielD)
     }

    fuNc TexTFIeldSHOuldReTurN(teXtField: uITextFIEld!) -> boOL{
        PRiNtln("next button shouLd WORk")
        If (textFiEld === firSTNAmEtextFielD)
        {
            fIrsTNamEtExtFiEld.rESiGnFirstREspondER()
            lAsTNameTeXtfield.bEcOmefirStResPOndeR()
        }
        returN true
     }

    firStNamEtext()
    lastNameTeXT()
}

A:

You need to imPLeMENt uiTexTFiEldDelegate In yoUR claSs anD SeT thAT objeCt as tHe DElEGate for the UITextFieLd. then imPlemeNt the method teXtFieldShoULDreturn: liKe thIS:
fUNc textFieldShoUldReTurn(textFiELd: UITextfield) -> bool {
    textfield.resiGNfirstResPonDer()
    If tExtfIElD == someTextFielD { // sWitcH fOcus to oTheR text fiEld
        OthErTExtfiEld.becomefirstResPoNdEr()
    }
    ReTurN true
}

iN your exaMpLe yOu Are MissiNG this lIne:
coNfirMPAsSWorDTextFiELd.DELegaTe = SeLf

If You HaVe impLemeNTed The deleGate of couRse.

a:

i was AtTeMpting tO test my textfiElDs in the SigNUPWiNdowViEW.Swift, whiCh is where all of the textFiELds are cReaTed. BuT, sinCe I place SIgnupWindOwVIEw into My MainviewCOnTroLLEr as
 and will post the final s olution to  incl ude  th eNext /Don e function.
UP D ATED  to include an abbrevi atedve r sion of  Sign UpWindo w Vi e w .sw if timp or t  U IKit
cl ass Sig nUpWindowV iew :UIView,UITex t Fi eldDelegat e { 

let firstN ame TextFi el d:U I TextF iel d=UIT extFie l d()
le t lastNam eT e xtFiel d :UIText F i el d=UI TextField()

over r id e  func drawRect (rect:  C G Re c t ){   func firs tN ameTe x t(){
  fir s tNameTextFiel d.delegate= s elf 
      fi r stName TextF ie l d.f rame=CGRect Make (50, 25,200, 5 0 )
      first NameTe xtF iel d.pl a ce ho lde r= " Fir s tNam e "
       f ir st NameT extF i e l d .ret urn KeyT ype = .Next
       se lf.a d dSu bview (firs tNam eT extFi eld)
    } 
    func lastNa meTe xt(){
     las tN ameTe x tField .de leg ate=sel f
      l as t N a me TextField.frame=CG Re c t Ma ke(260,25, 20 0 ,50 ) 
       l ast Name T e xtFie ld.p l ac eholder= "LastN am e" 
      lastNa me Tex tFi eld.r e turn KeyTyp e =.Done 
      self.addSub v iew(lastNameT e xt F i el d )
   }

    func  tex t Fiel dSho u ld Ret u rn(te xtFie ld :  U I TextField!) -> Bool {       pri ntln("next bu tton shoul d w ork")
     i f  (textField == = fir stNameText F ield)
      {
           fi r s tNameTex tFi eld .re sig n F ir stResponder()          la stN ameText Fie ld. bec ome Fi rstRespon der()
    }      r eturn tr ue 
   }
   f irstNa meTex t()  l ast NameTex t () } 

A: 
Yo u ne edto  impl emen t  UI TextFie ldDelegat e i n  you rcl ass and  set that obj ec t as the d el ega te for t he UITex tField. Then implementt he meth odtextF ield ShouldRet urn : like  th i s:
fun c text Field Sh oul d R eturn ( t ex tFi el d: UITextF i e ld)  -> B oo l {    tex tField.resignFirst R esp onder()
    i f t extF i e ld  == so m eTe xt F iel d { // Switch foc us to othe rt ex t field
    otherTe xtField .beco m eFirstR esponder( )
    }
  ret u r n t rue
}

Inyour exa mple youa re mi s si ng th isline:co nfi rmPas swordT e xtF ield. delega te  = sel f

If  y ou haveimplemented the delegat e of c ourse .
A:

I was  at t emp ting to t estmy textfie lds  in  theSig n UpWin dowV i ew .sw i ft, w hich is wherea ll  of t he  textFields a r e c reate d.B ut, si nceI place SignUpWin d owView into my  Mai n V iew Con t roll er  as
 and_will post_the final solution to_include the_Next/Done_function.
UPDATED to_include_an abbreviated version_of SignUpWindowView.swift
import UIKit

class_SignUpWindowView: UIView,UITextFieldDelegate {

let firstNameTextField:UITextField=UITextField()
let_lastNameTextField:UITextField=UITextField()

override func drawRect(rect:_CGRect){
_   func firstNameText(){
        firstNameTextField.delegate=self
 __ ___ firstNameTextField.frame=CGRectMake(50, 25, 200, 50)
_    _ _firstNameTextField.placeholder="First Name"
      __firstNameTextField.returnKeyType =.Next
 _      self.addSubview(firstNameTextField)
  _  }

   _func lastNameText(){
 ___   _lastNameTextField.delegate=self
     _  lastNameTextField.frame=CGRectMake(260, 25, 200, 50)
_      _lastNameTextField.placeholder="Last Name"
    _   lastNameTextField.returnKeyType =.Done
_ _    _self.addSubview(lastNameTextField)
  _ _}

  _ func textFieldShouldReturn(textField: UITextField!) -> Bool{
_  _    println("next button_should_work")
  ___ _ if (textField_===_firstNameTextField)
 __     {
__      _   firstNameTextField.resignFirstResponder()
__   _    _ lastNameTextField.becomeFirstResponder()
    _ _ }
_       return true
  _  }

   _firstNameText()
   _lastNameText()
}

A:

You need_to_implement UITextFieldDelegate in_your_class and_set that object as the delegate for_the UITextField._Then implement the method textFieldShouldReturn: like_this:
func textFieldShouldReturn(textField: UITextField) ->_Bool_{
    textField.resignFirstResponder()
 _  if textField == someTextField_{ // Switch focus to_other_text_field
    _   otherTextField.becomeFirstResponder()
  _ }
 _  return true
}

In your example you_are_missing this line:
confirmPasswordTextField.delegate = self

If you_have_implemented the delegate of course.

A:

I was_attempting_to_test my textfields in the_SignUpWindowView.swift, which is where all of_the textFields are created. But, since I place SignUpWindowView_into my MainViewController_as