hyperoslo/Lightbox là dự án Swift với 1.7k sao trong nhóm Mobile. :milky_way: A convenient and easy to use image viewer for your iOS app
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Lightbox is a convenient and easy to use image viewer for your iOS app,
packed with all the features you expect:
Paginated image slideshow.
Video support.
Double-tap to zoom.
Image caption.
Dynamic background based on Hue
Remote image loading and caching based on Imaginary
Interactive transition animations.
Powerful configuration.
Live Demo
Table of Contents
Usage
Controller
Delegates
Image loading
Video
Configuration
Installation
Author
Contributing
License
Usage
Controller
To start your slideshow just instantiate LightboxController, set needed
delegates and present it:
// Create an array of images.
let images = [
LightboxImage(imageURL: URL(string: "https://cdn.arstechnica.net/2011/10/05/iphone4s_sample_apple-4e8c706-intro.jpg")!),
LightboxImage(
image: UIImage(named: "photo1")!,
text: "This is an example of a remote image loaded from URL"
),
LightboxImage(
image: UIImage(named: "photo2")!,
text: "",
videoURL: URL(string: "https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4")
),
LightboxImage(
image: UIImage(named: "photo3")!,
text: "This is an example of a local image."
)
]
// Create an instance of LightboxController.
let controller = LightboxController(images: images)
// Set delegates.
controller.pageDelegate = self
controller.dismissalDelegate = self
// Use dynamic background.
controller.dynamicBackground = true
// Present your controller.
present(controller, animated: true, completion: nil)
Delegates
Use LightboxControllerPageDelegate if you want to be notified about page
navigation changes.
Use LightboxControllerDismissalDelegate to be notified when controller is
about to be dismissed. Please note that LightboxController dismisses itself
if it was presented initially.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/hyperoslo/Lightbox là nguồn chính thức.
hyperoslo/Lightbox có những chủ đề gì?
GitHub topics của hyperoslo/Lightbox: "image", "ios", "lightbox", "presentation", "swift". TopGit xếp repo vào nhóm Mobile.
hyperoslo/Lightbox có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho hyperoslo/Lightbox. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
hyperoslo/Lightbox có trang demo không?
Dự án có trang chủ ở https://www.hyper.no. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
hyperoslo/Lightbox còn đang phát triển không?
Commit gần nhất trên hyperoslo/Lightbox là 2.0 năm trước (theo timestamp GitHub). Repo có 333 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Lightbox có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về Lightbox.