concept Swift in category ios

This is an excerpt from Manning's book Hello Swift!: iOS app programming for kids and other beginners.
Swift is Apple’s new programming language for iOS, watchOS, tvOS, and macOS. Before Swift, Apple developers wrote programs in Objective-C, which Apple didn’t create. Apple knew that it needed to create a new, more efficient, more modern language, so it secretly began creating Swift in 2010. Swift was announced on June 2, 2014.
We’ll be learning Swift and will start creating apps using Swift soon.
var someonesAge: Int! //However, the following line will NOT work: var someonesAge //It doesn't work because Swift has no information to figure what //kind of variable it's expected to create.

This is an excerpt from Manning's book iOS Development with Swift.
Table 1.3. Project options
Option
Description
Product Name Any name will do, but for a first project HelloWorld is tradition, after all. Team Even if you’re a solo developer, your developer account with Apple is referred to as your team. You’ll need a team later to test your app on your device and pay to join the Apple Developer Program for your app to use special services such as iCloud or distribute your app on the App Store. You’re welcome to set up your Apple Developer account now if you like, but if you’re keen to get stuck into playing with Xcode, feel free to leave this option. We’ll look at teams and the Apple Developer Program in detail in chapter 16. Organization Name This is used to generate copyright strings in your code. Organization Identifier This and the product name are used to generate the bundle identifier. By convention, to ensure it’s unique, many developers use a reverse domain name for their organization identifier. More on the bundle identifier appears in the final chapter. Language You can still choose to develop your app in Swift’s predecessor, Objective-C, for the foreseeable future. Choosing Swift or Objective-C doesn’t preclude using the other; it’s more an indication of which you’re intending to use predominantly. In this book, we’ll focus exclusively on development in Swift. Devices You can choose to develop only for iPad or iPhone, but if you want your app to work on both, you should choose Universal. Core Data Core Data is a framework for persisting complex data. Selecting it here adds boilerplate code that otherwise isn’t necessary. Let’s leave it deselected. Unit/UI Tests Selecting Include Unit and UI Tests sets up your project with targets to conveniently test your app’s source code and interface. Taking advantage of these test targets to ensure your code is bug free and your app works as expected is a good habit to get into, especially as your apps become more complex. Let’s leave these selected.
Even the most experienced programmers will encounter new concepts and syntax in Swift. In this chapter and the next, I assume that you have experience in programming and are mainly interested in what’s new, different, and exciting about Swift. I’ll also discuss how concepts in Swift relate to shifts in programming philosophy.
After looking at data types and collection types in Swift, we’ll look at a type that may be new to many: the optional. The optional, tied closely to the idea of type safety in Swift, can be unfamiliar at first, but do stick with it—the optional is essential to understanding programming in Swift.
There’s much to look at in Swift, but don’t worry; as you progress in the book, or for those of you who may already have some experience with Swift, you can always refer to the cheat sheets in appendix B. This chapter is summarized in the first two pages of the cheat sheets.
As Swift is type safe, concatenating Strings in this way only works if every element being concatenated is a String. A String and a Double, for example, by default don’t concatenate. In the following example, cost is inferred to be a Double, so concatenating it with a String produces an error:
Believe it or not, you can go further! If the closure contains only one line of code, Swift can infer that you want to return the result of this line, so you can remove the return keyword. var updatedPrices = prices.map( { $0 * 1.1 } )

This is an excerpt from Manning's book Anyone Can Create an App: Beginning iPhone and iPad programming.
I’m not going to give you the history of the two languages, nor will I attempt to convince you that one is better. Objective-C was used as the first language for programming iPhones and iPads and has been around as long as iPhones have (and even before that). Apple released Swift in 2014, and it’s a completely different language from Objective-C. Swift takes a different approach to developing for iPhone and iPad. It simplifies a lot of the complexity that other languages have, making it much easier to learn. I’m not going to focus on the differences or even discuss why Apple created a new language. The bottom line is that you will be learning Swift, and in this book you’ll code in Swift.
The good news is that you are starting to learn Swift now, like everyone else. It’s a new language, so there aren’t people out there with five years of experience in Swift. Think of it: you could be that expert in five years if you want. The coding syntax (how you form your commands, or sentences, in the foreign language that we’re learning—more on that soon) is easier to learn in Swift than in Objective-C. If you do want to learn more about Objective-C, you can find that information on the Apple Developer site (developer.apple.com).