vitormesquita / malert Goto Github PK
View Code? Open in Web Editor NEWCustom alert View to iOS applications
License: MIT License
Custom alert View to iOS applications
License: MIT License
I am trying to display a tableview in an Malert prompt and it doesn't work. Is UITableView supported?
Add a gestureRecognizer out of alert to close the UIView
I couldn't see any example of this, since we can customize views and put in malert, can we do this ?
MalertAction how to prevent it auto dismiss , we dont want it auto dismiss when click the action. We want to validation first and dismiss manually
how to dismiss malert?
Would you implement sender to be passed to the button actionBlock?
How to know Malert has dismised either on tapToDismiss or added button action.
I need to perform some actions when Malert dismiss.
When I click on UIView the keyboard is not closing
Please, give us some gifs showing what you've done.
Hello,
There's an issue with custom view height when application "Supported interface orientations" is set to portrait but the device is in landscape orientation.
Looks like the issue is following code block of Malert constrains extension (Malert+Constraints.swift):
if UIDevice.current.orientation.isLandscape {
let topContraint = malertView.topAnchor.constraint(equalTo: visibleView.topAnchor, constant: 16)
topContraint.priority = UILayoutPriority(900)
malertConstraints.append(topContraint)
let bottomConstraint = malertView.bottomAnchor.constraint(equalTo: visibleView.bottomAnchor, constant: -16)
bottomConstraint.priority = UILayoutPriority(900)
malertConstraints.append(bottomConstraint)
}
Above if condition doesn't sufficiently checks if landscape orientation is enabled for the application.
I suggest to change above condition statement to:
if UIDevice.current.orientation.isLandscape && supportedInterfaceOrientations.contains(.landscape) {
...
}
This way the issue can be avoided by following extension:
extension Malert {
public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return .portrait
}
}
Kindly note that this is just something I came up with on the fly to patch this issue so please feel free to implement a better solution if necessary.
Thank you!
CocoaPods
and Carthage
are awesome tools and make our life really easier, but there are some devs who still don't know how to use them.
It would be cool to add the Manual installation guide in your README.md
. You can take a look at my iOS Readme Template to see how you can do it.
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.