iOS

SwiftUI State Management

@State, @Binding, @ObservedObject, @EnvironmentObject, @StateObject, data flow

22 āļ„āļģāļ–āļēāļĄāļŠāļąāļĄāļ āļēāļĐāļ“āđŒÂ·
Mid-Level
1

Which property wrapper to use for managing local state in a SwiftUI view?

āļ„āļģāļ•āļ­āļš

@State creates a source of truth for mutable data within a view. SwiftUI automatically manages the lifecycle and redraws when the value changes. This is the fundamental mechanism for local state modifications in a single view.

2

What is the purpose of the @Binding property wrapper in SwiftUI?

āļ„āļģāļ•āļ­āļš

@Binding creates a bidirectional reference to an existing source of truth. It allows a child view to modify parent data without owning the source itself. This is essential for parent-child communication while maintaining a single source of authority.

3

What is the role of @Published in SwiftUI state management?

āļ„āļģāļ•āļ­āļš

@Published marks properties of an ObservableObject class as observable. When a @Published property changes, the class notifies all observers, triggering view redraws. It bridges classes with SwiftUI's reactive system.

4

How to access a parent's @State property in a child view?

5

When to use @AppStorage instead of @State?

+19 āļ„āļģāļ–āļēāļĄāļŠāļąāļĄāļ āļēāļĐāļ“āđŒ

āļŦāļąāļ§āļ‚āđ‰āļ­āļŠāļąāļĄāļ āļēāļĐāļ“āđŒ iOS āļ­āļ·āđˆāļ™āđ†

Swift Basics

Junior
25 āļ„āļģāļ–āļēāļĄ

Swift Language Essentials

Junior
15 āļ„āļģāļ–āļēāļĄ

UIKit Fundamentals

Junior
18 āļ„āļģāļ–āļēāļĄ

UIViewController Lifecycle

Junior
20 āļ„āļģāļ–āļēāļĄ

UserDefaults & Keychain

Junior
20 āļ„āļģāļ–āļēāļĄ

Application Lifecycle

Junior
20 āļ„āļģāļ–āļēāļĄ

Auto Layout & Constraints

Mid-Level
24 āļ„āļģāļ–āļēāļĄ

UITableView & UICollectionView

Mid-Level
25 āļ„āļģāļ–āļēāļĄ

SwiftUI Basics

Mid-Level
18 āļ„āļģāļ–āļēāļĄ

SwiftUI Navigation

Mid-Level
18 āļ„āļģāļ–āļēāļĄ

Networking & URLSession

Mid-Level
20 āļ„āļģāļ–āļēāļĄ

Codable & JSON Parsing

Mid-Level
20 āļ„āļģāļ–āļēāļĄ

Core Data

Mid-Level
22 āļ„āļģāļ–āļēāļĄ

Protocol Oriented Programming

Mid-Level
20 āļ„āļģāļ–āļēāļĄ

MVVM Architecture

Mid-Level
20 āļ„āļģāļ–āļēāļĄ

Push Notifications

Mid-Level
18 āļ„āļģāļ–āļēāļĄ

Unit Testing & XCTest

Mid-Level
20 āļ„āļģāļ–āļēāļĄ

UI Testing

Mid-Level
18 āļ„āļģāļ–āļēāļĄ

Xcode & Build System

Mid-Level
16 āļ„āļģāļ–āļēāļĄ

Swift Package Manager

Mid-Level
16 āļ„āļģāļ–āļēāļĄ

Memory Management & ARC

Senior
22 āļ„āļģāļ–āļēāļĄ

Combine Framework

Senior
24 āļ„āļģāļ–āļēāļĄ

Concurrency & async/await

Senior
26 āļ„āļģāļ–āļēāļĄ

iOS Design Patterns

Senior
24 āļ„āļģāļ–āļēāļĄ

Performance Optimization

Senior
22 āļ„āļģāļ–āļēāļĄ

Security & Encryption

Senior
20 āļ„āļģāļ–āļēāļĄ

SwiftUI Advanced

Senior
22 āļ„āļģāļ–āļēāļĄ

iOS Application Architecture

Senior
22 āļ„āļģāļ–āļēāļĄ

āđ€āļŠāļĩāđˆāļĒāļ§āļŠāļēāļ iOS āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļ„āļĢāļąāđ‰āļ‡āļ–āļąāļ”āđ„āļ›

āđ€āļ‚āđ‰āļēāļ–āļķāļ‡āļ„āļģāļ–āļēāļĄāļ—āļąāđ‰āļ‡āļŦāļĄāļ” flashcards āđāļšāļšāļ—āļ”āļŠāļ­āļšāđ€āļ—āļ„āļ™āļīāļ„ āđāļšāļšāļāļķāļāļŦāļąāļ” code review āđāļĨāļ°āļ•āļąāļ§āļˆāļģāļĨāļ­āļ‡āļŠāļąāļĄāļ āļēāļĐāļ“āđŒ

āđ€āļĢāļīāđˆāļĄāđƒāļŠāđ‰āļŸāļĢāļĩ