Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suzuki-0000/HoneycombView
HoneycombView is the iOS UIView for displaying like Honeycomb layout written by swift
https://github.com/suzuki-0000/HoneycombView
honeycomb swift ui-components
Last synced: about 1 month ago
JSON representation
HoneycombView is the iOS UIView for displaying like Honeycomb layout written by swift
- Host: GitHub
- URL: https://github.com/suzuki-0000/HoneycombView
- Owner: suzuki-0000
- License: mit
- Created: 2015-08-10T10:45:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-23T01:31:48.000Z (over 8 years ago)
- Last Synced: 2024-10-16T04:16:33.000Z (about 2 months ago)
- Topics: honeycomb, swift, ui-components
- Language: Swift
- Homepage:
- Size: 12.7 MB
- Stars: 204
- Watchers: 7
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift-cn - HoneycombView - HoneycombView is the iOS UIView for displaying like Honyecomb layout written by swift. (Libs / UI)
- awesome-cocoa - HoneycombView
README
HoneycombView
========================[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/HoneycombView.svg?style=flat)](http://cocoadocs.org/docsets/HoneycombView)iOS UIView for Honeycomb layout include with photoBrowser.
![sample](Screenshots/HoneycombViewSample1.gif)
## Requirements
- iOS 8.0+
- Swift 2.0+
- ARC##Installation
####CocoaPods
HoneycombView is available on CocoaPods. Just add the following to your project Podfile:
```
pod 'HoneycombView'
use_frameworks!
```####Carthage
To integrate HoneycombView into your Xcode project using Carthage, specify it in your Cartfile:```ogdl
github "suzuki-0000/HoneycombView"
```####Manually
Add the `HoneycombView.swift` directly into your project.##Usage
The easiest way is to instantiate its class in ViewController, configure it, and add it to a view.
If you want to know more details, see the ViewController of the example project.- With Images
```swift
// do some for images
let images = [UIImage]()let honeycombView = HoneycombView(frame: CGRectMake(0, 0, view.frame.width, view.frame.height))
honeycombView.diameter = 160.0
honeycombView.margin = 1.0
honeycombView.configrationForHoneycombViewWithImages(images)
view.addSubview(honeycombView)
honeycombView.animate(duration: 2.0)
```You can also use from URL(String) with NSCache.
- With Images from URL
```swift
for i in 0..<30{
let user = User(id: i, profileImageURL: "https://placehold.jp/150x150.png")
users.append(user)
}
let honeycombView = HoneycombView(frame: CGRectMake(0, 0, view.frame.width, view.frame.height))
honeycombView.diameter = 100.0
honeycombView.margin = 1.0
honeycombView.configrationForHoneycombViewWithURL(users.map{ $0.profileImageURL })
view.addSubview(honeycombView)```
Other parameter is for size of HoneycombView.
Set margin parameter to 0 if you don't need margin for honeycomb.
- diameter
- margin![sample](Screenshots/HoneycombViewSample2.gif)
## Photos from
- [Unsplash](https://unsplash.com)
- [placehold](https://placehold)## License
HoneycombView is available under the MIT license. See the LICENSE file for more info.