{"id":2834,"url":"https://github.com/v-braun/VBPiledView","last_synced_at":"2025-08-03T12:31:25.726Z","repository":{"id":56925528,"uuid":"62467927","full_name":"v-braun/VBPiledView","owner":"v-braun","description":"Simple and beautiful stacked UIView to use as a replacement for an UITableView, UIImageView or as a menu","archived":false,"fork":false,"pushed_at":"2018-12-25T12:20:28.000Z","size":11389,"stargazers_count":169,"open_issues_count":0,"forks_count":22,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-23T18:43:08.850Z","etag":null,"topics":["cocoapods","collectionview","imagegallery","ios","swift","uicollectionview","uiimageview","uitableview"],"latest_commit_sha":null,"homepage":null,"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/v-braun.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-07-02T20:07:17.000Z","updated_at":"2024-10-25T10:27:09.000Z","dependencies_parsed_at":"2022-08-21T06:20:11.609Z","dependency_job_id":null,"html_url":"https://github.com/v-braun/VBPiledView","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-braun%2FVBPiledView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-braun%2FVBPiledView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-braun%2FVBPiledView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-braun%2FVBPiledView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v-braun","download_url":"https://codeload.github.com/v-braun/VBPiledView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228402292,"owners_count":17914230,"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":["cocoapods","collectionview","imagegallery","ios","swift","uicollectionview","uiimageview","uitableview"],"created_at":"2024-01-05T20:16:24.061Z","updated_at":"2024-12-07T00:31:00.316Z","avatar_url":"https://github.com/v-braun.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Table View / Collection View","Layout","Other free courses"],"readme":"# VBPiledView\n\u003e simple but highly effective animation and interactivity!\n\nBy [v-braun - viktor-braun.de](https://viktor-braun.de).\n\n[![CocoaPods](https://img.shields.io/cocoapods/v/VBPiledView.svg)](https://cocoapods.org/pods/VBPiledView)\n\n## Preview\n![image](screen.gif)\n\n## Description\nVery simple and beautiful stacked UIView to use as a replacement for an UITableView, UIImageView or as a menu.\n\nInspired by [this](http://theultralinx.com/2015/10/inspirational-ui-design-15/) post from [ULTRALINX](http://theultralinx.com/):\n\n![image](http://a4.files.theultralinx.com/image/upload/MTMzNjc1NDE5MTIyNTQzMjM1.gif)\n\n\n## Installation\n\n### CocoaPods\nVBPiledView is available on [CocoaPods](http://cocoapods.org). Just add the following to your project Podfile:\n\n```ruby\npod 'VBPiledView', '~\u003e 1.4'\n```\n\nOr from GitHub:\n\n```ruby\npod 'VBPiledView', :git =\u003e 'https://github.com/v-braun/VBPiledView.git'\n```\n\n### Manually\n1. Download and drop ```VBPiledView.swift``` in your project.  \n2. Congratulations!  \n\n## Usage\nSee the *Example* Project.\n\nHere is a sample ViewController that use the VBPiledView:\n\n```swift\nimport VBPiledView\nclass ViewController: UIViewController, VBPiledViewDataSource {\n\n    @IBOutlet var piledView: VBPiledView!\n    \n    private var _subViews = [UIView]()\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        \n        _subViews.append(UIImageView(image: UIImage(named: \"ant.jpg\")))\n        _subViews.append(UIImageView(image: UIImage(named: \"bigban.jpg\")))\n        _subViews.append(UIImageView(image: UIImage(named: \"leopard.jpg\")))\n        _subViews.append(UIImageView(image: UIImage(named: \"libertystate.jpg\")))\n        _subViews.append(UIImageView(image: UIImage(named: \"Moonrise.jpg\")))\n        _subViews.append(UIImageView(image: UIImage(named: \"photographer.jpg\")))\n        \n        for v in _subViews{\n            v.contentMode = UIViewContentMode.ScaleAspectFill\n            v.clipsToBounds = true\n            v.backgroundColor = UIColor.grayColor()\n        }\n        \n        piledView.dataSource = self\n    }\n    \n    func piledView(numberOfItemsForPiledView: VBPiledView) -\u003e Int {\n        return _subViews.count\n    }\n    \n    func piledView(viewForPiledView: VBPiledView, itemAtIndex index: Int) -\u003e UIView {\n        return _subViews[index]\n    }\n}\n```\n\n## Configuration\nThe sizes of an expanded item and of all collapsed items can be configured relative to the size of the VBPiledView.\n\n```swift\n\nself.piledView.expandedContentHeightInPercent = 70 // expanded content height -\u003e 70% of screen\nself.piledView.collapsedContentHeightInPercent = 15 // collapsed content heigt of single item -\u003e 15% of screen\n\n```\n\n## Related Projects\n- [Cocoa Rocks](https://cocoa.rocks/): this and other awesome Cocoa Controls\n- [awesome-cocoa](https://github.com/v-braun/awesome-cocoa): an awesome list of cocoa controls\n\n## Known Issues\n\nIf you discover any bugs, feel free to create an issue on GitHub fork and\nsend me a pull request.\n\n[Issues List](https://github.com/v-braun/VBPiledView/issues).\n\n## Authors\n\n![image](https://avatars3.githubusercontent.com/u/4738210?v=3\u0026s=50)  \n[v-braun](https://github.com/v-braun/)\n\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n\n## License\n\nSee [LICENSE](https://github.com/v-braun/VBPiledView/blob/master/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-braun%2FVBPiledView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv-braun%2FVBPiledView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-braun%2FVBPiledView/lists"}