TGViewer
Mobile Native ️️ Mobile Native ️️ @mobile_native · 5.38K subscribers
Post #1086 4.62K

Forwarded from Swift Tips

Mastering in SwiftUI

Большая и полезная статья с примерами кода, в которой рассматриваются важные моменты, которые помогут вам повысить производительность и эффективность разработки.

• Which architecture is better: Redux or MVVM?
• Use @StateObject and @ObservableObject
• Create @Published variable with care
• Breaking down the content of the body into smaller to minimize the compilation time
• Prefer @State for the animations instead of @Published
• Declare Observable objects at a specific place to avoid unnecessary UI update
• Find which data change is causing a SwiftUI view to update
• Use LazyHStack and LazyVStack if you have a long list
• Is there anything similar to viewDidLoad()?
• Use UIKit components directly in SwiftUI
• Conditional modifier
• Avoid using .padding and .frame together
• Use GeometryReader wisely
• Use AnyView occasionally
• Must use ID with Foreach and List
• Prefer using Text over Label
• Use Group to return multiple view instances
• Use .fixedSize() to specify that the frame doesn’t change

Перевод от AppTractor → Мастерство работы в SwiftUI

Читать (En)
  • 🔥 2
  • ❤ 1
  • 👍 1
More from @mobile_native
  1. Sep 9, 2026🤳 Как работает мобильная разработка с AI под капотом — интенсивы от Podlodka Crew Конфере…
  2. Jul 22, 2026Всем привет! Давненько меня не было в тг, давно уже ничего не публиковал в каналах – вот р…
  3. Jul 22, 2026Привет! Ну ты как там? Как дела, что нового? 😃
  4. Apr 19, 2026Kotlin Coroutine bridges: converting any callback-based Android API to suspend functions П…
  5. Apr 19, 2026Маяк в пустыне: Kotlin DSL для Android-шейдеров В статье автор рассказывает про сложности…
  6. Apr 8, 2026Разбираем Remote Compose: как Google предлагает строить BDUI Обзорная статья от ребят из А…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →