Hi, I am trying to learn swift from udemy tutorial. I think it will be better if I read from book. Can anyone suggest me a best book for swift 4?
There are not so many books for swift 4. You can read Mastering Swift 4 - Fourth Edition. Also you can read "Swift Programming: The Big Nerd Ranch Guide" book.
A Swift Kickstart by Daniel Steinberg
When I started learning Swift I used the official book from Apple (updated to Swift 4.2). I really enjoyed how well it's written.
I would not recommend the book from Big Nerd Ranch at his moment, because the book was not updated from Swift 3.0.
I second that. The once great "Cocoa Programming for OSX" was completely abandoned and it's a shame. This was once the go-to book if you wanted to learn macOS app development.
I didn't see the need to pay for some verbose regurgitation of publicly available information.
The official Swift book is well structured, comprehensive, with examples, yet dense and free:
https://docs.swift.org/swift-book/TheSwiftProgrammingLanguageSwift42.epub
I worked that through multiple times and think it's the best starting point. Of course, the other side of that coin is continuous application in practice.
I often find my impulse to want better learning materials really is an impulse to procrastinate ;)