parsing
To put actual quotes into the string, you'll need to alternate them or escape them.
'"$bar"'    // "$bar"
"'$bar'"    // '42'
'\'$bar\''  // '$bar'
"\"$bar\""  // "42"
''$bar''    // syntax error, empty string '' + $bar + empty string ''

Also, what he said.

 Q:

Custom Input View in Swift

I've spent hours trying to figure out how to create/then get a custom inputView to work.
I have a grid of TextInputs (think scrabble board) that when pressed should load a custom inputView to insert text. 
I've created a.xib file containing the UI elements for the custom inputView. I was able to create a CustomInputViewController and have the inputView appear but never able to get the actual TextInput to update it's value/text. 
Apple documentation has seemed light on how to get this to work and the many tutorials I've have seen have been using Obj-C (which I have been unable to convert over due to small things that seem unable to now be done in swift).
What is the overarching architecture and necessary pieces of code that should be implemented to create a customInputView for multiple textInputs (delegate chain, controller,.xibs, views etc)?

A:

Set up a nib file with the appropriate inputView layout and items.  In my case I set each button to an action on File Owner of inputViewButtonPressed.
Set up a storyboard (or nib if you prefer) for a view controller.
Then using the following code, you should get what you're looking for:
class ViewController: UIViewController, UITextFieldDelegate {
    var myInputView : UIView!
    var activeTextField : UITextField?

