Giter Site home page Giter Site logo

azdialogviewcontroller's People

Contributors

adnan-sky avatar carrarodev avatar e-marchand avatar minitour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azdialogviewcontroller's Issues

Flattened button sizes for iPhone X screen size.

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?

Multiline action buttons

Is there a way to have multiline action buttons (useful if action title is based on user input)?

Support iPad Landscape

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

Feature request: app-wide customization

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

not changed size

hello

how can I change window size ? when iPad landscape looking very big window.

Thank you.

Issue when Dismissing

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 ...

No custom view support

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

Custom design options

Is it possible to design the title, the message and the dialog size? The only options i see are the button styles.

Using dynamic data with AZDialogViewController

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
  }
}

Change font size?

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.

Delegate ?

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

Image view holder should have the alert's background color

More specifically, these changes should be made:

imageViewHolder.backgroundColor = .white

should be changed to

imageViewHolder.backgroundColor = alertBackgroundColor ?? .white

Also

imageViewHolder.backgroundColor = UIColor.white

should be changed to

imageViewHolder.backgroundColor = alertBackgroundColor ?? UIColor.white

Is there a way to know when dismiss() on the dialog is called?

When I show my dialog to the user, he/she has two options:

  1. Tap on "Yes"
  2. Tap on "Cancel" or just tap on the screen or move the dialog upwards or downwards.

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.

set leftToolItem.heightAnchor.constraint in accordance to rightToolItem.heightAnchor.constraint

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: spacing
2).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: spacing
2).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

UITextView for container value

How does the .customViewSizeRatio variable resize the custom view?
I'm adding a UITextView inside AZDialogViewController's container view.

Dialog Transparency

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.

Unable to customize UIButton.

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
        }

Dialog inside a popover

dialogview
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?

iPhone XS Max support?

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

iPhoneX Support?

This might be a bit earlier, but I've been testing AZDialogView with iPhoneX screen sizes, and the view controller is rendered oddly.

Override height for calculations?

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?

354D087F-358A-4919-86D8-932CF785734A
2B13C3BA-76BB-4291-867B-A722F2FE3A4D

How to show dialog from top?

The dialog always popup from bottom, I cannot find a way to make it popup from the top, how to do that?

Thanks.

custom width

How can i change the dialog width with custom views ?

@ObjC

Can you add Objective C support please

Dialog appears a-lot smaller on IPhone X

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.

qspr27lnspqzuyyo2zfkyw_thumb_1051

Change font of title and message labels

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?

Customizing title, message labesl color and background

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?

Bluring the chrome

It would be nice to have functionality where we can blur the background chrome of alert.

Re-Call Bug

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 ----

http://notes.io/m4ik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.