Open djaxutah opened 8 years ago
Hi djaxutah,
I will double check the book and see if there is something I can do about the formatting that leaves that space in there. I agree, that is frustrating and annoying to deal with, especially if you aren't sure if the space should be there or not.
Not nitpicky at all. The code is pasted right out of Xcode as I type it. The intent is for it to look just like it does in Xcode using the default theme . I really appreciate you telling me about this, I wasn't aware that the Kindle App has this issue.
Glad you are otherwise enjoying the book. Hope it helps you get into Swift, it is a fun language.
Jeremy
Jeremy,
Thanks for responding. It looks like github removed some of the extra spaces I put in my post. Just so you can see how bad the formatting is I took a screencap from my iphone (it looks the same in the app on my mac as well) and am attaching it here.
Hi djaxutah,
I am uploading a new version to see if that resolves the formatting issues. It looks pretty good in the Kindle Previewer, hopefully it will resolve the spacing and formatting issues you reported.
Thank you again for pointing this out.
I haven't seen a new version posted yet from Amazon. Their listing still shows 9/21/2016 as the latest version.
Hopefully the kindle app will automatically update the book to the latest version.
Thank you for taking the time to write this book. I am learning a lot from going through it.
Initially I had some problems with the code because I am not super familiar with swift. I was getting errors in my code when I thought I added the code just like in the book. The problem turns out to be some of the way the code is displayed in the kindle reader app on mac (I also noticed the spacing issue when using the kindle app on my iPhone).
For example...
Page 16 in the app reads like this...
// MARK: - Init required init ?(coder aDecoder: NSCoder ) { super . init (coder: aDecoder) }
In reality it should be more like...
// MARK: - Init required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) }
Since I am new to swift and the syntax and spacing, I was getting errors because I was putting a space between init and ?. There are other places where the spacing caused problems as well when updating the sceneLabel on page 24. I was able to quickly fix it and learn from the provided code for the chapter, but it would be nice if whatever you are using to publish the book would not try and format the code differently than it should be written. Maybe it doesn't do this on an actual Kindle but it does in the app.
Sorry if this seems nitpicky, you may not have any control over the output. It is just slightly frustrating for us newbies.
Again, thanks for taking the time to teach what you know and write this book. I think I will buy your other book as well.