FSPagerView
FSPagerView copied to clipboard
Support for SwiftUI
I have search through swiftui libraries and haven't found any pager view library good enough. Do you have any plan for adding support swiftui for this library? I have used FSPagerView it is very good and I believe should be available on swiftui too.
@ngochiencse Did you find any other library to use the image slider?
@sathamkhussain No, I have to write my own SwiftUI wrapper for FSPagerView in the mean time. You can check this repo: https://github.com/ngochiencse/FSPagerViewExample-SwiftUI. For more detail check my post: https://hienphamit.com/implement-page-view-in-swiftui/
@ngochiencse Can you give me how to transform swipe in SwiftUI because i can found to chose the type of FSPagerViewTransformer
like : pagerView.transformer = FSPagerViewTransformer(type: .overlap)
I have not implemented this feature yet. I'll notice you when done @Tarikharda
With SwiftUI, many libraries should be complete with a convert from UIKit by themself. UIViewController -> UIViewControllerRepresentable UIView -> UIViewRepresentable
-- I tried out that and it's really not too difficult. But we knew Swiftui and uikit bridge were still not yet fluent. It would be best if you built a pager/collection/calendar.. by pure @Swiftui or accepted cases of many bug-related layouts/navigation when using the library from Object-C/UIKit to SwiftUI.