Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. CDAlertView

CDAlertView

MITSwift0.11.0

A highly customizable iOS alert/notification popup library written in Swift, similar to UIAlertController.

Visit WebsiteGitHubGitHub
1.1k stars85 forks0 contributors

What is CDAlertView?

CDAlertView is a Swift library for creating highly customizable alert and notification popups on iOS. It solves the limitation of native UIAlertController by offering extensive styling options, multiple alert types, and support for custom views and animations.

Target Audience

iOS developers who need more design flexibility than UIAlertController provides, especially those building apps with custom UI/UX requirements.

Value Proposition

Developers choose CDAlertView for its deep customization capabilities, familiar API similar to UIAlertController, and support for features like text fields, custom animations, and multiple button layouts.

Overview

Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift

Use Cases

Best For

  • Displaying styled success/error notifications in iOS apps
  • Creating custom alert dialogs with unique branding
  • Adding interactive text fields within alerts
  • Implementing auto-dismissing notification popups
  • Showing alerts with custom icons and animations
  • Building alerts with vertical or horizontal button arrangements

Not Ideal For

  • Applications requiring more than three action buttons in a horizontal layout
  • Projects where automatic layout management for embedded custom views is essential
  • Teams strictly adhering to Apple's Human Interface Guidelines without third-party modifications
  • Apps targeting iOS versions below 9.0

Pros & Cons

Pros

Extensive Styling Options

Allows full control over colors, fonts, rounded corners, and shadows, making it easy to match alerts precisely to app branding, as shown by properties like `titleTextColor` and `hasRoundedCorners`.

Predefined Alert Types

Includes error, success, warning, and other types with appropriate icons, saving design time and ensuring consistency across common use cases without custom image creation.

Flexible Button Arrangements

Supports both vertical and horizontal button layouts with customizable fonts and colors, adapting to different dialog complexities, though horizontal is limited to three buttons.

Text Field Integration

Enables input fields within alerts with configurable properties like secure entry and placeholders, extending functionality beyond native UIAlertController's basic support.

Custom Animation Support

Provides hooks for custom hide animations and auto-dismiss timers via `hideAnimations` and `autoHideTime`, allowing for enhanced interactive feedback and user experience.

Cons

Horizontal Button Limit

Restricts to a maximum of three buttons in horizontal layout, as noted in the README, which can be insufficient for complex dialogs requiring multiple actions.

Manual Custom View Height

Requires developers to manually manage the height of embedded custom views, leading to potential layout issues and added complexity, as warned in the custom view section.

Swift Version Fragmentation

Different library versions are needed for various Swift versions (e.g., 0.9.1 for Swift 4.2), complicating dependency management and upgrades, as indicated in the installation notes.

Frequently Asked Questions

Quick Stats

Stars1,139
Forks85
Contributors0
Open Issues4
Last commit5 years ago
CreatedSince 2016

Tags

#ios#ui-alerts#popup#custom-ui#alerts#notification#alertview#swift5#alert#cocoapods#swift#carthage

Built With

i
iOS
S
Swift

Links & Resources

Website

Included in

iOS51.7kSwift26.0k
Auto-fetched 1 day ago

Related Projects

SwiftMessagesSwiftMessages

A very flexible message bar for UIKit and SwiftUI.

Stars7,558
Forks765
Last commit3 months ago
SwiftEntryKitSwiftEntryKit

SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps.

Stars6,758
Forks621
Last commit1 year ago
Alerts & PickersAlerts & Pickers

Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...

Stars5,763
Forks708
Last commit2 years ago
BulletinBoardBulletinBoard

General-purpose contextual cards for iOS

Stars5,350
Forks302
Last commit4 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub