joomcode / bottomsheet Goto Github PK
View Code? Open in Web Editor NEWBottom Sheet for iOS
Home Page: https://medium.com/joomtech/bottom-sheet-shall-we-drop-the-formalities-400515255829
License: MIT License
Bottom Sheet for iOS
Home Page: https://medium.com/joomtech/bottom-sheet-shall-we-drop-the-formalities-400515255829
License: MIT License
hello ,i am facing a issues that if i using dismiss(animated: true) instead of swipe-down or just tapping on an empty space, the dismissCompletion cannot be received ,how to solve it , thanks you
I found a strange behaviour, that if botomsheet is presented on botomsheet and we swipe the top one down, both will be dismissed. But if we tap on shadow or call dismiss
of top one by ourselves, everything will be alright.
I guess the reason is this method of BottomSheetPresentationController
:
The tap works with such a way:
Looks like in startInteractiveTransition
the presenting controller dismisses, so the both bottomsheets dismisses. Can you please change the behavier to dismiss only presented bottomshet? All my tries failed 😞
Hello! How to hide pull bar?
presentBottomSheet(
viewController: viewControllerToPresent,
configuration: BottomSheetConfiguration(
cornerRadius: 10,
pullBarConfiguration: .visible(.init(height: 20)),
shadowConfiguration: .init(backgroundColor: UIColor.black.withAlphaComponent(0.6))
),
canBeDismissed: {
// return true
or false
based on your business logic
true
},
dismissCompletion: {
// handle dismiss completion if user closed bottom sheet by a gesture
}
)
I can't find above function which allows me to pass canBeDismissed. Can anyone help me
Is there a way to dismiss the bottom sheet automatically without dragging it down?
Столкнулся с проблемой вызова метода didSelectRowAt табличного представления, ячейка подсвечивается цветом, но события не приходит в метод didSelectRowAt
возможно где то не выставлено свойство жеста cancelsTouchesInView = false
From Fall 2023 Apple starts rolling out new privacy requirements, The apps and third-party SDKs should contain a privacy manifest file when they access required reason API. SkeletonView SDK uses UserDefaults which is required description of use in PrivacyManifest.
Otherwise, apps that don’t describe their use of required reason API in their privacy manifest file won’t be accepted by App Store Connect. Here is a link to the [Apple documentation].(https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api).
Add a PrivacyInfo.xcprivacy file and the following information to the Privacy Accessed API Types section
Privacy Accessed API Type: User Defaults
Privacy Accessed API Reasons: CA92.1: Access info from same app, per documentation
Hello,
I have a problem when try create archive in Xcode 14,
Showing Recent Issues ***/BottomSheet.o' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file ***/BottomSheet.o' for architecture arm64
I want to disable gesture dismissal of the BottomSheet.
I want to know if we do have a more configuration options like blur intensity, dismiss pan and tap gesture? Currently I think pan gesture needs to work with few methods but I think we can do it by single boolean value.
Hello!
Is it possible to close a BottomSheet by scrolling it down when UITableView is inside? (except using func scrollViewDidScroll(_ scrollView: UIScrollView)
)
For me now it works like this, I scroll down a BottomSheet when UITableView is inside and only UITableView scrolls, but I can not close BottomSheet by doing this.
I have to screen A and B
screen A push to screen B, when i'm in screen B I want catch dismissCompletion when tap around. How?
Thanks
Hello,
I am currently using your library for a project and I'm encountering an issue where the BottomSheet is presented over the TabBar. I would like the TabBar to remain visible when the BottomSheet is presented.
Here is the code I'm using to present the BottomSheet:
viewController: ModalviewController,
configuration: BottomSheetConfiguration(
cornerRadius: 10,
pullBarConfiguration: .visible(.init(height: 20)),
shadowConfiguration: .init(backgroundColor: UIColor.black.withAlphaComponent(0.6))
),
canBeDismissed: {
true
},
dismissCompletion: {
}
)
I've tried presenting the BottomSheet from the TabBarController itself, but this did not solve the issue. Here's the code for that attempt:
viewController: ModalviewController,
configuration: BottomSheetConfiguration(
cornerRadius: 10,
pullBarConfiguration: .visible(.init(height: 20)),
shadowConfiguration: .init(backgroundColor: UIColor.black.withAlphaComponent(0.6))
),
canBeDismissed: {
true
},
dismissCompletion: {
}
)
Is there a solution or workaround for this problem? Any guidance would be much appreciated.
Can we have interactive scroll like https://www.appcoda.com/wp-content/uploads/2021/06/uikit-bottom-sheet-maps.gif?
Hi, how can we handle the keyboard?
Is it possible to make root view controller available when bottom sheet is opened. Like in the Apple Maps app? The sheet is open but you can scroll the map behind it.
With iOS 17 there is a known issue with BottomSheetPresentationController which can be resolved by setting shouldPresentInFullscreen to true.
It would be necessary to have the possibility to set this value via config in order to solve this problem with iOS 17
I am facing issues with the presentation of multiple bottom sheets, particularly when one is triggered before the other has finished its presentation,
One of scenarios as an example:
LoadingBottomSheet is presented.
An error response is received from server and ErrorBottomSheet should be presented.
So, Loading dismiss is called and it gets dismissed but the EroorBottomSheet is not presented because:
Attempt to present <ErrorBottomSheet: 0x113e1e2e0> while a presentation is in progress.
Is there a solution for this in the current version like creating a queue when calling present or not?
Hello. How install this lib via CocoaPods?
Fatal error: Use of unimplemented initializer 'init(nibName:bundle:)' for class 'BottomSheet.BottomSheetNavigationController'
I want to use BottomSheet as my loading view and not let the user dismiss it easily on swipe or outside tap. Is it possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.