21 Commits
Author SHA1 Message Date
Khoa Pham 5c6fa430e0 Remove HeaderView animation when dismissasl 2017-11-17 14:27:27 +01:00
Khoa Pham 5189d880c4 Should not animate FooterView upon dismissal animation 2017-11-17 14:17:02 +01:00
Mujtaba Hassanpur 68a429be43 Fixes Swift 4 errors and warnings 2017-09-20 21:14:45 -07:00
Romain Bertozzi 8a33f9529b source: fix SwiftLint parameter alignement violation
This commit aligns parameters in a call to fix a SwiftLint warning.
2017-09-02 12:19:36 -04:00
Christoffer Winterkvist 69813ee7fe Fix dynamic background loading
Because `loadDynamicBackground` is called in `remoteImageDidLoad`, it
can end up flickering between all images as they are loaded from the
network. To fix this issue there is a now a small safeguard in
`remoteImageDidLoad` to evaluate if the image view is on screen,
otherwise just return early and don't switch out the background.

The `PageViewDelegate` has been slightly modified to return the image
view when loading remote images, that image view is used in the safe
guard mentioned earlier.

The `addìmageTo` now uses a weak reference to reduce the chance of
holding reference.

`addGradientLayer` now uses `@discardableResult` so that you don't have
to assign it to a variable when using the method.

The `goTo` method in `LightboxController` will no disregard the
animation if the controller is not on screen. This is done by checking
if the controller's view as a window or not.
2017-04-25 07:28:13 +02:00
Roman Blum eb44c67f69 Fix half-black screen after dismissal 2017-03-02 12:06:42 +01:00
Khoa Pham 98e3f62ebe Remove Sugar 2016-10-17 10:52:21 +02:00
Ramon Gilabert d1b82ee0d6 Adds the Carthage migration 2016-09-28 16:15:36 +02:00
Christoffer Winterkvist c6795ad84d Fix lint warnings 2016-06-06 12:42:51 +02:00
Christoffer Winterkvist ddc67ff70b Make LightboxController weak 2016-06-06 12:42:45 +02:00
Khoa Pham b8eacf9682 Use #selector and new range constructor 2016-03-29 09:25:16 +02:00
Vadym Markov 3d783a7cd1 Remove gradient view functions from public API 2016-02-01 16:01:02 +01:00
Vadym Markov fd98192516 Non publis transition 2016-02-01 15:58:20 +01:00
Christoffer Winterkvist e9f1178a41 Call dismissalDelegate in finishInteractiveTransition 2016-01-31 15:45:35 +01:00
Vadym Markov e7c511644f Use forEach 2016-01-30 08:38:25 +01:00
Vadym Markov b0f99a8529 Use Sugar 2016-01-30 08:38:07 +01:00
Vadym Markov f806688547 Update info label logic 2016-01-29 19:59:07 +01:00
Vadym Markov 6065273c22 Refactor gradient layers 2016-01-29 12:02:21 +01:00
Vadym Markov 46018422a4 Refactor layout code 2016-01-29 10:46:12 +01:00
Vadym Markov 8f750a4501 Fix transition 2016-01-29 09:43:15 +01:00
Vadym Markov 996b519a27 Layout configurable 2016-01-29 09:42:04 +01:00