Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make it work with Google Maps. #4

Open
rajdhakate opened this issue Aug 28, 2017 · 1 comment
Open

Can't make it work with Google Maps. #4

rajdhakate opened this issue Aug 28, 2017 · 1 comment

Comments

@rajdhakate
Copy link

rajdhakate commented Aug 28, 2017

Hi I want to implement this over my google map view. Though the draggable view is visible and hides/unhides on taps, it is still undraggable.

Here's my code -

@property (nonatomic, strong) AGPullViewConfigurator *configurator;
@property (strong, nonatomic) IBOutlet UIView *informationPopup;

- (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; [self.configurator layoutPullView]; }

`- (void) setupPullInformationView {
self.configurator = [AGPullViewConfigurator new];
[self.configurator setupPullViewForSuperview:self.view colorScheme:ColorSchemeTypeWhite];
self.configurator.percentOfFilling = @25;
self.configurator.delegate = self;
self.configurator.needBounceEffect = true;
self.configurator.animationDuration = @0.3;
self.configurator.enableShowingWithTouch = true;
self.configurator.enableHidingWithTouch = true;

[self.configurator fullfillContentViewWithView:self.informationPopup];

}`

informationPopup is a view i designed in xib. i'm making that view my pullup view.

Any help regarding this is appreciated.
Thanks for this library.

EDIT : Also i've noticed when pullView is opened, the mapView becomes unresponsive. I guess that's because of the upperButton role in play. If i disable the upperButton i'm unable to hide the pullView

@iaagg
Copy link
Owner

iaagg commented Aug 28, 2017

@rajdhakate Hi, thank you for your feedback!
You're right about upperButton role in this issue.
When you set 'enableShowingWithTouch' flag to 'true', the transparent button will be added above your pull view, when it is opened. This button is used to hide your pull view.
You can set this flag to 'false', and there will be no upperButton + your MapView will be available for touches. But yes, you will be able to close pull view only with dragging it's top edge down, or programmatically. So no closing with just touching above pull view will be available.

If you have any suggestions how to improve this flow, i will appreciate to fix the source code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants