TGViewer
Channel Public Channel
Swift Tips

Swift Tips

@swift_tips

Ежедневные советы, подсказки, лайфхаки и статьи по iOS и Swift.

По всем вопросам: @artemiygreg
Найти проект: @ios_job
Subscribers
3.17K
Photos
487
Videos
17
Links
463

Showing posts older than #777 · Back to latest

Older Posts 20 shown
Post #775 1.7K
iOS 26: Notable UIKit Additions

Такс, разбираю отложенные материалы, вероятно до конца недели могу чутка поспамить, но это не точно 😉

Небольшая обзорная статья основных изменений в UIKit.

👉 Observable Objects
👉 Update properties
👉 Flushing animation updates

Читать (En)
  • 🔥 4
  • ❤ 3
  • 👍 2
  • 👏 2
Post #774 2.22K
Swift concurrency. Executors, Actors и их связь с потоками

Новая и как всегда подробная часть из этой серии, в которой рассказывается про недра Swift Concurrency.

🟢Как определяется поток, на котором будет выполняться Task
🟢Почему в рамках одной Task поток может меняться
🟢Что такое Executor и на какие типы он делится
🟢За что отвечает TaskExecutor, а за что SerialExecutor
🟢Как определить текущий Executor по коду
🟢Как использовать свой самописный Executor

Читать (Ru)
  • 👍 4
  • ❤ 3
  • 🔥 3
Post #773 1.7K
Привет! Давно не виделись, пришло время возвращаться к публикациям 😎
  • ❤ 4
  • 👍 4
  • 🔥 3
Post #772 2.68K
Rafinad: сахар для UI-тестирования iOS-приложений

Ребята из iOS-команды hh выкатили свои наработки по UI-тестированию в виде open-source проекта — Rafinad.

В статье рассказывают, что из себя представляет Rafinad, что умеет и как им пользоваться.

Библиотека на GitHub → Rafinad

Читать (Ru)
  • 👍 10
  • ❤ 4
  • 🔥 4
Post #771 3.2K
С Днём Победы!!!
С Великим Праздником, друзья!
  • ❤ 42
  • 🕊 17
  • 👍 9
  • 🙏 2
Post #769 3.5K
Отлаживаем приложение вместе со SwiftUI Instruments

Статья-гайд от Surf про отладку приложения с помощью SwiftUI Instruments.

🟢Что такое SwiftUI Instruments и зачем он нужен
🟢Как и в каких случаях стоит использовать
🟢Пример отладки кастомной шторки

Читать (Ru)
  • 👍 9
  • 🔥 4
  • ❤ 3
Post #768 2.64K
Сollection of TextRenderer

Prismic — репозиторий с подборкой примеров TextRenderer для визуализации текста с помощью специальных эффектов. Некоторые эффекты на чистом Swift, а другие, более сложные с использованием Metal.

Репозиторий на GitHub → Prismic
  • 👍 4
  • ❤ 3
  • 🔥 3
Post #767 2.35K
SwiftUI Cookbook • SwiftUI Best Practices & Tips

Welcome to the SwiftUI Best Practices & Tips section! In this valuable part of the guide, you’ll explore various best practices and tips for mastering SwiftUI, Apple’s innovative UI framework.

• Improving SwiftUI Performance
• Reducing Complexity in SwiftUI Views
• Separating View Logic with View Models
• Using Environment Variables in SwiftUI
• Optimizing Animations in SwiftUI
• Maintaining State in SwiftUI
• Debugging SwiftUI Views
• Creating Reusable SwiftUI Components
• Using View Composition in SwiftUI

← Предыдущая часть

Читать (En)
  • ❤ 6
  • 👍 5
  • 🔥 4
Post #766 1.99K
Using Swift’s defer keyword within async and throwing contexts

В статье разбирается использование ключевого слова defer в контексте асинхронщины, на простом примере запросов к БД.

Читать (En)
  • 👍 5
  • ❤ 4
  • 🔥 4
Post #764 5.05K
How to inspect .ipa files and secure your iOS app from common mistakes

Гайд по тому, как исследовать .ipa-файлы и какие данные из них можно получить. Также в статье приводятся простые, базовые правила для организации безопасности чувствительных данных.

Читать (En)
  • 👍 9
  • ❤ 6
  • 🔥 4
Post #763 2.83K
Rules of Structured Concurrency

