Swift in 100 Seconds
Key Takeaways
The video introduces Swift, a modern programming language developed by Apple, and covers its basics, features, and use cases, including building apps for iOS and MacOS, and its open-source nature.
Full Transcript
swift a multi-paradigm compiled language created by apple famous for building apps that grow inside of apple's walled garden it was first introduced in 2014 at the worldwide developers conference and was designed as a modern successor to objective-c the original apple platform language that had been in use since the 1980s swift interops with objective-c but provides a shorter more readable syntax and features like memory safety and type inference to improve developer productivity today it's used to build mobile apps on ios desktop apps on mac os wearable apps for watch os but is also open source which means it can be used to build software outside of apple platforms it compiles to native machine code and is built on top of the llvm tool chain like many other modern languages however it also supports a readable print loop allowing you to experiment with code in a playground without needing to recompile making it a great language for beginners in addition it provides memory safety by preventing you from writing unsafe code by default and uses automatic reference counting to manage memory automatically to get started install it then create a file ending in.swift your code will start executing in the global scope there's no need for a main function create a variable with the var keyword followed by its name and value var creates a mutable variable which means its value can change in the future let on the other hand creates an immutable variable or constant it uses type inference to strongly type the value as a string but we can explicitly type it by adding a semicolon after the variable name every variable must be initialized with a value unless the type has a question mark which makes it an optional type allowing it to also contain a nil value it also supports optional chaining making it really easy to work with nil values functions are declared with the fun keyword and will use named parameters by default place an underscore before the name to use positional arguments instead now use a backslash with parentheses to interpolate these values into a string functions in swift are first class objects they can be passed as arguments used as return values and nested to create closures it also supports object-oriented patterns like classes and inheritance to encapsulate the var and fung keywords that you just learned now pull up the terminal and run the swift compiler to convert your code into a high performance executable congratulations your code is now ready to seek approval on the apple app store this has been the swift programming language in 100 seconds if you want to see more short videos like this make sure to hit the like button and subscribe thanks for watching and i will see you in the next one
Original Description
Swift is a modern programming language developed by Apple. It is commonly used to code apps for iOS and MacOS, but is open-source and can be used outside of Apple’s walled garden.
#apple #programming #100SecondsOfCode
🔗 Resources
Swift Docs https://www.swift.org/
Swift Announcement https://youtu.be/MO7Ta0DvEWA
Kotlin in 100 Seconds https://youtu.be/xT8oP0wy-A0
C in 100 Seconds https://youtu.be/U3aXWizDbQ4
🔥 Get More Content - Upgrade to PRO
Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- What is Swift?
- Swift vs Objective C
- Apple Swift Basics
- Swift Syntax and Memory Safety
- When was Swift Announced?
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Fireship · Fireship · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Angular 4 Development and Production Environments with Firebase
Fireship
OAuth with Angular and Firebase Tutorial
Fireship
Anonymous Authentication with Angular and Firebase - Lazy Registration
Fireship
Angular Router Guards for Firebase Users
Fireship
Angular Firebase CRUD App with NoSQL Database Tutorial
Fireship
Upload Files from Angular to Firebase Storage
Fireship
How to Deploy an Angular App to Firebase Hosting
Fireship
Sharing Data between Components in Angular
Fireship
Loading Spinners for Asynchronous Firebase Data
Fireship
Angular 4 Transactional Email with Google Firebase Cloud Functions
Fireship
Firebase Database Rules Tutorial
Fireship
Autocomplete Search with Angular4 and Firebase
Fireship
Reddit Inspired Upvoting System with Angular and Firebase NoSQL
Fireship
Angular Drag-and-Drop File Uploads to Firebase Storage
Fireship
Text Translation with Firebase Cloud Functions onWrite and Angular 4
Fireship
Custom Usernames with Firebase Authentication
Fireship
Twitter-Inspired Follow Unfollow Feature with Firebase and Angular 4
Fireship
Simple Pagination with Firebase and Angular 4
Fireship
How to Connect Firebase Users to their Data - 3 Methods
Fireship
Add Toast Message Notifications to your Angular App
Fireship
Facebook-Inspired Reactions System with Angular and Firebase
Fireship
Learn NgModule in Angular with Examples
Fireship
Lazy Loading Components in Angular 4
Fireship
Stripe Checkout Payments with Angular and Firebase - Part 1
Fireship
Process Stripe Payments with Firebase Cloud Functions - Part 2
Fireship
Selling Digital Content in Angular with Stripe Payments - Part 3
Fireship
Angular 4 Full Text Search with Algolia - Part 1
Fireship
Algolia with Firebase Cloud Functions - Part 2
Fireship
Firebase Phone Authentication in Angular 4
Fireship
Top 7 RxJS Concepts for Angular Developers
Fireship
Learn Angular Animations with 5 Examples
Fireship
Advanced Firebase Data Filtering (Multi-Property)
Fireship
Realtime Maps with Mapbox + Firebase + Angular
Fireship
Angular Reactive Forms with Firebase Database Backend
Fireship
Send Push Notifications in Angular with Firebase Cloud Messaging
Fireship
Top 7 Ways to Debug Angular 4 Apps
Fireship
Infinite Scroll with Angular and Firebase
Fireship
Use TypeScript with Firebase Cloud Functions
Fireship
Realtime Graphs and Charts with Plotly and Firebase
Fireship
Role-Based User Permissions in Firebase
Fireship
User Presence System in Realtime - Online, Offline, Away
Fireship
Location-based Queries with GeoFire and Angular Google Maps
Fireship
Angular ngrx Redux Quick Start Tutorial
Fireship
Angular Ngrx Effects with Firebase Database
Fireship
Progressive Web Apps with Angular
Fireship
Angular Ngrx with Firebase Google OAuth User Authentication
Fireship
RxJS Quick Start with Practical Examples
Fireship
Send SMS Text Messages with Twilio and Firebase
Fireship
Firebase Database Performance Profiling
Fireship
Native Desktop Apps with Angular and Electron
Fireship
Subscription Payments with Stripe, Angular, and Firebase
Fireship
Firestore with AngularFire5 Quick Start Tutorial
Fireship
Angular HTTP Client Quick Start Tutorial
Fireship
Google Sign-In with Firestore Custom User Data
Fireship
Star Review System from Scratch with Firestore + Angular
Fireship
Angular Chatbot with Dialogflow (API.ai)
Fireship
Learn @ngrx/entity and Feature Modules
Fireship
Infinite Scroll Pagination with Firestore
Fireship
Faster Firestore via Data Aggregation
Fireship
Contentful - CMS for Angular Progressive Web Apps
Fireship
Related Reads
📰
📰
📰
📰
Microsoft is reportedly training salespeople to talk down OpenAI and Anthropic
TechCrunch AI
73% of tech job listings require AI skills now: 3 ways to show off yours
ZDNet
A Call For AI Clarity, From Leading Thinkers And Doers
Forbes Innovation
Hack suggests AI music generator Suno scraped YouTube for training data
TechCrunch AI
🎓
Tutor Explanation
DeepCamp AI