Декларативная верстка на примере stories (SwiftUI-style) в UIKit для iOS 11.
Declaratively UI (SwiftUI-inspired) constructed popular Instagram Stories with some improvements for iOS, written in Swift.
#howto
Declaratively UI (SwiftUI-inspired) constructed popular Instagram Stories with some improvements for iOS, written in Swift.
#howto
GitHub
GitHub - c-villain/StoriesTutorual: Blueprint & OpenCombine recreation of the Instagram Stories with features.
Blueprint & OpenCombine recreation of the Instagram Stories with features. - c-villain/StoriesTutorual
Must-have SUI-frame extension
Весьма удобные модификаторы, позволяющие избегать
Забрать можно отсюда
Useful modifiers to avoid
#howto #getsources
Весьма удобные модификаторы, позволяющие избегать
Spacer()
и .frame()
. Взял у Kavsoft :)Забрать можно отсюда
Useful modifiers to avoid
Spacer()
and .frame()
. Check out here.#howto #getsources
This media is not supported in your browser
VIEW IN TELEGRAM
У
Сделал пример, как можно это реализовать
This tutorial demonstrate how we could implement it easily.
#howto #getsources
LazyVGrid
отсутствует возможность объединения столбцов. Сделал пример, как можно это реализовать
LazyVGrid
does not have a column span feature. This tutorial demonstrate how we could implement it easily.
#howto #getsources
Проект с примерами различных анимаций на SwiftUI с лицензией бесплатного коммерческого использования.
A repository containing a variety of animations and Animated components created in SwiftUI that you can use in your own projects.
#howto #getsources
A repository containing a variety of animations and Animated components created in SwiftUI that you can use in your own projects.
#howto #getsources
GitHub
GitHub - Shubham0812/SwiftUI-Animations: A repository containing a variety of animations and Animated components created in SwiftUI…
A repository containing a variety of animations and Animated components created in SwiftUI that you can use in your own projects. - Shubham0812/SwiftUI-Animations
This media is not supported in your browser
VIEW IN TELEGRAM
Possible implementation of waterfall grid with row spanning-trick effect based on LazyVStack.
Реализация грида с ячейками разной высоты на LazyVStack.
#howto #getsources
Реализация грида с ячейками разной высоты на LazyVStack.
#howto #getsources
This media is not supported in your browser
VIEW IN TELEGRAM
Implementation SwiftUI tab bar instead of UIKit’s.
Написал статью, как мы внедряли SwiftUI таб-бар взамен UIKit.
#readthis #howto
Написал статью, как мы внедряли SwiftUI таб-бар взамен UIKit.
#readthis #howto
This media is not supported in your browser
VIEW IN TELEGRAM
Увидел этот пример в ленте linkedin (первоисточник — Eran Lunenfeld, который реализовал на jetpack compose). Решил воспроизвести сам 😊 Думаю, хороший челендж и пример для тестовых заданий на SwiftUI. Попробуйте сверстать сами: есть интересные моменты. Посмотреть код здесь
Saw this example in news feed on linkedin, author was Shai Mishali (who originally saw it from Eran Lunenfeld in his turn) and decided to reproduce myself ))
Think it was nice challenge ))
Try to make it yourself!Anyway code is here
#trytodo #howto #tasty #groovy #getsources
Saw this example in news feed on linkedin, author was Shai Mishali (who originally saw it from Eran Lunenfeld in his turn) and decided to reproduce myself ))
Think it was nice challenge ))
Try to make it yourself!
#trytodo #howto #tasty #groovy #getsources
This media is not supported in your browser
VIEW IN TELEGRAM
По-умолчанию, если вы добавляете кнопку в ячейку, вся ячейка будет реагировать на action этой кнопки.
Для ожидаемого поведения используйте модификатор
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
#howto
Для ожидаемого поведения используйте модификатор
.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
Media is too big
VIEW IN TELEGRAM
Кастомизируем таб бар Код можно найти здесь
Customising and animating tab bar 🌊 using SwiftUICode is here
#howto #tasty #groovy #getsources
@swiftui_dev
Customising and animating tab bar 🌊 using SwiftUI
#howto #tasty #groovy #getsources
@swiftui_dev
В SwiftUI отсутствует метод
There is no
#howto
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