Clase 1 Que es swift / Layouts-1.pdf

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

swift

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

2
New cards

Variables are always

initialized before use, specifiyng its type and value

3
New cards

Swift objects can never be

nil

4
New cards

Package manager

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

5
New cards

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.

6
New cards

MVMV

Software Design Pattern

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

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)

8
New cards

View

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

9
New cards

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)

10
New cards

@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

11
New cards

Data binding (@Binding)

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

12
New cards

@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

13
New cards

@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.

14
New cards

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>
15
New cards

Hstack

Horizontal

16
New cards

VStack

Vertical

17
New cards

ZStack

In front or behind

18
New cards