Clase 1 Que es swift / Layouts-1.pdf

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 17

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

18 Terms

1

swift

LENGUAJE DE PROGRAMACIÓN CREADO EN EL
2019 PARA LA CREACIÓN DE CONTENIDO MULTIPLAFORMA DE
APPLE

New cards
2

Variables are always

initialized before use, specifiyng its type and value

New cards
3

Swift objects can never be

nil

New cards
4

Package manager

Is a cross-platform tool for building, running,
testing, and packaging your Swift libraries and
executables

New cards
5

UIKit

Utiliza un modelo de programación basado en
eventos, lo que significa que los
desarrolladores tienen que escribir más código
para manejar varios eventos que ocurren en la
aplicación.

New cards
6

MVMV

Software Design Pattern

<p>Software Design Pattern</p>
New cards
7

Model

Represents the app’s data and its business logic. It
consists of Swift types containing the business
logic. Typically, these are Swift value types
(structures and enumerations)

New cards
8

View

serves as the space where we define the
visual layout of the user interface.

New cards
9

ViewModel

retains the data and is responsible
for managing changes to the data. It functions as
an intermediary between the model and the view.
(ObservableObject)

New cards
10

@State

Property wrapper used to store values that can change over time and whose changes
need to be reflected in the UI. The changes are only used in the View

New cards
11

Data binding (@Binding)

Method for connecting two pieces of data so that changes to one are automatically reflected in the other. Read and Write

New cards
12

@ObservedObject

Used for the viewModel property that can notify its
observers when its properties change. The wrapper allows the
view to observe the viewModel and update itself
when the count property changes

New cards
13

@EnvironmentObject

Used to automatically inject an
ObservableObject into many views within a
hierarchy and provide a way to share data
globally. The object is created at a higher level
and automatically shared with child views.

New cards
14

App Layouts

organize the information showed
inside your View file by using the
parameters.
HStack {}
VStack {}
ZStack {}

<p><span style="font-size: calc(var(--scale-factor)*24.00px)">organize the information showed</span><br><span style="font-size: calc(var(--scale-factor)*24.00px)">inside your View file by using the</span><br><span style="font-size: calc(var(--scale-factor)*24.00px)">parameters.</span><br><span style="font-size: calc(var(--scale-factor)*24.00px)">HStack {}</span><br><span style="font-size: calc(var(--scale-factor)*24.00px)">VStack {}</span><br><span style="font-size: calc(var(--scale-factor)*24.00px)">ZStack {}</span></p>
New cards
15

Hstack

Horizontal

New cards
16

VStack

Vertical

New cards
17

ZStack

In front or behind

New cards
18
New cards
robot