4 ms·
I wrote a short mostly-AI book on Swift and Core ML last year and the last example was an app using SwiftUI (the example is in Apple's App Store). I was pleasan
by mark_l_watson 4y ago
I wrote a short mostly-AI book on Swift and Core ML last year and the last example was an app using SwiftUI (the example is in Apple's App Store). I was pleasantly surprised how straightforward it was to use SwiftUI. I read the Apple docs and spent about $10 for a short online class. It was probably only a 15 hour investment to learn enough for my purposes.
EDIT: you can get a free copy of my book by setting the price to $0.00: https://leanpub.com/SwiftAI https://leanpub.com/SwiftAI
- skavi 4y agohttps://github.com/mark-watson/KGN https://github.com/mark-watson/KGN If anyone was interested in the app. I couldn’t find it on the App Store.
- mark_l_watson 4y agoI used to have one large GitHub repo for all the book examples, but then decided later to have separate GitHub repos for the examples because some are libraries and this works better with the Swift Package Manager. This link should show all my public Swift repos: https://github.com/mark-watson?tab=repositories&q=swift&type=&language=&sort= https://github.com/mark-watson?tab=repositories&q=swift&type... Also, I am a Common Lisp developer. Swift is just a side language for me, but I enjoy it and I was blown away at how useful Apple's Core ML libraries are (good stuff!).
- srvmshr 4y agoJust a gentle headsup: Looks like this suggestion doesn't work, since Leanpub annual membership is added automatically to this purchase, as being part of some bundle. Typically I wouldn't mind paying it if I knew what I would be getting out of the book
- codybontecou 4y agoI was able to find the manuscript on his [Github](https://github.com/mark-watson/SwiftAI-book https://github.com/mark-watson/SwiftAI-book)
- mark_l_watson 4y agoNote: I licensed the book using a Creative Commons reuse with attribution, so figures, text, etc. can be reused. I look at this as open source, but for writing.
- mark_l_watson 4y agoThank you, I then need to keep PDFs available on my web site. I will do that in the next day or two. That said, I will first ask Leanpub if I can allow no membership downloads. EDIT: you should now be able to get the book for free.
- srvmshr 4y agoConfirming that it works. At 77 pages its a small book which I could hopefully go over in 2-3 days toying around. I already read the frontmatter & it looks friendly. Thank you for updating downloads on the Leanpub side. You should consider expanding it. (plus: Typeset in latex). Maybe even selfhost it instead of Leanpub since you make it available to read for no charge. I am sure you will find much better viewership & suggestions/PR/contributors.
- mark_l_watson 4y agoI will hopefully have time for a second edition. Professionally I am a Common Lisp programmer and I have updated My Loving Common Lisp... book many times. I think that Apple has done a very good job with the Swift + SwiftUI + Core ML ecosystem. Probably not to many people's taste, but I really like bottom up programming, starting with experiments in a REPL, and then creating little libraries, etc. Swift support this and on any M1 or M2 laptop of iPad Pro, compilation is really fast. I think that Apple could improve the Swift Playgrounds experience on iPad Pros, but I like what they have done so far.
- simonw 4y agoWhich online class did you use?
- mark_l_watson 4y agoI think it was the 2021 version of: SwiftUI Masterclass 2022 - iOS App Development & Swift I just used the parts I needed.
- zakki 4y agoThanks for the book. What kind of AI application could be handled bay Macbook Air M1 easily?
- mark_l_watson 4y agoApple's Core ML library pre-trained models run really well on M1/M2 laptops and iPad Pros. You can also import Keras/TensorFlow models, etc.
- bobbylarrybobby 4y agoApple devices are optimized for inference, not training, so anything where models are pre-trained (but then, what's the point?)
- mylons 4y agoyour m1 is a beast of a machine, especially for running pre-trained models. you should be able to run any of the image identification models no problem, and in real time.