{"id":2929,"url":"https://github.com/fdzsergio/SFFocusViewLayout","last_synced_at":"2025-08-03T12:31:41.844Z","repository":{"id":43771884,"uuid":"43810844","full_name":"fdzsergio/SFFocusViewLayout","owner":"fdzsergio","description":"UICollectionViewLayout with focused content","archived":false,"fork":false,"pushed_at":"2018-09-29T16:30:27.000Z","size":4153,"stargazers_count":1761,"open_issues_count":13,"forks_count":180,"subscribers_count":39,"default_branch":"master","last_synced_at":"2024-10-29T17:56:00.047Z","etag":null,"topics":["carthage","cocoapods","ios","swift","uicollectionviewlayout"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fdzsergio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-07T11:22:14.000Z","updated_at":"2024-10-22T13:15:55.000Z","dependencies_parsed_at":"2022-07-07T22:28:54.531Z","dependency_job_id":null,"html_url":"https://github.com/fdzsergio/SFFocusViewLayout","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdzsergio%2FSFFocusViewLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdzsergio%2FSFFocusViewLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdzsergio%2FSFFocusViewLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdzsergio%2FSFFocusViewLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdzsergio","download_url":"https://codeload.github.com/fdzsergio/SFFocusViewLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228543209,"owners_count":17934444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carthage","cocoapods","ios","swift","uicollectionviewlayout"],"created_at":"2024-01-05T20:16:26.598Z","updated_at":"2024-12-07T00:31:07.153Z","avatar_url":"https://github.com/fdzsergio.png","language":"Swift","funding_links":[],"categories":["UI","Content","ALL"],"sub_categories":["Tag","Other free courses","Layout"],"readme":"# SFFocusViewLayout\n\n[![Travis CI](https://travis-ci.org/fdzsergio/SFFocusViewLayout.svg?branch=master)](https://travis-ci.org/fdzsergio/SFFocusViewLayout)\n[![codecov.io](https://codecov.io/github/fdzsergio/SFFocusViewLayout/coverage.svg?branch=master)](https://codecov.io/github/fdzsergio/SFFocusViewLayout?branch=master)\n[![Swift Version](https://img.shields.io/badge/Swift-4.2.x-orange.svg)]()\n[![Version](https://img.shields.io/cocoapods/v/SFFocusViewLayout.svg?style=flat)](http://cocoapods.org/pods/SFFocusViewLayout)\n[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](https://img.shields.io/cocoapods/p/SFFocusViewLayout.svg?style=flat)](http://cocoapods.org/pods/SFFocusViewLayout)\n[![License](https://img.shields.io/cocoapods/l/SFFocusViewLayout.svg?style=flat)](http://cocoapods.org/pods/SFFocusViewLayout)\n\n## Overview\nSFFocusViewLayout is a UICollectionViewLayout subclass for displaying focused content on UICollectionView which is the largest cell of all.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Screenshots/SFFocusViewLayout.gif\" /\u003e\n\u003c/p\u003e\n\n## Usage\n\nSFFocusViewLayout contains three properties to customize the interface.\n\n```swift\nvar standardHeight: CGFloat\nvar focusedHeight: CGFloat\nvar dragOffset: CGFloat\n```\n\n- _focusedHeight_ is the height cells should be when focused.  Defaults to 280\n- _standardHeight_ is the height cells should be when collapsed.  Defaults to 100\n- _dragOffset_ is the amount the user needs to scroll before the featured cell changes. Defaults to 180\n\n\n## Versions\n\n### Swift\nIf you want to use a Swift 3 implementation of this framework use a 3.0 or greater version\n\n```ruby\npod 'SFFocusViewLayout', '~\u003e 3.0'\n```\n\n### Objective–C\nIf you want to use a Objective–C implementation of this framework use a 2.0 or greater version\n\n```ruby\npod 'SFFocusViewLayout', '~\u003e 2.0'\n```\n\n## Installation\n\n### CocoaPods\n\nSFFocusViewLayout is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SFFocusViewLayout'\n```\n### Carthage\n\nYou can also install it via [Carthage](https://github.com/Carthage/Carthage). To do so, add the following to your Cartfile:\n\n```terminal\ngithub 'fdzsergio/SFFocusViewLayout'\n```\n\n## Roadmap\n- [x] Carthage support\n- [x] Swift compatible\n- [x] Swift version\n- [x] Tests\n- [x] Upgrade to Swift 3\n\n## Author\n\nSergio Fernández, fdz.sergio@gmail.com\n\n## Acknowledgement\n\nThis framework is heavily inspired by the Ultravisual example of [Ray Wenderlich](http://www.raywenderlich.com/99087/swift-expanding-cells-ios-collection-views).\n\n## License\n\nSFFocusViewLayout is available under the MIT license. See the [LICENSE](https://raw.githubusercontent.com/fdzsergio/SFFocusViewLayout/master/LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdzsergio%2FSFFocusViewLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdzsergio%2FSFFocusViewLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdzsergio%2FSFFocusViewLayout/lists"}