SwiftUI dev
1.17K subscribers
87 photos
37 videos
1 file
74 links
Mobile development, SwiftUI, Compose, feel free to reach me: @lexkraev
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
Xcode multi-cursor feature

Think everybody knows about this but whatever )))
This media is not supported in your browser
VIEW IN TELEGRAM
По-умолчанию, если вы добавляете кнопку в ячейку, вся ячейка будет реагировать на action этой кнопки.

Для ожидаемого поведения используйте модификатор .buttonStyle(PlainButtonStyle()) (или .buttonStyle(BorderedButtonStyle()), доступный с iOS 15)

By default, if you add a button to a SwiftUI's cell, all the cell's area will react to button's action.

To fix this, use .buttonStyle(PlainButtonStyle()) modifier (or .buttonStyle(BorderedButtonStyle()) available from iOS 15)

#howto
This media is not supported in your browser
VIEW IN TELEGRAM
Синтаксис if-let (и guard-let) в Swift 5.7 стал проще

New in Swift 5.7, the if-let syntax is even shorter 🔥 (it also works with guard-let)
This media is not supported in your browser
VIEW IN TELEGRAM
Расширяющиеся карточки 🌄🌅 Посмотреть код здесь

Expanding flex cards using SwiftUI 🌄🌅 You may find code here

#trytodo #tasty #groovy #getsources
This media is not supported in your browser
VIEW IN TELEGRAM
Именно так, начиная с xcode 13, можно поставить breakpoint внутри такого замыкания 👨🏻‍💻

You can use special tool - Column Breakpoints - to set a breakpoint inside that kind of closure 👨🏻‍💻
This media is not supported in your browser
VIEW IN TELEGRAM
Варианты открытий кнопки меню в виде 🍔 Код здесь

Cooking hamburgers 🍔 Code is here

#tasty #getsources
Media is too big
VIEW IN TELEGRAM
Кастомизируем таб бар Код можно найти здесь

Customising and animating tab bar 🌊 using SwiftUI Code is here

#howto #tasty #groovy #getsources

@swiftui_dev
This media is not supported in your browser
VIEW IN TELEGRAM
Концепт магазина кросс 👟🤙🏻 Код здесь

Sneakers shop concept 👟🤙🏻 Code is here

#tasty #getsources
В SwiftUI отсутствует метод viewDidLoad(), самый близкий по смыслу: onAppear. Можно сэмулировать поведение viewDidLoad() следующим модификатором.

There is no viewDidLoad() equivalent method in SUI, the closest one is onAppear. Actually we can simulate viewDidLoad() behavior with custom modifier.

#howto
This media is not supported in your browser
VIEW IN TELEGRAM
Анимация из рекламы 🍟 Код здесь

Fast food cafe animation (have seen in the commercial) 🍟 Code is here

#tasty #groovy #getsources #trytodo

@swiftui_dev
Разница в использовании async let.

The difference of using async let explained in a code example.

#readthis
Media is too big
VIEW IN TELEGRAM
Нарисуем и подсветим циферблат у часов Panerai ⌚️ Код доступен на boosty

Panerai watches ⌚️ Code is available on boosty

#trytodo #tasty
Font hints 🖖🏻

#groovy
SwiftUI dev pinned a photo
This media is not supported in your browser
VIEW IN TELEGRAM
Очередной непростой челлендж 🤘🏻 Создадим лоадер 📶 Код здесь

Another pretty difficult challenge 🤘🏻 Developing loader 📶 Code is here

#trytodo #tasty

@swiftui_dev
This media is not supported in your browser
VIEW IN TELEGRAM
Необычные вертикальные часы 📶 ⌚️ Код здесь

Unusual vertical watches 📶 ⌚️ Code is here

#tasty

@swiftui_dev