Learn Swift by Building Applications : Explore Swift programming through iOS app development
- Author
- Atanasov, Emil
- Published
- Birmingham : Packt Publishing, 2018.
- Physical Description
- 1 online resource (356 pages)
Access Online
- Contents
- Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Swift Basics -- Variables and Functions; Variables; Optional types; Enumeration types; Basic flow statements; The if statements -- how to control the code flow; Loops; The while loops; The switch statement; Functions; What is a tuple?; What is the guard statement?; How to tackle huge problems -- bottom-up versus top-down; Summary; Chapter 2: Getting Familiar with Xcode and Playgrounds; Installing Xcode; Exploring Xcode; What do we see on the screen?; Toolbar; Menu., The Navigator panel (located to the left)The Debug panel (located at the bottom); The Utilities panel (located to the right); Xcode preferences window; Playground; What is a playground?; Let's add some code; How to add auxiliary code to a playground; How to add resource to a playground; Converting a playground to a workspace; Markup in playgrounds; Different items in the markup language; Basic markup items; Summary; Chapter 3: Creating a Minimal Mobile App; Your first iOS application; Project structure; AppDelegate; Application states; ViewController; Git; Summary., Chapter 4: Structures, Classes, and InheritanceStructures and classes; Extensions; The deinit method; Type properties and functions; Adding custom data types to a playground; Inheritance; Base class; Class properties; Model-View-Controller (MVC); Summary; Chapter 5: Adding Interactivity to Your First App; Storyboards; Visual components; Adding items to the storyboard; Linking the UI with the code; General discussion; Summary; Chapter 6: How to Use Data Structures, OOP, and Protocols; Primary collection types; Generics; Array; Set; Dictionary; How to choose the best collection type., List of items in a playgroundUICollectionView; UICollectionViewCell; Reusing cells; Layouts; Table view in iOS app; Model list of cities; Displaying all cities; Adding search; Protocols; Protocols and inheritance; Summary; Chapter 7: Developing a Simple Weather App; Defining the app screens; The home screen; Favorite locations; Constraints; Picking a location; Model; Locations; Controllers and segues; The first segue; How to pass data; Passing information in the reverse direction; Defining a custom segue; Further improvements; Summary; Chapter 8: Introducing CocoaPods and Project Dependencies., and Software -- the modern wayRuby and CocoaPods; How to use it; CocoaPods useful commands; Carthage; Swift Package Manager ; Useful commands; Popular third-party libraries; Alamofire; Texture; RxSwift; Summary; Chapter 9: Improving a Version of a Weather App; Weather forecast API; What's an API?; List of requests; Creating new models; Pure network requests; Alamofire implementation; Improvements using third-party libraries; Better error handling; About the screen; Summary; Chapter 10: Building an Instagram-Like App; Tabbed app project; Firebase; Login; The different screens.
- Summary
- Swift Language is now more powerful than ever; it has introduced new ways to solve old problems and has gone on to become one of the fastest growing popular languages. It is now a de-facto choice for iOS developers and it powers most of the newly released and popular apps. This practical guide will help you to begin your journey with Swift ...
- Subject(s)
- iOS (Electronic resource)
- Swift (Computer program language)
- Application software—Development
- Mobile apps
- Swift (Langage de programmation)
- Logiciels d'application—Développement
- Applications mobiles
- Mobile & handheld device programming—Apps programming
- Programming & scripting languages: general
- Operating systems
- COMPUTERS—Programming Languages—General
- COMPUTERS—Software Development & Engineering—General
- ISBN
- 9781786466013 (electronic bk.)
1786466015 (electronic bk.)
9781786463920
178646392X (Trade Paper) - Note
- Custom buttons on the tab bar.
View MARC record | catkey: 43273597