JDropDownAlert
  • November 2, 2023

Simple DropDown Alert View For Any iOS Projects.

Usage


Top

 

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

Top with Directions

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

Bottom

let alert = JDropDownAlert(position: .bottom)
alert.alertWith(titleString, message: messageString)

alert.didTapBlock = {
print(“Bottom Alert View Did Tapped”)
}

Bottom With Directions

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

Different Positions and Animation Directions

enum AlertPosition {
case top
case bottom
}

enum AnimationDirection {
case toLeft
case toRight
case normal
}

Requirements


  • iOS 8.0 +
  • swift 3.0
  • Xcode 8.0

Installation


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.

Demo Gifs


GitHub


View Github

#alert #bottom #directions #dropdown #dropdownalert #ios #swift #top
YOU MIGHT ALSO LIKE...
exyte

     

camerakit-ios

CameraKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service ...

HybridCamera

[video width="192" height="416" mp4="https://swiftgit.com/wp-content/uploads/2024/12/68747470733a2f2f7261776769742e636f6d2f7374796c656b69742f696d672f6d61737465722f7669645f6564697465645f325f326d622e676966.mp4"][/video]

TakeASelfie

An iOS framework that uses the front camera, detects your face and takes a selfie. This api opens the front ...

iOS-Depth-Sampler

Code examples of Depth APIs in iOS