Сделал package для добавления swipe-меню на любое View для iOS 13.0 (Apple-овский аналог доступен только для List, начиная с iOS 15.0)
Made the package for creating swipe actions for any SwiftUI View, similar to Apple's swipeActions(edge:allowsFullSwipe:content:) that available from iOS 15 and only in List 🤷🏼♂️. You can use SwipeActions in project targeting iOS 13 with any view (for ex. Text in VStack)
#swiftpm #getsources
Made the package for creating swipe actions for any SwiftUI View, similar to Apple's swipeActions(edge:allowsFullSwipe:content:) that available from iOS 15 and only in List 🤷🏼♂️. You can use SwipeActions in project targeting iOS 13 with any view (for ex. Text in VStack)
#swiftpm #getsources
GitHub
GitHub - c-villain/SwipeActions: Swipe actions for any view, swipe menu based on SwiftUI, full swiping and RTL languages supporting…
Swipe actions for any view, swipe menu based on SwiftUI, full swiping and RTL languages supporting, iOS 13+, add your own views to swipes - c-villain/SwipeActions
This media is not supported in your browser
VIEW IN TELEGRAM
Сделал package с примером реализации показа всплывающих окон/alert-ов/popover-ов/sheet-ов из любого места в приложении на SwiftUI.
Перед просмотром советую освежить в памяти про EnvironmentValues и прочитать эту статью.
Made a package with an example of the implementation of showing pop-up windows / alerts / popovers / sheets from anywhere in the application on SwiftUI.
Before watching, I advise you to refresh in memory for EnvironmentValues and read this article.
#swiftpm #getsources
Перед просмотром советую освежить в памяти про EnvironmentValues и прочитать эту статью.
Made a package with an example of the implementation of showing pop-up windows / alerts / popovers / sheets from anywhere in the application on SwiftUI.
Before watching, I advise you to refresh in memory for EnvironmentValues and read this article.
#swiftpm #getsources
SwiftUI dev
Навигация Один из блоков вопросов на iOS - собеседовании - архитектура приложений. При этом почти в любой архитектуре вопросы навигации всегда находятся сбоку от обсуждения. Более того, для навигации разрабатывают свои паттерны. Одними из таких являются координатор…
Navigation
Hey guys! I’ve created test project with sample of new navigation API back ported in older SwiftUI versions.
One of the main question at every iOS-interview is app architecture. At the same time routing in the app almost always is the side theme of discussion. Moreover there are different approaches in the navigation in general and all of them have their own patterns such as navigator or coordinator.
Starting from SwiftUI 1.0 in almost every WWDC Apple talks about working with MVVM as if forgetting about routing. Yes, we were introduced to
Instead of
Frankly speaking many teams are still using UIKit routing in SwiftUI projects. Even those who tried to understand
#swiftpm #howto #getsources
Hey guys! I’ve created test project with sample of new navigation API back ported in older SwiftUI versions.
One of the main question at every iOS-interview is app architecture. At the same time routing in the app almost always is the side theme of discussion. Moreover there are different approaches in the navigation in general and all of them have their own patterns such as navigator or coordinator.
Starting from SwiftUI 1.0 in almost every WWDC Apple talks about working with MVVM as if forgetting about routing. Yes, we were introduced to
NavigationView
, NavigationLink
. But the feeling that Apple again has presented intermediate solution does not leave us. Some developers started to create their own wrappers over this API for convenience. Finally in iOS 16 Apple introduced the long-awaited new navigation API. Instead of
NavigationView
(starting with iOS 16 it has been deprecated) we have to use NavigationStack
. Now the navigationDestination
modifier defines a view to display. Frankly speaking many teams are still using UIKit routing in SwiftUI projects. Even those who tried to understand
NavigationView
, gave up and went back to UIKit. With the release of the new navigation API, this approach is a wrong turn. Apart from that the new API requires a minimum deployments as iOS 16.0. So what to do? Use a backport! Try my sample! You may create your own test project to try to work with this package using it.#swiftpm #howto #getsources
This media is not supported in your browser
VIEW IN TELEGRAM
Сделал package для добавления pull-to-refresh на любое View для iOS 14.0 (Apple-овский аналог доступен только для List, начиная с iOS 15.0)
Made the package for marking any SwiftUI View as refreshable, similar to Apple's refreshable(action:) that available from iOS 15 and only in List 🤷🏼♂️.
#swiftpm #groovy #getsources
@swiftui_dev
Made the package for marking any SwiftUI View as refreshable, similar to Apple's refreshable(action:) that available from iOS 15 and only in List 🤷🏼♂️.
#swiftpm #groovy #getsources
@swiftui_dev