- December 17, 2024
- Mins Read
Simple DropDown Alert View For Any iOS Projects.
let alert = JDropDownAlert()
alert.alertWith(“U can use just title”)
alert.didTapBlock = {
print(“Top View Did Tapped”)
}
let alert = JDropDownAlert()
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print(“Top View Did Tapped”)
}
let alert = JDropDownAlert(position: .top, direction: .toLeft)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print(“Top View Did Tapped”)
}
let alert = JDropDownAlert(position: .top, direction: .toRight)
alert.alertWith(titleString, message: messageString, topLabelColor: UIColor.white, messageLabelColor: UIColor.darkGray, backgroundColor: UIColor.brown)
// alert.alertWith(titleString, message: messageString, topLabelColor: UIColor.white, messageLabelColor: UIColor.darkGray)
// alert.alertWith(titleString, message: messageString, topLabelColor: UIColor.white)
// alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print(“Top View Did Tapped”)
}
let alert = JDropDownAlert(position: .bottom)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print(“Bottom Alert View Did Tapped”)
}
let alert = JDropDownAlert(position: .bottom, direction: .toLeft)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print(“Bottom Alert View Did Tapped”)
}
let alert = JDropDownAlert(position: .bottom, direction: .toRight)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print(“Bottom Alert View Did Tapped”)
}
enum AlertPosition {
case top
case bottom
}
enum AnimationDirection {
case toLeft
case toRight
case normal
}
JDropDownAlert is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod “JDropDownAlert”
Add the JDropDownAlert.swift in to your project.
A vertical stackview which takes subviews with different widths and adds them to it's rows with paddings, spacings etc.
AudioManager is a Swift package that provides a modular and easy-to-use interface for implementing audio feedback in your applications. It ...