Learn Swift by building applications explore Swift programming through iOS app development
Start building your very own mobile apps with this comprehensive introduction to Swift and object-oriented programming About This Book A complete beginner's guide to Swift programming language Understand core Swift programming concepts and techniques for creating popular iOS apps Start your jou...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham ; Mumbai :
Packt
2018.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630711606719 |
Tabla de Contenidos:
- 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 Inheritance
- Structures 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 playground
- UICollectionView
- 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
- Software - the modern way
- Ruby 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
- Custom buttons on the tab bar
- Creating a post
- Models
- Firebase
- Filters
- Summary
- Chapter 11: Instagram-Like App Continued
- Home screen
- Profile screen
- Search screen
- Favorites screen
- Polishing the home screen
- Summary
- Chapter 12: Contributing to an Open Source Project
- Your account at GitHub
- Forking a repository
- Let's contribute
- Pull request
- Summary
- Other Books You May Enjoy
- Index.