Commit Graph

13022 Commits

Author SHA1 Message Date
overtake
9dc3fb98a5 Merge branch 'master' of https://github.com/peter-iakovlev/Postbox 2017-04-01 16:23:42 +03:00
overtake
4c6f23eb32 no message 2017-04-01 16:23:32 +03:00
Peter
3fb0dc5421 no message 2017-04-01 16:19:54 +03:00
Benjamin Scholtysik (Reimold)
f234ec12b7 Merge pull request #404 from dtweston/fix_additional_nav_controllers
Fix additional UINavigationControllers
2017-03-31 16:36:00 -07:00
Huy Nguyen
6abccf5841 ASDataController can bail early if a change set is empty (#3225) 2017-03-31 10:48:11 -07:00
Huy Nguyen
3d19923731 [Trait collection] Correctly handle changes that occur mid-updates (#3224)
* Add unit test to test trait collection changes occur during updates are handles correctly

* Remove handling code in ASDataController:updateWithChangeSet. Previous test should fail

* Correctly handle trait collection changes that occur mid-updates
- Currently, when there is a new trait collection, we correctly propagate it to all visible elements. However, since the propagating block is executed on main thread immediately without waiting for the background editing queue of ASDataController, not all elements are updated.
- Then to fix that, we updated ASDataController to handle these changes inside updateWithChangeSet. This works, but it doesn’t address the underlying issue.
- We now delegate the propagating task to ASDataController which schedule a block to its main serial queue after waiting for its background editing queue.
2017-03-31 10:47:59 -07:00
overtake
fb662e38a0 Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCore 2017-03-31 17:18:35 +03:00
overtake
faddcbb8ec no message 2017-03-31 17:18:30 +03:00
Grishka
51047ddada 0.3.2 2017-03-31 08:33:30 +03:00
chaseacton
64e1f05db4 Fixed typo in readme 2017-03-30 15:59:12 -05:00
Peter
6238c5d9d6 no message 2017-03-30 22:25:57 +03:00
Peter
5840a60096 no message 2017-03-30 22:13:31 +03:00
overtake
4e95d00c46 Merge branch 'master' of https://github.com/peter-iakovlev/Postbox 2017-03-30 18:16:55 +03:00
overtake
6aba279ef7 no message 2017-03-30 18:16:49 +03:00
Peter
13bc5bbebc no message 2017-03-30 18:00:34 +03:00
Peter
c20a880863 Merge commit 'ee1cb8fdf68eedb7197fd3fb18b42b66925e0cc0'
# Conflicts:
#	TelegramCore/StandaloneSendMessage.swift
2017-03-30 18:00:14 +03:00
Peter
7cf44fbcbd no message 2017-03-30 17:54:38 +03:00
Grishka
eb813e1d13 updated to 0.3.1 2017-03-30 17:06:59 +03:00
overtake
ee1cb8fdf6 no message 2017-03-29 15:07:37 +03:00
Adlai Holler
fcbbea51a6 Fix the Initialization Hierarchy (#3207)
* Fix the initializers setup

* Update Swift example

* Remove incorrect comment

* Add one to ASTableNode
2017-03-28 11:48:20 -07:00
Peter
71ff550bcc no message 2017-03-28 21:45:26 +03:00
Peter
4a39c222ca Merge commit 'e187267899b64ab99cb4fa5723d46ce5ac0e6d38' 2017-03-28 21:44:45 +03:00
Peter
4847a6ca82 no message 2017-03-28 21:44:41 +03:00
Adlai Holler
27c94069ae Add a category to _ASCollectionViewCell that makes it IGListBindable (#3226) 2017-03-28 11:27:38 -07:00
Michael Schneider
1f042e960d [ASNetworkImageNode] Improve locking (#3187)
* Locking improvements for ASNetworkImageNode

* Fix typo

* Address comments

* Address comments

* Change comment to kick build
2017-03-28 10:42:59 +01:00
Hai Nguyen
481aeecd9b Fix public header for macOS 2017-03-27 19:30:09 -07:00
Brandon Withrow
b29efe9a18 Merge pull request #183 from KrauseFx/patch-1
Fix broken README image previews
2017-03-27 11:09:46 -07:00
Brandon Withrow
024c1e64d3 Merge pull request #182 from pbardea/readme-formatting
Fix Markdown formatting in README
2017-03-27 11:09:28 -07:00
Brandon Withrow
20de8960f2 Merge pull request #181 from singro/master
Fix @import compatibility with .mm files
2017-03-27 11:09:07 -07:00
Brandon Withrow
566f0d81a8 Merge pull request #191 from airbnb/lmr--add-missing-source-to-static-lib
Add LOTLayerGroup.m to static lib target
2017-03-27 10:58:57 -07:00
overtake
e187267899 changes 2017-03-26 23:07:07 +03:00
Leland Richardson
d171c4705a Add LOTLayerGroup.m to static lib target 2017-03-25 18:40:31 -07:00
Benjamin Scholtysik (Reimold)
3057a2bec6 Merge pull request #403 from bitstadium/fix/remove-assetlibrary-for-default-subspec
Fix/remove assetlibrary for default subspec
2017-03-24 13:32:34 -07:00
Huy Nguyen
0f50cd02c9 Fix locking situation of layout transition (#3217)
- It's not safe to hold the lock of a supernode and:
  - Edit states of its subnodes
  - Call subclass hooks
  - Run completion block
  - Run animation, which can trigger layout passes on subnodes, especially if one of them is a collection view.
2017-03-24 10:35:43 -07:00
Huy Nguyen
ead2086f96 Fix deadlock while laying out subnodes (#3218) 2017-03-24 10:35:34 -07:00
Huy Nguyen
fc588c5e39 Avoid adding nil element which represents an unsupported decoration view (#3215) 2017-03-23 15:53:13 -07:00
Adlai Holler
d3d0f7be09 Add Support for the Run Loop Queue to be Weak (#3214)
* Add support for the run loop queue to be weak

* Go back to using a deque for itemsToProcess

* Update comment
2017-03-23 15:43:31 -07:00
Adlai Holler
740fc3f4c1 Make the run loop source context a stack object (#3213) 2017-03-23 15:42:15 -07:00
Peter
d057bc1f6a no message 2017-03-23 21:27:34 +03:00
Peter
c55a138e0b no message 2017-03-23 21:26:36 +03:00
Peter
04d78772be no message 2017-03-23 21:26:23 +03:00
Peter
a4de6e5fb6 no message 2017-03-23 21:26:08 +03:00
Huy Nguyen
36de258ff9 Avoid multiple initial data loads being issued by UICollectionView/UITableView (#3208)
* Avoid multiple initial data loads being issued by UICollectionView/UITableView
- Currently, there is a gap between the moment UICollectionView/UITableView triggers its first data load and when ASDataController finishes processing it. During this gap, the view keeps issuing "initial" loads by calling reloadData and causes its data controller to reload multiple times.
- Fix by immediately forward the first reloadData call to UICollectionView/UITableView before letting its data controller to handle it for real. During the gap, the view thinks that it loaded initial data but is empty, and thus stops triggering initial loads. Once the data controller finished loading, it will call another reloadData on the view which causes the view to swap to a correct state.

* Fix tests

* Use the existing flag of ASDataController

* Explain unit test
2017-03-23 11:14:05 +00:00
Adlai Holler
9129fa73d0 Simplify composedTruncationText Logic (#3211)
* Clean up the logic around composed truncation text

* Update comment
2017-03-22 13:03:09 -07:00
ricky
43f39bc2e3 [ASTextNode] Reset _composedTruncationText when attributedText is updated (#3210)
* [ASTextNode] Reset _composedTruncationText when attributedText is updated

Current issue:
1) Set `attributedText` in `ASTextNode` with whiteColor
2) `_composedTruncationText` gets updated to take on this new color attribute
3) Set the `attributedText` with greenColor
4) The `_composedTruncationText` gets updated with the new attributes, but does NOT overwrite any existing attributes — i.e., does not overwrite the white color with green. Comment from `_locked_prepareTruncationStringForDrawing:`:
`
// Add any of the original string's attributes to the truncation string,
// but don't overwrite any of the truncation string's attributes
`

* michael’s suggestion
2017-03-22 10:55:25 -07:00
Tapan Prakash
c69b87de7e Fixed README.md typo error 2017-03-22 09:25:02 +05:30
Felix Krause
1452b86e46 Fix broken README image previews
Change to HTML based image, however feel free to fix it by removing the white space in the file name
2017-03-21 15:22:57 -07:00
Adlai Holler
c08ecd7c93 Fix retain cycle in ASCellNode when used with non-ASViewControllers (#3206) 2017-03-21 13:17:23 -07:00
Huy Nguyen
54816ee1f2 [ASCollectionElement] Fix trait collection handling (#3200)
* Fix trait collection handling in ASCollectionElement
- Don't store a trait environment directly and request it when needed. The environment is often the cotaining collection/table node. Asking it for a trait collection is an upward tree traversal and can cause deadlocks. This reverts #2963.
- If the environment changes during a change set update, notify all visible elements about the change. This fixes #2959.

* Address comments
2017-03-21 18:03:23 +00:00
Peter
f755f19769 Merge commit '129c0686aed0b80129b4878acd22ed3f696b5489' 2017-03-21 20:42:31 +03:00