Commit Graph

13022 Commits

Author SHA1 Message Date
Grishka
dc913a843a Added signal bars & fixed OSX project 2017-08-21 19:02:37 +03:00
Ilya Laktyushin
c8214d24a9 no message 2017-08-21 15:56:37 +03:00
Phil Larson
359b5f0b5b ASImageNode+AnimatedImage playbackReadyCallback retain cycle (#520)
* ASImageNode+AnimatedImage playbackReadyCallback causes strong retain cycle

* Add CHANGELOG entry for #520
2017-08-21 12:49:11 +01:00
appleguy
5cf05f3c17 [Accessibility] Add .isAccessibilityContainer property, allowing automatic aggregation of children's a11y labels. (#468)
After consulting Apple documentation and working with some a11y experts,
we've found that aggregating objects that have a11y labels but are not
themselves interactable is significantly preferred for these users.

It makes it much quicker to navigate scrolling content if VoiceOver only
stops to select entire cells, and then allows drilling down into the cell
to select individual components. This implementation achieves that behavior.

We should consider enabling isAccessibilityContainer by default on ASCellNode.
This would be an improvement for 95% of a11y use cases. Aggregation can be
enabled or disabled on any node.
2017-08-20 13:17:05 -07:00
Ilya Laktyushin
ae22b45db3 Merge branch 'master' of bitbucket.org:iakovlevpeterp/legacycomponents 2017-08-20 15:27:11 +03:00
Ilya Laktyushin
c0a1a7f406 no message 2017-08-20 15:26:25 +03:00
appleguy
65fabf49d7 [ASImageNode] Enable .clipsToBounds by default (fix .cornerRadius, GIFs overflow). (#466)
* [ASImageNode] Enable .clipsToBounds by default (fix .cornerRadius, GIFs overflow).

We've seen a number of bugs reported over time that .cornerRadius didn't work on
ASNetworkImageNode. This wasn't much of a concern because cornerRadius is very
inefficient anyway, and there are better ways to round corners, but it should
certainly work.

It turns out that clipsToBounds has been off for images, and this ultimately
was behind another issue recently seen wehre decoded GIFs would spill outside
the bounds area to overlap nearby content.

Although there is some risk of behavior change from this, I think the risk
is fairly small, and in most cases it will probably fix behaviors in a way
that doesn't cause problems for the app.

We should consider if this property should be on for all ASDisplayNodes,
but for now it would be a great step to be confident it's on for all
ASImageNodes.

* Update changelog for ImageNode Clipping.
2017-08-20 03:17:46 -07:00
Ofer Morag
1204737330 Update corner-rounding.md (#482)
* Update corner-rounding.md

If I understand right, both Precomposited corners techniques uses `[path clip]`, right? If so, I think it will be better to move it to the general description of the section, as currently it seems as only the second option uses `[path clip]`.

* Update corner-rounding.md

Improved positioning.

* Update corner-rounding.md

Syntax consistency: Changed `off-screen` to `offscreen`, as both syntaxes currently appears in the text.
2017-08-20 01:46:02 -07:00
Peter
c670712a9f no message 2017-08-19 10:58:25 +03:00
Peter
3a27d899d1 Merge commit '4ab66414245294436451c9749096de47f5df26b6' 2017-08-18 19:48:26 +03:00
Peter
9524719175 no message 2017-08-18 19:48:17 +03:00
overtake
5114f12d9a no message 2017-08-18 18:06:44 +03:00
Murat Baysangurov
f813d0711d Added ability to enable metrics manger after it was disabled 2017-08-18 16:31:12 +03:00
Murat Baysangurov
54aa1665c5 BITAttributedLabel is now based on TTTAttributedLabel version 2.0 2017-08-18 13:48:46 +03:00
Brandon Withrow
8f86819fff Merge pull request #377 from welshm/reverseSupport
Add better support for negative animation speeds
2017-08-17 15:04:30 -07:00
Brandon Withrow
fbf6ca5686 Merge branch 'master' into reverseSupport 2017-08-17 15:04:12 -07:00
Michael Welsh
805a671448 Update LOTAnimationView header to have better comments 2017-08-17 17:41:50 -04:00
Michael Welsh
b0b7b7c8cb Rename _isPlayingForward to _isSpeedNegative to be more clear what it's checking 2017-08-17 17:37:15 -04:00
Michael Welsh
ab75236c5f Revert some of the animationProgress changes to revert to reflect absolutes
- Update header documentation to make it clear how animatinoSpeed and animationProgress interact
- Leave fixes in there that stop reversed animations "snapping" back
2017-08-17 17:05:20 -04:00
Brandon Withrow
e15565420c Merge pull request #376 from louisdh/typos-fix
Fix typos in LOTAnimationView.h
2017-08-17 12:53:04 -07:00
Murat Baysangurov
39b4a49eb7 Allow metricsManager in extensions 2017-08-17 20:40:11 +03:00
Huy Nguyen
cae9517ebe BuildKite to ignore all markdown files (#517) 2017-08-17 10:02:11 -07:00
Michael Welsh
0896678088 Merge branch 'reverseSupport' of https://github.com/welshm/lottie-ios into reverseSupport 2017-08-17 11:16:59 -04:00
Michael Welsh
3e0790a413 Add better support for negative animation speeds
- The progress can be calculated basd on negative speed
  + The end frame would be a progress of 0 and the start frame a progress of 1
  + Recalculate progress when the speed changes, otherwise a "jump" will be seen when restarting animation

- The frame for the progress can be calculated using the newly inverted progress
  + Determine the absolute progress based on current progress and determine which frame to use based on animation speed

- This fixes issues of animations playing with negative speeds "bouncing" back to their final position
  which was caused by the final frame being calculated based on a completed progress of 1 which then did not take into
  account the negative animation speed.
2017-08-17 11:14:48 -04:00
Huy Nguyen
5e13ebac8b ASCollectionLayout improvements (#513)
- During the first layout calculation, measure more than just elements in the visible viewport.
- Remove unnecessary params in `-[ASCollectionLayoutState getAndRemoveUnmeasuredLayoutAttributesPageTableInRect`.]
2017-08-17 15:30:34 +01:00
Michael Welsh
a53bbe99ca Add better support for negative animation speeds
- The progress can be calculated basd on negative speed
  + The end frame would be a progress of 0 and the start frame a progress of 1
  + Recalculate progress when the speed changes, otherwise a "jump" will be seen when restarting animation

- The frame for the progress can be calculated using the newly inverted progress
  + Determine the absolute progress based on current progress and determine which frame to use based on animation speed

- This fixes issues of animations playing with negative speeds "bouncing" back to their final position
  which was caused by the final frame being calculated based on a completed progress of 1 which then did not take into
  account the negative animation speed.
2017-08-17 10:16:47 -04:00
Peter
eb2a8d0a37 Merge commit '5b3825cde26cae4ea2d7ba3603ecd3aa2563cdb0' into HEAD 2017-08-17 17:16:22 +03:00
Peter
e722cef4f7 no message 2017-08-17 17:16:15 +03:00
Huy Nguyen
46e949460a ASCollectionLayout to return a zero content size if its state is unavailable (#509) 2017-08-17 14:43:54 +01:00
Ilya Laktyushin
9a5284581d no message 2017-08-17 15:56:10 +03:00
Louis D'hauwe
2ef6f1d19f Update LOTAnimationView.h 2017-08-17 11:09:09 +02:00
Ilya Laktyushin
c578600bc1 Merge branch 'master' of bitbucket.org:iakovlevpeterp/legacycomponents 2017-08-17 00:10:14 +03:00
Ilya Laktyushin
20911e9173 no message 2017-08-17 00:09:54 +03:00
Brandon Withrow
b795c24ad8 Merge pull request #374 from Calvix-Xu/master
fix the Memory leak in LOTBezierPath.m file
2017-08-16 10:09:10 -07:00
XuHongjian
bc3d4edc9b fix the Memory leak in LOTBezierPath.m file 2017-08-16 14:10:01 +08:00
Brandon Withrow
f71cf24bfd Update issue_template.md 2017-08-15 14:36:57 -07:00
Brandon Withrow
ec65175769 Update issue_template.md 2017-08-15 14:33:04 -07:00
Brandon Withrow
eaad28f4ce Create issue_template.md 2017-08-15 14:30:38 -07:00
Brandon Withrow
32530474da Update README.md 2017-08-15 14:22:16 -07:00
Adlai Holler
b2d1ed95ef Update changelog and podspec for 2.4 (#512) 2017-08-15 13:37:06 -07:00
brandon_withrow
555b7a4a58 Bump Version 2017-08-15 12:27:52 -07:00
Peter
bdd76ec5a2 no message 2017-08-15 22:25:51 +03:00
Brandon Withrow
c9cf9c047d Merge pull request #371 from airbnb/btw/compleitoncrashfix
Fix for completion block crash
2017-08-15 12:25:36 -07:00
brandon_withrow
9b6d3c9569 Fix for completion block crash 2017-08-15 12:23:44 -07:00
Adlai Holler
42b5633bcc Avoid re-entrant call to self.view when applying initial pending state (#510)
* Avoid re-entrant call to .view

* Increment the changelog
2017-08-15 08:04:12 -07:00
overtake
3d9886e517 no message 2017-08-15 16:08:57 +03:00
overtake
4ab6641424 Merge branch 'master' of https://github.com/peter-iakovlev/Postbox 2017-08-15 16:08:36 +03:00
overtake
abd549ada9 no message 2017-08-15 16:08:30 +03:00
Peter
ebeb2aa80e no message 2017-08-15 15:41:56 +03:00
overtake
eab2380e1b Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCore
Conflicts:
	TelegramCore/Holes.swift
	TelegramCore/SearchMessages.swift
2017-08-15 15:04:46 +03:00