2024-02-04T05:39:33.592Z
nova-2
2-general-nova
2024-01-09.29447
30089e05-99d1-4376-b32e-c263170674af
c442de37-e12f-481a-8ed2-60c581c06209
c084b6b9aab6b5e0748183dde6ee81eef34b2b96a901ab5c02c9d0608203864a
67875a7f-c9c4-48a0-aa55-5bdb8a91c34a
deprecated
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 19 eighties.
Swift interrupts 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 macOS, wearable apps for watchOS, 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 compile, 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 dot 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.
Use.
Functions are declared with the func keyword and will use named parameters by default.
Place an underscore before the name to use positional arguments instead.
Now use a backslash with parenthesis to interpolate these values into a string.
Functions in Swift are first class objects.
They can be passed as arguments, used as return values, use and nested to create closures.
It also supports object oriented patterns like classes and inheritance to encapsulate the var and func keywords that you just swarned.
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 wanna 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.

Speaker 0: 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 19 eighties. Swift interrupts 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 macOS, wearable apps for watchOS, 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 compile, 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 dot 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. Use. Functions are declared with the func keyword and will use named parameters by default. Place an underscore before the name to use positional arguments instead.

Now use a backslash with parenthesis to interpolate these values into a string. Functions in Swift are first class objects. They can be passed as arguments, used as return values, use and nested to create closures. It also supports object oriented patterns like classes and inheritance to encapsulate the var and func keywords that you just swarned. 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 wanna 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.
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 19 eighties.
software development
Swift interrupts 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 macOS, wearable apps for watchOS, 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 compile, 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.
programming
computer science
To get started, install it, then create a file ending in dot 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. Use. Functions are declared with the func keyword and will use named parameters by default. Place an underscore before the name to use positional arguments instead. Now use a backslash with parenthesis to interpolate these values into a string. Functions in Swift are first class objects.
They can be passed as arguments, used as return values, use and nested to create closures. It also supports object oriented patterns like classes and inheritance to encapsulate the var and func keywords that you just swarned. Now pull up the terminal and run the Swift compiler to convert your code into a high performance executable.
programming
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 wanna 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.
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 19 eighties. Swift interrupts 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 macOS, wearable apps for watchOS, 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 compile, 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 dot 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. Use. Functions are declared with the func keyword and will use named parameters by default. Place an underscore before the name to use positional arguments instead. Now use a backslash with parenthesis to interpolate these values into a string. Functions in Swift are first class objects. They can be passed as arguments, used as return values, use and nested to create closures. It also supports object oriented patterns like classes and inheritance to encapsulate the var and func keywords that you just swarned. 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 wanna 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.
Swift.
swift
A
a
multi
multi
paradigm
paradigm
compiled
compiled
language
language
created
created
by
by
Apple
apple
famous
famous
for
for
building
building
apps
apps
that
that
grow
grow
inside
inside
of
of
Apple's
apple's
walled
walled
garden.
garden
It
it
was
was
first
first
introduced
introduced
in
in
2014
2014
at
at
the
the
Worldwide
worldwide
Developers
developers
Conference,
conference
and
and
was
was
designed
designed
as
as
a
a
modern
modern
successor
successor
to
to
Objective
objective
c,
c
the
the
original
original
Apple
apple
platform
platform
language
language
that
that
had
had
been
been
in
in
use
use
since
since
19
19
eighties.
eighties
Swift
swift
interrupts
interrupts
with
with
objective
objective
c,
c
but
but
provides
provides
a
a
shorter,
shorter
more
more
readable
readable
syntax
syntax
and
and
features
features
like
like
memory
memory
safety
safety
and
and
type
type
inference
inference
to
to
improve
improve
developer
developer
productivity.
productivity
Today,
today
it's
it's
used
used
to
to
build
build
mobile
mobile
apps
apps
on
on
iOS,
ios
desktop
desktop
apps
apps
on
on
macOS,
macos
wearable
wearable
apps
apps
for
for
watchOS,
watchos
but
but
is
is
also
also
open
open
source
source
which
which
means
means
it
it
can
can
be
be
used
used
to
to
build
build
software
software
outside
outside
of
of
Apple
apple
platforms.
platforms
It
it
compiles
compiles
to
to
native
native
machine
machine
code
code
and
and
is
is
built
built
on
on
top
top
of
of
the
the
LLVM
llvm
tool
tool
chain
chain
like
like
many
many
other
other
modern
modern
languages.
languages
However,
however
it
it
also
also
supports
supports
a
a
readable
readable
print
print
loop
loop
allowing
allowing
you
you
to
to
experiment
experiment
with
with
code
code
in
in
a
a
playground
playground
without
without
needing
needing
to
to
compile,
compile
making
making
it
it
a
a
great
great
language
language
for
for
beginners.
beginners
In
in
addition,
addition
it
it
provides
provides
memory
memory
safety
safety
by
by
preventing
preventing
you
you
from
from
writing
writing
unsafe
unsafe
code
code
by
by
default
default
and
and
uses
uses
automatic
automatic
reference
reference
counting
counting
to
to
manage
manage
memory
memory
automatically.
automatically
To
to
get
get
started,
started
install
install
it,
it
then
then
create
create
a
a
file
file
ending
ending
in
in
dot
dot
swift.
swift
Your
your
code
code
will
will
start
start
executing
executing
in
in
the
the
global
global
scope.
scope
There's
there's
no
no
need
need
for
for
a
a
main
main
function.
function
Create
create
a
a
variable
variable
with
with
the
the
var
var
keyword
keyword
followed
followed
by
by
its
its
name
name
and
and
value.
value
Var
var
creates
creates
a
a
mutable
mutable
variable,
variable
which
which
means
means
its
its
value
value
can
can
change
change
in
in
the
the
future.
future
Let
let
on
on
the
the
other
other
hand
hand
creates
creates
an
an
immutable
immutable
variable
variable
or
or
constant.
constant
It
it
uses
uses
type
type
inference
inference
to
to
strongly
strongly
type
type
the
the
value
value
as
as
a
a
string,
string
but
but
we
we
can
can
explicitly
explicitly
type
type
it
it
by
by
adding
adding
a
a
semicolon
semicolon
after
after
the
the
variable
variable
name.
name
Every
every
variable
variable
must
must
be
be
initialized
initialized
with
with
a
a
value,
value
unless
unless
the
the
type
type
has
has
a
a
question
question
mark,
mark
which
which
makes
makes
it
it
an
an
optional
optional
type,
type
allowing
allowing
it
it
to
to
also
also
contain
contain
a
a
nil
nil
value.
value
It
it
also
also
supports
supports
optional
optional
chaining,
chaining
making
making
it
it
really
really
easy
easy
to
to
work
work
with
with
nil
nil
values.
values
Use.
use
Functions
functions
are
are
declared
declared
with
with
the
the
func
func
keyword
keyword
and
and
will
will
use
use
named
named
parameters
parameters
by
by
default.
default
Place
place
an
an
underscore
underscore
before
before
the
the
name
name
to
to
use
use
positional
positional
arguments
arguments
instead.
instead
Now
now
use
use
a
a
backslash
backslash
with
with
parenthesis
parenthesis
to
to
interpolate
interpolate
these
these
values
values
into
into
a
a
string.
string
Functions
functions
in
in
Swift
swift
are
are
first
first
class
class
objects.
objects
They
they
can
can
be
be
passed
passed
as
as
arguments,
arguments
used
used
as
as
return
return
values,
values
use
use
and
and
nested
nested
to
to
create
create
closures.
closures
It
it
also
also
supports
supports
object
object
oriented
oriented
patterns
patterns
like
like
classes
classes
and
and
inheritance
inheritance
to
to
encapsulate
encapsulate
the
the
var
var
and
and
func
func
keywords
keywords
that
that
you
you
just
just
swarned.
swarned
Now
now
pull
pull
up
up
the
the
terminal
terminal
and
and
run
run
the
the
Swift
swift
compiler
compiler
to
to
convert
convert
your
your
code
code
into
into
a
a
high
high
performance
performance
executable.
executable
Congratulations.
congratulations
Your
your
code
code
is
is
now
now
ready
ready
to
to
seek
seek
approval
approval
on
on
the
the
Apple
apple
App
app
Store.
store
This
this
has
has
been
been
the
the
Swift
swift
programming
programming
language
language
in
in
100
100
seconds.
seconds
If
if
you
you
wanna
wanna
see
see
more
more
short
short
videos
videos
like
like
this,
this
make
make
sure
sure
to
to
hit
hit
the
the
like
like
button
button
and
and
subscribe.
subscribe
Thanks
thanks
for
for
watching,
watching
and
and
I
i
will
will
see
see
you
you
in
in
the
the
next
next
one.
one
success
In this video, the speaker explains the features of Apple's developers platform, including its multi-stakeable and open source nature, including its use in mobile apps and desktop apps, as well as its use in command line code. They also discuss the use of a backslash with parenthesis and the use of variables and parameters in Swift code to create objects and reference values. The speaker then provides a brief overview of the language and its use, and encourages viewers to check out short videos for more information.
Swift in 100 Seconds
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?