Copying out of iBooks is terrible. You can copy one line of code but with more than one line you get extra characters and a stupid line about the book. I am trying to learn Swift and typing in long sequence, or having to manual edit the copied text first is irritating.
Is it possible to get a copy of the swift 2.0 book you can copy from as text?
Have you tried the web version here?