Большая статья про структурированные и неструктурированные задачи.

🟢Structured and Unstructured Tasks
🟢Parent and Child Tasks
🟢Structured tasks
🟢Unstructured tasks
🟢Rules of Structured Concurrency
🟢Group Completion Rule
🟢Group Cancellation Rule
🟢Error propagation Rule
🟢Context Inheritance
🟢When to use structured and unstructured concurrency?

Читать (En)
  • 👍 14
  • ❤ 7
  • 🔥 6
Post #762 2.46K
SwiftUI Cookbook • Advanced Topics in SwiftUI

Welcome to the Advanced Topics in SwiftUI section. This part of the guide is dedicated to helping you delve deeper into the many advanced facets of SwiftUI, equipping you with the knowledge to handle complex tasks and create robust SwiftUI applications.

• Design a Seamless Onboarding Experience in SwiftUI
• Create & Customize Charts in SwiftUI With Swift Charts
• Create Complex UI With SwiftUI Shape & Path
• Integrate SwiftUI With UIKit
• Integrate Core Data With SwiftUI
• Async/Await in SwiftUI
• Using Combine With SwiftUI
• Unit Testing Strategies in SwiftUI
• Testing SwiftUI Views With ViewInspector
• Implement MVVM Architecture in SwiftUI

← Предыдущая часть | Следующая часть →

Читать (En)
  • 👍 5
  • ❤ 4
  • 🔥 4
Post #759 1.71K
Presenting an Inspector with SwiftUI

Детальная статья по использованию инспектора в SwiftUI.

Читать (En)
  • ❤ 5
  • 🔥 5
  • 👍 4
Post #757 2.02K
SwiftData Architecture – Patterns and Practices

Большая статья с примерами, в которой автор делится архитектурными наработками для работы с SwiftData.

🟢How to structure your data models
🟢Where to place business logic and validation
🟢When to use DTOs (and when not to)
🟢How to write meaningful unit tests
🟢How to set up effective Xcode previews
🟢How to work with CloudKit integration
🟢How to future-proof your app against changes in persistence layers

Читать (En)
  • 🔥 5
  • ❤ 4
  • 👍 4
Post #756 2.26K
Apple вводит подписочную модель. Теперь инструменты для разработки будут платными.

Стоимость зависит от набора необходимых инструментов. Базовый пакет, в который входит XCode, 3 симулятора и Debugging – 699$ / месяц 😳

Читать (En)
  • 😁 80
  • 😱 9
  • 👀 4
  • ⚡ 2
  • ❤ 2
  • 👍 2
  • 🤡 1
Post #753 4.72K
Enhance Your Code Architecture With SOLID Principles

Ещё одна полезная статья про SOLID, с разбором распространенных ошибок, которые нарушает эти принципы. Каждый принцип рассматривается на простом для понимания примере, на Swift`е.

Читать (En)
  • 👍 5
  • 🔥 5
  • ❤ 4
  • 🤡 2
Post #752 2.22K
SwiftUI Cookbook • Deploying & Debugging SwiftUI Apps

Welcome to the Deploying & Debugging SwiftUI Apps section. It’s one thing to code an app, but getting it ready for deployment and effectively debugging it is another essential skill set. This section is here to guide you through that process and help you master the practical aspects of SwiftUI development.

• Building & Running SwiftUI Apps in Xcode
• Configuring the Deployment Target for SwiftUI Apps
• Configuring App Icons & Launch Screens in SwiftUI
• Managing App Permissions
• Debugging SwiftUI Code with Xcode’s Debugger
• Using the Console to Debug SwiftUI Apps
• Getting Started with SwiftUI Previews
• Customizing SwiftUI Previews
• Finding Memory Leaks Using Instruments
• Understanding & Reducing Startup Time With Instruments

← Предыдущая часть | Следующая часть →

Читать (En)
  • 👍 5
  • ❤ 3
  • 🔥 2
Post #751 5.4K
Using Proxyman to Intercept and Simulate iPhone App Network Requests

Гайд по настройке и использованию Proxyman для перехвата трафика, тестирования API с помощью мок-данных и т.д.

🟢Background and Requirements
🟢Installing and Configuring Proxyman and Certificates
🟢Capturing Network Requests
🟢Data Simulation (Mock Data)
🟢Summary and Reflections

Читать (En)
  • 👍 12
  • 🔥 5
  • ❤ 4
Older posts →
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 →