airbnb / MagazineLayout

A collection view layout capable of laying out views in vertically scrolling grids and lists.
Apache License 2.0
3.3k stars 219 forks source link

tvOS support #81

Closed RomanPodymov closed 4 years ago

RomanPodymov commented 4 years ago

Hello. Thank you for MagazineLayout. In this pull request I added tvOS support.

Details

Added appletvos and appletvsimulator platforms for MagazineLayout.framework. Added MagazineLayoutExampleAppleTV to test MagazineLayout.framework on tvOS. Using #if os(iOS) for the iOS-only classes.

Related Issue

Motivation and Context

I think it will be nice to have tvOS support for MagazineLayout.

How Has This Been Tested

I launched MagazineLayoutExampleAppleTV on Apple TV 4K simulator with tvOS 13.4. I observed the same collection views as in MagazineLayoutExample.

Types of changes

Checklist

bryankeller commented 4 years ago

Thanks @RomanPodymov ! If you can get the build working, then this seems like a good change! https://travis-ci.com/github/airbnb/MagazineLayout/builds/176573279

RomanPodymov commented 4 years ago

Thanks @RomanPodymov ! If you can get the build working, then this seems like a good change! https://travis-ci.com/github/airbnb/MagazineLayout/builds/176573279

Done.

bryankeller commented 4 years ago

thanks a bunch @RomanPodymov !