Concurrency & Persistance

App Storage / User Defaults

Importance of App Storage in iOS

Data Persistence

Offline Access
Performance

Privacy and Security

Customization
Compliance

Security 

Wallpaper App 

1. Build the App

2. Add Security

 

1. Build while thinking about security

Login -> Username -> token 

log.print(token)

1. api keys

2. don't log tokens

Azure

Async

AI Skills

1. Deeplearning.ai

2. NVIDIA Gen AI Courses

LLMs -> 1

 

Distribute -> Distribute 

1. Codign concepts

2. stats /linear algebra

Example how Async Helps

https://www.youtube.com/watch?v=jEpg2SYvVV8&list=PLwvDm4VfkdpiagxAXCT33Rkwnc5IVhTar&index=18

Completion Handler

New Thread vs UI Thread

Backgorund vs Main

Self keyword

 

struct Test {

@state var data = "Harry

init{

self.data ="potter

data = "potter"

}

 

https://www.youtube.com/watch?v=TPHp9kR0Go8&list=PLwvDm4VfkdpiagxAXCT33Rkwnc5IVhTar&index=19

Strong vs Weak referece

self.data -> Strong reference

[weak self].data -> weak reference

 

Ways of Rest API calls

1. URL Session & Escaping

2. Combines

3. Aync Await -> Best way

 

1.  URL Session

all work on new thread

2. Combines

https://www.youtube.com/watch?v=9fXI6o39jLQ&list=PLwvDm4Vfkdphr2Dl4sY4rS9PLzPdyi8PM&index=3

Handling Combined & Esacaping

ConcurrencyTitle Text

By Harnoor Singh

ConcurrencyTitle Text

  • 209