Commit Graph

13022 Commits

Author SHA1 Message Date
Peter Iakovlev
81d6b4fb9d no message 2018-01-19 00:36:19 +04:00
Brandon Withrow
84d36703fc Merge pull request #539 from dmaclach/sim
Add TargetConditionals.h
2018-01-18 09:17:34 -08:00
Dave MacLachlan
cc578ce0df Add TargetConditionals.h
Many files were referencing macros defined by TargetConditionals before
including it.

Also updates one macro from the deprecated TARGET_IPHONE_SIMULATOR to
TARGET_OS_SIMULATOR.
2018-01-18 09:09:31 -08:00
janechoi6
b5d3e52e8b Update subclassing.md (#753) 2018-01-18 16:00:15 +00:00
Peter
8e1d3d9553 Merge commit 'ca597bf3beb3e87cd7d98ab289cef93d1dbb9382' 2018-01-18 15:17:34 +04:00
Peter
68c0854103 no message 2018-01-18 15:17:29 +04:00
Peter Iakovlev
4a58158d99 Merge commit 'c2668174090a9a74551499a733e9914957a00688' 2018-01-18 14:52:39 +04:00
Peter Iakovlev
798b169bbf no message 2018-01-18 14:52:33 +04:00
Peter
c266817409 no message 2018-01-18 14:51:39 +04:00
Peter Iakovlev
3cfaf2b76f Merge commit '4cfd39473ea9662a2628bf43b1cc55e64ad5dd61' 2018-01-18 11:07:36 +04:00
Peter Iakovlev
b6a7cc8eb0 no message 2018-01-18 11:06:44 +04:00
Peter
4cfd39473e no message 2018-01-18 11:05:39 +04:00
Huy Nguyen
2e98588372 [ASDisplayNode] Don't force a layout pass on a visible node that enters preload state (#751)
- After #706, a layout pass is forced on an ASM-enabled node that enters preload state to make sure that its subnodes can start preloading as well. However, when the node is visible, a (coalesced, thus more efficient) layout pass will be triggered by CA soon anyways, so rely on it instead.
2018-01-17 15:35:02 +00:00
Adlai Holler
4776cb3dcd Fix the dangerfile for real (#750) 2018-01-16 20:55:27 +00:00
Yevgen Pogribnyi
a3136b0225 [ASTraitCollection] Add missing properties to ASTraitCollection (#625)
* [ASTraitCollection] Add missing properties to ASTraitCollection

* ASTraitCollection now completely reflects UITraitCollection

* Add ASContentSizeCategory enum that corresponds to
  UIContentSizeCategory and can be used inside a struct.

* * Remove enum ASContentSizeCategory.
* Use __unsafe_unretained UIContentSizeCategory instead of the enum.

* Added ASPrimitiveTraitCollection lifetime test

* Changes requested at code review:
* Restore one of the ASTraitCollection constructors with a deprecation notice.
* Clean up API by the separation of tvOS-specific interfaces.
* Use [NSString -isEqualToString:] for ASPrimitiveContentSizeCategory equality tests for better readability.
* Encapsulate fallback logic for UIContentSizeCategoryUnspecified.

* Fix failing test
2018-01-16 18:08:29 +00:00
Adlai Holler
193be32bcf Update dangerfile for 2018 #trivial (#746)
* Update the dangerfile

* Make a trivial change to test new dangerfile

* Try out the new value with another trivial change
2018-01-15 15:13:54 -08:00
Adlai Holler
61dade6bda Raise deployment target to iOS 9 (#743)
https://github.com/TextureGroup/Texture/pull/743

Manually merged since I forgot to retarget that diff onto master before merge
2018-01-15 15:13:05 -08:00
Florian Schliep
8d1b6d6afe Fix convenience class methods of public classes
Lots of the classes the framework exposes publicly offer convenience class methods for their instantiation. Unfortunately those class methods don’t create instances of their respective instancetype as declared, but create instances of hardcoded classes.

This means subclasses cannot take advantage of those convenience methods without introducing bugs. When using an instance that is expected to inherit from the subclass but does in fact inherit from the superclass, calling methods of the subclass will throw an exception. Furthermore, it’s not possible to add variables to those instances without causing a buffer overflow.

While it is possible to work around this using the Objective-C runtime, it would cause unnecessary overhead. As the return type of those class methods is declared as instancetype, it is expected that they return an instance of the current class, self.
2018-01-14 17:02:50 +01:00
Adlai Holler
1d105c2056 Add an experimental "no-copy" renderer (#741)
* Add "ASGraphicsContext" to skip copying our rendered images

* Zero the buffer before making a context

* Update license header

* Update dangerfile

* Make it a runtime flag

* Restore GState for good measure

* Free buffer if end without image

* Enable the experiment, and cut out the middle-man

* Fix typo
2018-01-13 19:19:08 -08:00
Garrett Moon
3708f2e448 Update CHANGELOG for 2.6 2018-01-12 13:01:28 -08:00
Peter Iakovlev
43043843b2 Merge commit '658d3c5fdd694626aa048656451413e82337b72d' 2018-01-12 20:35:24 +04:00
Peter Iakovlev
3d7f81950d no message 2018-01-12 20:35:15 +04:00
Peter
658d3c5fdd no message 2018-01-12 20:34:13 +04:00
Peter Iakovlev
7ccb9aa046 Merge commit '03ef1f0c2e2e2b284d6e15872d7c823459b801b4' 2018-01-12 20:15:30 +04:00
Peter Iakovlev
9e0459fe22 no message 2018-01-12 20:15:22 +04:00
Peter
03ef1f0c2e no message 2018-01-12 20:15:05 +04:00
Peter Iakovlev
a3e8bb94de Merge commit '98ce66a7b411f98b924ff625ca86df62276159f0' 2018-01-12 17:30:21 +04:00
Peter Iakovlev
d04264c127 no message 2018-01-12 17:30:17 +04:00
Peter
98ce66a7b4 no message 2018-01-12 17:25:53 +04:00
Peter Iakovlev
15be8bb5e6 Merge commit 'b18b69a10f4729982db1264789ed33680fa8a422' 2018-01-12 15:45:45 +04:00
Peter Iakovlev
af30a6cc0e no message 2018-01-12 15:45:29 +04:00
Peter
b18b69a10f no message 2018-01-12 15:43:51 +04:00
Peter
abf0597ca9 no message 2018-01-12 15:36:50 +04:00
Peter Iakovlev
d93a30380e no message 2018-01-12 15:32:00 +04:00
Peter Iakovlev
f8afc46bef no message 2018-01-12 12:48:06 +04:00
Peter Iakovlev
a6f13ea811 no message 2018-01-12 12:47:38 +04:00
Peter Iakovlev
8131db136d no message 2018-01-12 12:44:41 +04:00
Peter
3a998955b7 no message 2018-01-11 22:44:38 +04:00
Peter
872cfb102c no message 2018-01-11 22:44:15 +04:00
Peter
7e9e7bb474 no message 2018-01-11 22:41:06 +04:00
Peter
ca597bf3be Merge commit '515bcf457ac7688b4baa377e5b906f538cd42817' 2018-01-11 22:40:21 +04:00
Peter
c5c7e21330 no message 2018-01-11 22:40:11 +04:00
Peter
f1bdc9ad87 no message 2018-01-11 22:39:22 +04:00
Brandon Withrow
6b8358b82c Merge pull request #530 from airbnb/btw/headersupdate
Add missing headers to static library
2018-01-11 10:37:36 -08:00
brandon_withrow
caedbd81d2 Add missing headers to static library 2018-01-11 10:36:43 -08:00
Brandon Withrow
983ad4ee32 Merge pull request #528 from 50percentgrey/public_headers
set Public Headers
2018-01-11 10:34:52 -08:00
Peter
87aa3d17af no message 2018-01-11 21:36:52 +04:00
Antonio Junior
71103ddaf7 set LOTBlockCallback.h, LOTInterpolatorCallback.h and LOTValueCallback.h as public to avoid error on carthage 2018-01-10 17:57:59 -02:00
Sudhanshu
1dfdb48497 Add MensXP to Showcase (#739)
This change is for adding "MensXP: Fashion, Grooming tips" iOS App to Texture showcase.
2018-01-10 10:15:53 -08:00
Brandon Withrow
d61c03406d Merge pull request #527 from WDUK/patch-1
Fix Analyser warning in LOTRadialGradientLayer
2018-01-10 09:13:46 -08:00