RepositorySwift
DI

dillidon/alerts-and-pickers

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

5.8ksao
694fork
71issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: pickerview

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: uitextfield

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: uialertcontroller

#1 Repository của tuần

🛠️ Alerts & Pickers — Bộ công cụ chọn nâng cao dựa trên UIAlertController

Mở rộng native UIAlertController với TextField, TextView, DatePicker, PickerView, TableView, CollectionView và MapView — tất cả trong một framework nhỏ gọn bằng Swift 4.

Alerts & Pickers là một thư viện Swift cho phép bạn tạo ra các cửa sổ cảnh báo và bộ chọn phong phú hơn so với native UIAlertController. Dựa trên các thành phần như UITextField, UIDatePicker, UIPickerView, UITableView, UICollectionView và MKMapView, thư viện này hỗ trợ tạo giao diện đăng nhập, chọn thời gian, chọn ảnh, chọn quốc gia, chọn màu sắc... một cách nhanh chóng và tùy biến cao.

✨ Điểm nổi bật

  • Tạo UIAlertController tùy biến: Hỗ trợ cả style .alert và .actionSheet, dễ dàng thiết lập tiêu đề, thông điệp với font và màu sắc tùy chỉnh.
  • Thêm nút với hình ảnh: Có thể thêm hình ảnh và màu sắc cho từng nút bấm trong UIAlertController.
  • Đặt ContentViewController dễ dàng: Hỗ trợ chèn bất kỳ UIViewController nào vào UIAlertController với chiều cao tùy chỉnh.
  • Cấu hình TextField phong phú: Hỗ trợ đặt placeholder, icon bên trái, viền, màu nền, bảo mật, phím ảo...
  • Hỗ trợ nhiều loại Picker: Bao gồm UIDatePicker, UIPickerView, UITableView, UICollectionView, MKMapView và UITextView.
  • Trình bày đơn giản: Chỉ cần gọi alert.show() để hiển thị, hỗ trợ cả tùy chọn animated và rung.
  • Storyboard mẫu: Đi kèm ví dụ sử dụng Storyboard để dễ dàng tích hợp.
  • Pure Swift 4: Không phụ thuộc vào thư viện bên ngoài, nhẹ và hiệu suất cao.

💡 Vì sao đáng chú ý

Alerts & Pickers khác biệt từ cách sử dụng thông thường của UIAlertController bằng cách cho phép chèn trực tiếp các thành phần UI phức tạp như DatePicker, PickerView hay MapView vào trong cửa sổ cảnh báo. Điều này giúp giảm đáng kể thời gian phát triển các màn hình chọn dữ liệu mà không cần xây dựng giao diện phức tạp từ đầu. Thích hợp cho các ứng dụng iOS cần giao diện người dùng đa dạng và trải nghiệm người dùng tốt hơn.


#UIAlertController #Swift #iOS #PickerView #UIDatePicker #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositorySwift
MattLLLLL/MDatePickerView

Quick and easy date picker.

466
Jan 28, 2022
RepositorySwift
filipstefansson/AutocompleteField

Subclass of UITextField that shows inline suggestions while typing.

660
Oct 13, 2020
RepositorySwift
agilie/AGCircularPicker

AGCircularPicker is helpful component for creating a controller aimed to manage any calculated parameter

624
May 21, 2018
RepositorySwift
oleghnidets/TweeTextField

Lightweight set of text fields with nice animation and functionality 🚀

487
May 26, 2022
RepositorySwift
serralvo/TextFieldCounter

UITextField character counter with lovable UX 💖. No math skills required 🙃.

436
Dec 27, 2019
RepositorySwift
dinhquan/SwiftAlertView

A powerful AlertView library written in Swift

297
Oct 30, 2023
RepositorySwift
edgar-zigis/CocoaTextField

Apple TextField created according to the Material.IO guidelines of 2019. Featured at Medium.

271
Feb 2, 2025
RepositorySwift
raginmari/RAGTextField

Subclass of UITextField that adds an animated placeholder and an optional hint label below the text.

258
Oct 8, 2023
RepositorySwift
marinofelipe/CurrencyText

Currency text field formatter available for UIKit and SwiftUI 💶✏️

234
Feb 12, 2026