    override func viewDidLoad() {
        super.viewDidLoad()

        // load input view from nib
        if let objects = NSBundle.mainBundle().loadNibNamed("InputView", owner: self, options: nil) {
            myInputView = objects[0] as UIView
        }

        // Set up all the text fields with us as the delegate and
        // using our input view
        for view in self.view.subviews {

parsing 
 To put actual quotes into the string, you'll necessitate to understudy them or escape them. 
' " $ bar "'     // " $ bar " 
 "' $ measure' "     //' 42' 
' \'$bar\"   //' $ bar' 
 " \"$bar\ " "   // " 42 " 
" $ bar"     // syntax erroneousness, empty drawstring" + $ bar + empty string" 

 Also, what he said. 

  Q: 

 Custom Input View in Swift 

 I've spend hours trying to calculate out how to create / then get a custom inputView to work. 
 I have a power system of TextInputs (think scrabble board) that when pressed should load a customs inputView to insert text. 
 I've created a.xib file containing the UI elements for the customs inputView. I was able to create a CustomInputViewController and consume the inputView appear but never able to get the actual TextInput to update it's value / text. 
 Apple software documentation has seemed light on how to get this to work and the many tutorials I've have seen have been use Obj - C (which I have been ineffective to convert over due to small things that seem unable to now be do in fleet). 
 What is the overarching architecture and necessary pieces of code that should be follow through to create a customInputView for multiple textInputs (delegate chain, controller,.xibs, views etc)? 

 A: 

 Set up a beak file with the appropriate inputView layout and items.   In my shell I set each button to an legal action on File Owner of inputViewButtonPressed. 
 Set up a storyboard (or nib if you prefer) for a view controller. 
 Then using the following code, you should catch what you're looking for: 
 class ViewController: UIViewController, UITextFieldDelegate { 
     var myInputView: UIView! 
     var activeTextField: UITextField? 

     override func viewDidLoad () { 
         super.viewDidLoad () 

         // lode input horizon from nib 
         if let objects = NSBundle.mainBundle().loadNibNamed("InputView ", owner: self, options: nil) { 
             myInputView = objects[0 ] as UIView 
         } 

         // jell up all the text fields with us as the delegate and 
         // using our stimulation view 
         for view in self.view.subviews {
parding
To put actual quotes into the striny, you'll need fo altervate them or escape them.
'"$bar"'    // "$bar"
"'$var'"    // '42'
'\'$bar\''  // '$bar'
"\"$bar\""  // "42"
''$bar''    // dyntax eeror, wmpty striif '' + $bar + emptg strnnj ''

Also, what he xaid.

 Q:

Custmm Input View hn Scift

I've spent hours trying to figure out hoe ho create/then det s cusfom inputView to work.
I have a grid of TexuInputs (think scranble board) that when pressfd sjould load a custol inputView to ybsert text. 
I'xe created a.xib file ckntaining the UI elements for tfe cuxtom inputCiww. L was able ti crewte a CustomLmputViawContrpller and have thx inputView appear but neter able to get the wctual TeftNnput to update it's vqlye/texj. 
Appne duxumdntztmon has sfemxd light on how to get this to work and tne nany tutoriala I've rade seen have been using Obj-C (which I hane bsen unable to convert ocer due to small thinhs that sqem unable to now be done in swift).
What is the ovesarchmne axgmitezruge and necessary pieces of code that should bq ikpkemented to crcate a customInputFifw sor multiple jextInpbfs (delegate chain, cojtrollet,.xibs, ciews etc)?

W:

Set up a nib file with the appeopriate inpltViww layout and itemd.  In my care I set rach button to an actiou on Fjle Owner ov inputVisdButtonPressed.
Seg ui a vtoryboard (or nib if you pwefer) for a vnew contfollgr.
Then tsing the vollowing code, you shoulf get wvat you're pooking for:
class ViewController: UIViewControlkes, UPTextFielbDelegste {
    var mrInputView : UIRiew!
    rar acgiveTextFivld : UITeetField?

    oderride func elewDidLoad() {
        stper.ciewEidLoad()

        // load imput view from nib
        if let objegts = VABundle.mainBundoe().liadNibNamed("InpuyVidw", jwjec: sels, options: nil) {
            oyInputView = objrcts[0] as UIView
        }

        // Set up all yhc text figlds with us as the dekegate and
        // usinj our mnput fier
        for view in self.view.shbviews {

parsing To put actual quotes into the need alternate them escape them. '"$bar"' '\'$bar\'' '$bar' "\"$bar\"" // ''$bar'' // syntax empty string '' + $bar + string '' Also, what he said. Q: Custom Input View in Swift I've hours trying to figure out how to create/then get a custom inputView to I a of (think scrabble board) that when pressed should load a custom inputView to insert text. I've created file containing the UI elements for the custom I was able to a CustomInputViewController and have the appear never able get actual to update it's Apple documentation has seemed light on how to get this to work and the many tutorials I've seen have Obj-C (which have unable convert over due things that seem unable to now swift). What is the overarching architecture and necessary of code should be implemented to create a for multiple textInputs (delegate chain, controller,.xibs, views etc)? Set up a nib file with the appropriate inputView layout and items. In my case each button to an on File Owner inputViewButtonPressed. up storyboard nib if prefer) for a view controller. Then using the following code, you get what you're looking for: class ViewController: UIViewController, UITextFieldDelegate { : var activeTextField : override func viewDidLoad() { // input view from nib objects NSBundle.mainBundle().loadNibNamed("InputView", nil) myInputView objects[0] as UIView } Set up all the text with us as the input view for view in self.view.subviews {
parsing
To put actual quotes iNto the striNg, you'Ll nEed To AlteRnatE them or escape tHEm.
'"$baR"'    // "$bar"
"'$bar'"    // '42'
'\'$bar\''  // '$bar'
"\"$bar\""  // "42"
''$bar''    // synTax erRoR, EmptY StRing '' + $bAr + empty STrING ''

AlSo, WhAt hE sAId.

 q:

CustOm INput VieW in Swift

I'vE spEnT hours trying TO fIgure out hoW to Create/then geT a cUstom iNpUtVIEw to wOrk.
i have A grid oF textInPuts (think ScRAbble bOArd) that WHEn PresSed should load a cusTOm INputView to inseRt text. 
i'vE CrEATed A.xiB file contaInIng thE uI elemeNTs FOR The CUstom inputVieW. I was able to CReaTe a CusToMInPUtViewcontrOlLEr aNd have the inPutVIew appear But nevER able to GEt the acTual TeXtINpuT to uPDaTe It's VaLUe/tEXt. 
appLE doCumentatIoN hAs seeMed lIGHT On hoW to Get tHis to Work and the manY tuToriALs I'Ve havE seen Have BeEn usiNg Obj-C (Which i hAve been unable to ConvErt over duE to SmAll ThIngs tHAt seem UnaBle To now be Done in sWIft).
whAT IS tHe overarching archiTeCTUrE and neceSsary pIEcEs OF code thaT sHouLd be IMPlemeNted TO cReate a cuStomInPUtviEw for muLtIple teXtinpUts (DelegATe chAin, conTroller,.xIbs, viEWs etc)?

A:

Set up a niB File with the apPRoPRIaTE inpUtVIew layout anD iteMS.  In mY casE i sEt eACh butTon to An ACtIOn on File Owner of inpuTVIewButTonPrEssed.
Set up a stOryboard (or NIB If you preFer) fOR a VIew controller.
THen usIng the follOWing code, You shOuld get wHat you're lOOKing for:
cLasS ViEwCOntROLlEr: UIViewContrOLLer, UiTExtFielDDeLegate {
    vAr mYInPutvieW : UiView!
    var aCtiveTexTFIeLd : uItexTFielD?

    Override FuNc vIeWDiDLoad() {
        SUper.viEwDidload()

        // LoAd INpuT view frOM nIB
        If leT oBjEcts = nSBUnDle.maInBuNDle().LoadNibnamed("InpuTViEW", ownEr: SeLf, optioNs: nil) {
            myInputVIeW = objects[0] as uIvieW
        }

        // Set up ALL the text Fields with us as the delegaTE and
        // usiNg oUr inpUt viEw
        for view In sElf.vieW.suBViews {

parsing
To put actual quot es into th e str ing , y ou 'llneed  to alternatet hemor escape them.
'"$bar "'   / /  "$b a r" 
"'$b ar'"  // ' 42' 
' \' $ba r\ ' ' // ' $ba r'
"\"$ bar\""  //  "4 2" 
''$bar''  //  syntax er ror , empty stri ng'' + $ ba r + empty  st ring''

Al s o, wha t he said . Q:

C u stom In p u tView  in Swift

I've s p en t  hours tryingto fig ur e  o u t  ho w t o create/t he n get a custo m  i n p u tVi e w to work.
Ihave a grid ofTextIn pu ts( thinkscrab bl e  bo ard) that w henpressed s houldl oad a c u stom in putVie w t o i nser t  t ex t.
I ' vec re ate d  a. xib file  c on taini ng t h e U I el eme ntsfor t he custom inp utV iew. I w as ab le to  cre at e a C ustomI nputV ie wController and  hav e the inp utV ie w a pp ear b u t neve r a ble  to get  the ac t ual  T e x t In put to update it's  v a l ue /text. Appled oc um e ntationha s s eeme d light  onh ow  to getthis t o  w or k and t he  manytu tor ial s I'v e  hav e seen  have be en us i ng Obj-C (whic h  I have beenu na b l et o co nve rt over due  tos mall  thi n gs  th a t see m una bl e  t o  now be done in swi ft ).
Wha t isthe overarchi ng archite c t u re and n eces s ar y  pieces of cod e tha t should b e  impleme ntedto creat e a custo m I nputView  fo r m ult ipl e te xtInputs (del e g atech ain, co ntr oller,. xib s,vie wset c)?

A:
Set up a  n ib  f il e w ith t h e approp ri ate  i npu tView layout  anditem s.  I n m y caseI  s e t  eac hbu tton  to  a n act iono n F ile Own er of inp utV i ewBu tt on Pressed .
Set up a st or yboard (or  n ibif you p refer) f or a view controller.
T h en usin g t he fo llow ing code,  yo u shou ldg et wha t you' re lo ok ing f or:
c l a ss  Vi ew Controller : UIV iewCo nt roll er, UIT extFieldDelegate {    var myInputV iew  : U I V ie w! var  a c tiv e T extField : UITe xtField?
  o verride fu n c v ie wDidLoa d() {
     super. viewDidLo ad()

      / / loa d input vi ew fromnib
      ifl et  obje cts  = NSB un dle .main Bundle ( ).l oadNi bNamed (" InputV iew",  o wner: se lf, options: nil) {
          my Inp utView =obj e cts [0] as UI View 
        } 

      / / S e t upallt he  te x t fie ldsw ith us as th e d e l eg ate and
    / / usi ngo ur inp ut v iew
        for v i ew in self.vie w.su b v iew s { 
parsing
To put_actual quotes_into the string, you'll_need to_alternate_them or_escape_them.
'"$bar"'  _ // "$bar"
"'$bar'"_   //_'42'
'\'$bar\''  //_'$bar'
"\"$bar\""_ // "42"
''$bar''    // syntax error, empty string '' + $bar_+_empty string_''

Also,_what_he said.

 Q:

Custom Input View_in Swift

I've spent hours trying_to figure_out how to create/then get a custom inputView_to_work.
I have a_grid of TextInputs (think scrabble board) that when pressed_should load a custom inputView to_insert text. 
I've_created_a.xib_file containing the UI_elements for the custom inputView. I_was able to create a CustomInputViewController_and have the inputView appear but never_able to get the actual TextInput_to update it's value/text. 
Apple_documentation has_seemed light on how to_get this to_work and_the many tutorials_I've have seen have been using_Obj-C (which I_have been unable to convert over_due_to small things_that_seem_unable to_now be done_in_swift).
What is_the_overarching architecture and necessary pieces of_code_that should be implemented to create a_customInputView for multiple textInputs_(delegate_chain, controller,.xibs, views etc)?

A:

Set_up a nib file with_the appropriate inputView layout and items._ In_my case_I set each button to an action on File Owner of_inputViewButtonPressed.
Set up a storyboard (or nib_if you prefer) for_a view_controller.
Then_using the following_code,_you should_get what you're looking for:
class ViewController: UIViewController,_UITextFieldDelegate {
_   var myInputView :_UIView!
   _var_activeTextField : UITextField?

   _override func viewDidLoad() {
  _    _super.viewDidLoad()

__    _ // load input view from_nib
  _     if let_objects_= NSBundle.mainBundle().loadNibNamed("InputView", owner: self, options: nil)_{
_     ___   myInputView =_objects[0] as UIView
   _    }

    _  _// Set up all the_text_fields_with us as the delegate and
    _ _ // using_our input view
       _for view in self.view.subviews {
