Keita Watanabe
de59c814c6
fix build error for MainActor isolation
2024-08-12 14:40:35 +09:00
Keita Watanabe
dea5e8a4bd
fix existential any
2024-07-15 16:27:21 +09:00
novr
b7166be79f
fix: 'class' keyword to define a class-constrained protocol is deprecated
2022-12-21 10:38:42 +09:00
Elvis
0119309a25
Merge pull request #287 from kitwtnb/remove-dependency-on-specific-image-request-library
...
Remove dependencies on specific image request library
2022-12-04 22:35:24 +01:00
Elvis
2ac28e0497
Merge pull request #291 from dknchris/expose-background
...
Expose image background color via LightboxConfig
2022-10-09 09:36:14 +02:00
Dicken Christian
619cbba91e
Add tap delegate for tap/double tap detection
...
A reliable tap event helps users hide/unhide navigation bar or toolbars to give a full unobstructed view of the image.
2022-10-02 18:39:58 +05:30
Dicken Christian
2fbb4ba5af
Expose image background color via LightboxConfig
...
This gives users the ability to use a custom background color using LightboxConfig.imageBackgroundColor
2022-10-02 15:39:14 +05:30
AlexStich
daca12b64a
Add LightboxControllerDeleteDelegate to have delegate for image deleting action
2022-08-03 22:44:56 +04:00
Keita Watanabe
3ac333b6a8
remove dependency on SDWebImage
2022-06-23 10:55:36 +09:00
Steven Guo
256610707e
switch to SDWebImage from Imaginery and use the SDAnimatedGifView
2022-02-07 12:50:05 -05:00
Davide
fbd246db01
Move configureLayout(_) in viewDidLayoutSubviews()
2020-11-01 09:26:18 +01:00
Aleksandr Glushchenko
502f9a6f92
Update LightboxController.swift
2020-10-29 19:55:16 +02:00
Elvis
7830a7512a
Add comment
2020-07-09 19:45:55 -05:00
Elvis
2bb85661b1
Force usage of modalPresentationStyle
2020-07-09 19:44:03 -05:00
Elvis
8dcf50b722
Add backup symbol for play button
2020-06-22 08:16:07 -05:00
Elvis
21d6b335fc
Update sample project
2020-06-08 18:36:01 -05:00
Nick Donaldson
1bccfe2cc1
Change UIColor hex extension to internal visibility
...
Using public visibility means that developers are unable to
simultaneously use hypersolo/Hue along with Lightbox since
both modules contain a globally imported extension of the
same format - UIColor.init(hex: String)
2019-01-04 11:03:32 -07:00
Khoa Pham
e73f58ced5
Update to Swift 4
2018-09-27 10:47:47 +02:00
Kristaps Grinbergs
8fc34e8d12
Two issues need to fix for Swift 4.2
2018-09-26 10:18:38 +03:00
Kristaps Grinbergs
6af9321ea9
* Swift 4.2 and Xcode 10
...
* SwiftLint warnings and errors, added some short variable names in config
* Example project to Swift 4.2 and Xcode 10
* bump version
2018-09-23 13:25:03 +03:00
Igor Fedotov
5ac3f8ae18
fixed typo
2018-02-13 19:45:21 +01:00
Igor Fedotov
5d93293649
upd range syntax for consistency
2018-02-13 19:42:53 +01:00
Igor Fedotov
a4f113d066
updated lightbox controller to handle preload
2018-02-13 19:37:50 +01:00
Igor Fedotov
41436d8083
This unloads the image when the pageView is stubbed
2018-02-13 19:31:59 +01:00
Igor Fedotov
22785514bd
Add variable to config, to allow preload
2018-02-13 18:58:09 +01:00
Igor Fedotov
20ea9e3e1c
Added private init method on LightboxImage to support the stub
2018-02-13 18:56:07 +01:00
Igor Fedotov
64dee3b6bc
Added a subclass to stub the images, that do not need to be loaded
2018-02-13 18:55:31 +01:00
Igor Fedotov
911d0c5df8
Made PageView able to update with image
2018-02-13 18:52:33 +01:00
Igor Fedotov
cc85786658
Fixed unnecessar call, that was making images to be fetched twice
2018-02-13 17:03:14 +01:00
Igor Fedotov
5a73ca4c6b
Added support to init with closure
2018-02-12 22:59:12 +01:00
Khoa Pham
81e13530aa
Set size and origin
2018-01-02 11:45:41 +01:00
Rinat Enikeev
418da11c82
fix footer counter
...
reason: you should take into account spacing while calculating current page
2017-11-27 17:45:30 +05:00
Khoa Pham
08a4c284f4
Merge pull request #156 from andreyrd/fix/no-window-bounds
...
Use view.bounds instead of UIApplicationDelegate.window.bounds
2017-11-20 21:59:07 +01:00
Khoa Pham
225fac033a
Remove fileprivate in order to test
2017-11-20 14:49:26 +01:00
Khoa Pham
de0d273258
Add quotes
2017-11-20 14:26:01 +01:00
Khoa Pham
d1231f19ff
Fix swiftlint warnings
2017-11-20 14:25:33 +01:00
Khoa Pham
20f927f338
Need to greater than startIndex
2017-11-20 14:22:40 +01:00
Andrey Radchishin
8144d96129
Use view.bounds instead of UIApplicationDelegate.window.bounds
2017-11-17 10:11:20 -08:00
Khoa Pham
1803722b6a
Expose LightboxConfig.loadImage. Use Imaginary by default
2017-11-17 15:04:31 +01:00
Khoa Pham
28acb5a8d6
Layout HeaderView
2017-11-17 14:30:47 +01:00
Khoa Pham
5c6fa430e0
Remove HeaderView animation when dismissasl
2017-11-17 14:27:27 +01:00
Khoa Pham
5108f3651f
Remove centerTextStyle
2017-11-17 14:26:59 +01:00
Khoa Pham
05ec840ffd
Fix indentation
2017-11-17 14:20:20 +01:00
Khoa Pham
5189d880c4
Should not animate FooterView upon dismissal animation
2017-11-17 14:17:02 +01:00
Khoa Pham
308051a898
Remove unused isUserInteractionEnabled
2017-11-17 14:04:00 +01:00
Khoa Pham
3882befd7b
Layout FooterView in viewDidLayoutSubviews
2017-11-17 13:52:50 +01:00
Khoa Pham
cf88115eb6
Use view bounds instead of UIScreen
2017-11-17 13:31:56 +01:00
Khoa Pham
663bafce52
Use bottomPadding for pageLabel
2017-11-17 13:19:45 +01:00
Khoa Pham
6911104a98
Use topPadding for HeaderView buttons
2017-11-17 12:51:26 +01:00
Andrey Radchishin
3322107688
Use String directly instead of String.characters
2017-11-13 09:02:46 -08:00