minitour / azdialogviewcontroller Goto Github PK
View Code? Open in Web Editor NEWA highly customizable alert dialog controller that mimics Snapchat's alert dialog.
License: MIT License
A highly customizable alert dialog controller that mimics Snapchat's alert dialog.
License: MIT License
the button height can be set, but not width?
Hi,
It seems there is no support for adding a custom view...
I tried to add a custom view within the code but it does not show anything.
Regards,
Andre
Hi Again;
I found another mistake while using it. If you make closure type initializing and many times dialog.show(in: self)
method calling you then after the dismiss operation is goes a bug.
my code is here ----
How does the .customViewSizeRatio variable resize the custom view?
I'm adding a UITextView inside AZDialogViewController's container view.
Thank you for this wonderful library.
Can you please point me to how to be able to do some thing like this.
let data = ["A", "B", "C"]
for i in 0 ..< data.count {
dialog.addAction(AZDialogAction(title: data[i], handler: doSomething(title or index)))
}
func doSomething(index: Int or title: String){
if title == "A" or index == 0 {
//do something
}
}
Hi.
First of all, thanks for this nice repo.
What I would like to say is that it exists in the project like dismisedDelegate?
Is there any delegate method when the DialogViewController is dragged?
thanks
If so, how can I do this programmatically?
At the moment there is no way we can set color of the message and title label nor we can set color of the alert container. I would suggest to add new apis like
var titleLabelColor: UIColor?
var messageLabelColor: UIColor?
var containerBackgroundColor: UIColor?
Hi,
In setupToolItems(), would you consider to set leftToolItem.heightAnchor.constraint in as the same as rightToolItem.heightAnchor.constraint?
Original:
if leftToolStyle?(leftToolItem) ?? false{
baseView.addSubview(leftToolItem)
leftToolItem.topAnchor.constraint(equalTo: baseView.topAnchor, constant: spacing2).isActive = true
leftToolItem.leftAnchor.constraint(equalTo: baseView.leftAnchor,constant: spacing2).isActive = true
leftToolItem.widthAnchor.constraint(equalTo: leftToolItem.heightAnchor).isActive = true
leftToolItem.addTarget(self, action: #selector(AZDialogViewController.handleLeftTool(:)), for: .touchUpInside)
}
How about?
if leftToolStyle?(leftToolItem) ?? false{
baseView.addSubview(leftToolItem)
leftToolItem.topAnchor.constraint(equalTo: baseView.topAnchor, constant: spacing2).isActive = true
leftToolItem.leftAnchor.constraint(equalTo: baseView.leftAnchor,constant: spacing2).isActive = true
leftToolItem.widthAnchor.constraint(equalTo: leftToolItem.heightAnchor).isActive = true
leftToolItem.heightAnchor.constraint(equalToConstant: 20).isActive = true
leftToolItem.addTarget(self, action: #selector(AZDialogViewController.handleLeftTool(:)), for: .touchUpInside)
}
Thank you very much for the sharing!
Regards,
godustin
I am using a popover to display an appointment diary and I am using AZDialogs to display messages in my app. This works great when presented on a phone as the popover is presented as a modal view so the width of the dialog is correct, however when displayed on an iPad (The target device) the dialog is wider than the popover window.
I have read through other support queries here and can see that there is no support for custom widths, but how does the width get calculated for these dialogs (overall device size at a guess?) and is there any way to get the calculation to use the displaying superview width?
The dialog always popup from bottom, I cannot find a way to make it popup from the top, how to do that?
Thanks.
Hi
I want to display this pop-up above the tabbar.
Like want to display popup in top of the all views.
Thanks
How can i change the dialog width with custom views ?
Having the same issue as #30 . Im using an iphone x and this is how the pop up appears. On Iphone 7-8 pop up window appears normal size. IPhone X AzdialogView's text and buttons appear alot smaller when shown on that device.
I am being able to change font of cancel button and action buttons just fine.
When it comes to changing title and message label fonts, I can't, since it's fileprivate.
Could you release a new version with these two small functions, enabling us to change message label and title label fonts?
Is there a way to reset the constraints of the dialog when the keyboard appears? The keyboard covers parts of the dialog...
I am using AZDialog in my project, but when I try to display a dialog in a custom modal view, the dialog is squeezed. I think this is happening because the custom modal is smaller than the screen height (music app style) - If I present this view with a normal modal presentation style, the dialog works fine. Is there any way to override the height function of the dialog without altering the core dialog view code?
Can you add Objective C support please
I've been trying to modify the AZDialogView's buttons to make them look like the default iOS alert controllers (with a button image in it), but with the gesture-dismissing capabilities of this project. But, I can't customize the button for some reason. Here's my code:
// Configure UIButton styles
dialogController.buttonStyle = { (button, height, position) in
// Fill button with color
button.setImage(UIImage(named: "pop"), for: .normal)
button.semanticContentAttribute = .forceLeftToRight
button.titleLabel?.font = UIFont(name: "AvenirNext-Demibold", size: 16)
button.layer.masksToBounds = true
}
It would be nice to have functionality where we can blur the background chrome of alert.
When I show my dialog to the user, he/she has two options:
Is there a way to absolutely cover the 2 option in one method, thereforing listening to the dismissal call?
Cancel and tap on screen (touchesBegan:) wouldn't be a problem to recognize, while upwards/downwards swipe/pan would be.
If I add a large number of actions the underlying stackView flows beyond the screen.
Add static shared property, to change default style app-wide
Good example, is default iOS components, like UITableViewCell.appearance()
and libraries like ToastSwift
:
var toastStyle = ToastStyle()
toastStyle.backgroundColor = UIColor.init(white: 0, alpha: 0.5)
ToastManager.shared.style = toastStyle
I everyone, I've been testing AZDialogView with iPhone XS Max screen sizes, and the view controller is rendered oddly. It appears very small on the ViewController
The UIButtons in the AZDialogViewController have buttons that are flattened and are not proportional to what the buttons should look like according to the readme for iPhone X screen sizes. Are you using the Safe Area layout guide?
When I present the alert view the fonts are both pretty small. I tried:
dialog.titleFontSize = CGFloat(30.0)
however it gives me an error saying that titleFontSize setter is inaccessible.
This might be a bit earlier, but I've been testing AZDialogView with iPhoneX screen sizes, and the view controller is rendered oddly.
Is it possible to design the title, the message and the dialog size? The only options i see are the button styles.
For some reason, can't install the pod. I get the following error:
[!] Unable to find a specification for 'AZDialogView'
Is it compatible with iOS 10.0?
Hello,
I just removed the FixedNavigationController in my Projekt, but the Dialogs are too wide and big on iPads in Landscape. Portrait is okay on both devices.
thanks
Is there a way to make the dialog use an alpha value so that I can see my image behind it?
I tried a couple of ways with the dialog and dialog.container but didn't have any luck.
More specifically, these changes should be made:
imageViewHolder.backgroundColor = alertBackgroundColor ?? .white
Also
imageViewHolder.backgroundColor = alertBackgroundColor ?? UIColor.white
Dismissing Alert is also dismiss other alert which is shown after dismiss... is it because of super.dismiss when dismissing ??
Please some one let me know solution ...
Is there a way to have multiline action buttons (useful if action title is based on user input)?
hello
how can I change window size ? when iPad landscape looking very big window.
Thank you.
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.