Commit Graph

25012 Commits

Author SHA1 Message Date
Peter
d55d3eecc6 no message 2016-11-04 12:58:30 +03:00
Peter
2168cdd46a no message 2016-11-04 01:39:54 +03:00
Peter
ae1d243745 no message 2016-11-04 01:39:40 +03:00
Peter
9c3067aa07 no message 2016-11-04 01:39:26 +03:00
Peter
0682728c2c no message 2016-11-04 01:39:09 +03:00
overtake
7078356d49 Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCore 2016-11-04 00:07:37 +03:00
overtake
d665ed7adc Merge branch 'master' of https://github.com/peter-iakovlev/Postbox 2016-11-04 00:07:21 +03:00
overtake
fe5ab3647b no message 2016-11-04 00:07:09 +03:00
overtake
967afd2044 files 2016-11-04 00:06:24 +03:00
overtake
295f44792a files 2016-11-04 00:06:24 +03:00
Peter
abfd19bda8 no message 2016-11-03 23:02:21 +03:00
Peter
9f2d53f2d3 no message 2016-11-03 23:02:08 +03:00
Peter
6c5875013a no message 2016-11-03 23:01:04 +03:00
Peter
ea1d9d38d5 no message 2016-11-03 23:00:43 +03:00
Garrett Moon
62a0296148 Implementation needs to match decleration. (#2539) 2016-11-02 18:19:26 -07:00
Michael Schneider
dae374d482 Initial commit to cleanup modifying subnode hierarchy (#2535) 2016-11-02 17:12:35 -07:00
Garrett Moon
076d22e9f1 Do not reuse NSStringDrawingContexts (#2537) 2016-11-02 14:37:51 -07:00
george-gw
ff9e493a59 Fixed asciiArtString. (#2523) 2016-11-01 17:33:27 -07:00
Peter
2b07ed38ed no message 2016-11-02 03:14:54 +03:00
Peter
ed886b7458 no message 2016-11-02 03:14:41 +03:00
Peter
95f4342def no message 2016-11-02 03:14:28 +03:00
Peter
4d308bcb69 no message 2016-11-02 03:14:12 +03:00
Peter
9b2447885e no message 2016-11-02 03:13:51 +03:00
Adlai Holler
a6e2f8e5ab Finish Porting indexPath-Oriented Methods to ASTableNode/ASCollectionNode (#2527)
* Finish porting over the indexPath-oriented properties from table/collection view to node

* Make indexPathForSelectedRow a property
2016-11-01 15:03:46 -07:00
Hannah Troisi
e1e5eb6ca0 improve deprecation message (#2524) 2016-11-01 11:33:31 -07:00
Hannah Troisi
aac52d7f6d Improve Deprecation Warning for myself (#2521) 2016-11-01 09:12:04 -07:00
Michael Schneider
58e9c807b9 Fix using UIActivityIndicatorView provided in view block (#2522) 2016-11-01 07:58:54 -07:00
Hannah Troisi
8e6f842b8d [ASLayoutElementStyle] implement -description with sizing info (#2495)
* Layout style object debugging

* Remove cocoapods crap
2016-11-01 07:58:43 -07:00
Scott Goodson
6297fa5241 [ASTableNode] Minor fix so visibleNodes is in the same position as declaration in ASCollectionNode. 2016-10-31 20:24:24 -07:00
Michael Schneider
f7ea4f67f7 Fix Swift Example (#2520) 2016-10-31 19:25:06 -07:00
Garrett Moon
68990cb6cc Deprecations should be re-enabled. If there are specific deprecations… (#2519)
* Deprecations should be re-enabled. If there are specific deprecations we'd like to hold off on, we should address those specifically.

* Fix decleration

* Move select to undeprecated

* Fix deprecations
2016-10-31 17:30:40 -07:00
Michael Schneider
4464b7de60 Improve deprecation situation for 2.0 (#2514)
* Improve deprecations for 2.0

- Add deprecations for node / layoutSpec style properties
- Implement missing methods on ASDisplay from deprecation header
- Cleanup all of the deprecation categories

* Remove DeprecatedProtocolMethods

* Fix "Life without Cocoapods"

* Update comments
2016-10-31 16:46:21 -07:00
Adlai Holler
f09b92641c Invalidate TextNode Renderer Instead of Changing constrainedSize (#2516)
* Instead of changing its constrained size, just invalidate renderer. It's virtually the same.

* Check constrained size before invalidating renderer
2016-10-31 14:14:21 -07:00
Michael Schneider
7ecce6b677 Remove thread affinity for _displaysAsynchronously (#2518) 2016-10-31 14:12:50 -07:00
Garrett Moon
9aeef7b503 Revert "We need to ensure point dimensions are valid for sizing. (#2503)" (#2512)
This reverts commit 1165628905.

I wanted to catch dimension issues early, we should move the assert to setting
width and height. The former was correct for here.
2016-10-31 00:02:50 -07:00
Adlai Holler
3eb7a307fa Share a singleton shadower for all cases when shadow isn't drawn, fix issues (#2511) 2016-10-30 15:34:29 -07:00
Michael Schneider
611894329a [ASStackLayoutSpec] Performance improvements (#2470)
* Initial commit for ASStackLayoutSpec improvements

* Remove the lock in ASStackLayoutSpec and make the ASStackLayoutSpecStyle const

I think we don't need lock here as the style already has a lock while we set the value

* Add ASStackLayoutSpecItem  that replaces layout specific items

* Prevent baseline pass if not needed

* Update comments
2016-10-30 12:07:18 -07:00
Tamás Kárai
ca203158da [ASControlNode] Invoke target actions in the same order as they were added (#2456)
* added control node test

* fix tests

* target action pair

* go back to class

* move ASControlTargetAction to Private

* added ASControlTarget to cimpole sources

* add ASControlTargetAction to framework target as well

* init local variables with nil

* removed comment with private Apple class name

* isEqual implementation for ASControlTargetAction

* eliminate retain cycle

* use ASControlTargetAction isEqual

* change to NSMutableOrderedSet

* Use OrderedSet and isEqual

* Use that NSMutableOrderedSet stored the same object only once

* Moving back to NSMutableArray

* minor improvements
2016-10-30 11:44:50 -07:00
Adlai Holler
f066efd49e Improve Table Performance, Especially When Using Section Index Bar (#2506)
* Only trigger table view height requery if row-node height changed

* Make ASTableView handle the section index bar better

* Remove outdated comment

* Add a main thread assertion
2016-10-30 09:18:13 -07:00
Peter
65a2ff8fea Merge commit 'd83f058f821792fe403002a878f586cc37366ac7' 2016-10-30 14:59:28 +03:00
Peter
dab9f2dc26 no message 2016-10-30 14:24:37 +03:00
george-gw
d83f058f82 Deprecate indexPath-based Methods on ASTableView/ASCollectionView (#2498)
* Deprecated indexPath methods in ASTableView and ASTableNode and added several indexPath methods to ASTableNode and ASCollectionNode.

* Fixed incorrect doc.
Removed unnecessary __kindof.
2016-10-29 09:50:11 -07:00
Michael Schneider
c4451edab1 Add assertion for invalid constrainedSize in calculateSizeThatFits: (#2507) 2016-10-28 16:45:22 -07:00
george-gw
09168ceee0 [Swift] Addressed two warnings when building for swift. (#2497) 2016-10-28 15:40:22 -07:00
Michael Schneider
fb92b448e0 [ASDisplayNode] Proper handling of constrainedSize (#2505)
* Check in ASLayout if size is valid for sizing instead of valid for layout

* Return constrainedSize from calculateSizeThatFits:

Remove invalid constrainedSize check within ASNetworkImageNode. Furthermore as ASDisplayNode does not return CGSizeZero anymore we have to give the display nodes we use in tests and are involving a stack spec an intrinsic content size.

* Remove extra constrainedSize handling in ASNetworkImageNode handling

* Change test to use FLT_MAX
2016-10-28 15:39:03 -07:00
george-gw
e4a2637804 [Examples] Playground swift (#2425)
* Added Playground-Swift with two example pages.

* Added PhotoWithOutsetIconOverlay example.

* Added an extra tip in swift playground.

* Added HorizontalStackWithSpacer to the swift playground.

* Added fileprivate for some global variables.

* Added private to the setupNodes functions

* Added solutions to common issues.
2016-10-28 15:36:14 -07:00
Garrett Moon
1165628905 We need to ensure point dimensions are valid for sizing. (#2503) 2016-10-28 15:18:45 -07:00
Benjamin Scholtysik (Reimold)
cac3df9a46 Merge pull request #364 from bitstadium/develop
Merge CI fix and readme update back into master
2016-10-28 12:10:32 -07:00
Benjamin Scholtysik (Reimold)
6bcc374115 Merge pull request #357 from bitstadium/feature/travis-CI-fixes
Fix CI
2016-10-28 10:12:20 -07:00
Adlai Holler
8add4619cf Reduce Traffic to Table/Collection View When Updating (#2496)
* Improve the call pattern when loading table/collection data

* When deleting sections, no need to delete rows first

* Clean up a couple things
2016-10-28 09:42:45 -07:00