{"id":21065040,"url":"https://github.com/prolificinteractive/pilas","last_synced_at":"2025-05-16T02:32:59.566Z","repository":{"id":62450773,"uuid":"105305071","full_name":"prolificinteractive/Pilas","owner":"prolificinteractive","description":"A scrollable stackview.","archived":false,"fork":false,"pushed_at":"2017-10-03T21:08:11.000Z","size":1184,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-13T14:04:28.796Z","etag":null,"topics":[],"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/prolificinteractive.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":"2017-09-29T18:32:41.000Z","updated_at":"2024-10-10T00:23:02.000Z","dependencies_parsed_at":"2022-11-01T22:46:07.141Z","dependency_job_id":null,"html_url":"https://github.com/prolificinteractive/Pilas","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2FPilas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2FPilas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2FPilas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2FPilas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prolificinteractive","download_url":"https://codeload.github.com/prolificinteractive/Pilas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225401817,"owners_count":17468809,"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":[],"created_at":"2024-11-19T17:53:16.194Z","updated_at":"2024-11-19T17:53:16.837Z","avatar_url":"https://github.com/prolificinteractive.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pilas\n\n[![Travis build status](https://img.shields.io/travis/prolificinteractive/Pilas.svg?style=flat-square)](https://travis-ci.org/prolificinteractive/Pilas)\n[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/Pilas.svg?style=flat-square)](https://img.shields.io/cocoapods/v/Pilas.svg)\n[![Platform](https://img.shields.io/cocoapods/p/Pilas.svg?style=flat-square)](http://cocoadocs.org/docsets/Pilas)\n[![Docs](https://img.shields.io/cocoapods/metrics/doc-percent/Pilas.svg?style=flat-square)](http://cocoadocs.org/docsets/Pilas)\n\n## Description\n\nA scrollable StackView for quick UI creation.\n\n![Pilas.gif](Images/Pilas.gif)\n\n## Requirements\n\n* iOS 9.0+\n\n## Installation\n\n### CocoaPods\nPilas is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'Pilas'\n```\n\n## Usage\n\n### Initialization\n\nA PilasScrollView can be initialized through a storyboard or programmatically.\n\n```swift\n@IBOutlet private weak var stackViewScrollView: PilasScrollView!\n```\n\n```swift\nvar pilasScrollView = PilasScrollView()\n```\n\nThe axis of the StackView can be changed to change stack and scroll direction. Default is set to vertical.\n\n```swift\nhorizontalScrollView.axis = .vertical\n```\n### Inserting Views\n\nViews can be inserted into the PilasScrollView through the `insertView` method. The width and height can also be set to add a width or height constraint depending on the stackView's axis. If the axis is vertical we recommend setting a height constraint and a width constraint for a horizontal axis.\n\n```swift\npilasScrollView.axis = .vertical\npilasScrollView.insertView(view: UIView, height: 50)\n```\n\n```swift\npilasScrollView.axis = .horizontal\npilasScrollView.insertView(view: UIView, width: 50)\n```\n\nDivider views can also be inserted into the PilasScrollView to allow custom spacing between views. Height and width parameters are available and should be used similarly to inserting views as described above.\n\n```swift\npilasScrollView.axis = .vertical\npilasScrollView.insertDividerView(height: 10, backgroundColor: UIColor.black)\n```\n\n### Keyboard Notifications\n\nKeyboard show and hide notifications are enabled by default to increase or decrease the content inset. The default bottom inset can be customized if a project needs a default bottom inset that is not 0.\n\n```swift\npilasScrollView.enableKeyboardNotifications = true\npilasScrollView.defaultBottomInset = 0\n```\n\n## Contributing to Pilas\n\nTo report a bug or enhancement request, feel free to file an issue under the respective heading.\n\nIf you wish to contribute to the project, fork this repo and submit a pull request. Code contributions should follow the standards specified in the [Prolific Swift Style Guide](https://github.com/prolificinteractive/swift-style-guide).\n\n## License\n\n![prolific](https://s3.amazonaws.com/prolificsitestaging/logos/Prolific_Logo_Full_Color.png)\n\nCopyright (c) 2017 Prolific Interactive\n\nPilas is maintained and sponsored by Prolific Interactive. It may be redistributed under the terms specified in the [LICENSE] file.\n\n[LICENSE]: ./LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolificinteractive%2Fpilas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprolificinteractive%2Fpilas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolificinteractive%2Fpilas/lists"}