HoneycombView is the iOS UIView for displaying like Honeycomb layout written by swift

Overview

HoneycombView

Carthage Compatible Cocoapods Compatible

iOS UIView for Honeycomb layout include with photoBrowser.

sample

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:

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
  // 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
  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

Photos from

License

HoneycombView is available under the MIT license. See the LICENSE file for more info.

You might also like...
A fast, pure swift MongoDB driver based on Swift NIO built for Server Side Swift
A fast, pure swift MongoDB driver based on Swift NIO built for Server Side Swift

A fast, pure swift MongoDB driver based on Swift NIO built for Server Side Swift. It features a great API and a battle-tested core. Supporting both MongoDB in server and embedded environments.

CleanArchitecture - Helping project to learn Clean Architecture using iOS (Swift)

Clean Architecture Helping project to learn Clean Architecture using iOS (Swift)

The hassle-free way to add Segment analytics to your Swift app (iOS/tvOS/watchOS/macOS/Linux).

Analytics-Swift The hassle-free way to add Segment analytics to your Swift app (iOS/tvOS/watchOS/macOS/Linux/iPadOS). Analytics helps you measure your

 SQLite.swift - A type-safe, Swift-language layer over SQLite3.
SQLite.swift - A type-safe, Swift-language layer over SQLite3.

SQLite.swift provides compile-time confidence in SQL statement syntax and intent.

🧡 SQLiteOrm-Swift is an ORM library for SQLite3 built with Swift 5
🧡 SQLiteOrm-Swift is an ORM library for SQLite3 built with Swift 5

🧡 Easy to use SQLite ORM library written with Swift

ObjectBox Swift - persisting your Swift objects superfast and simple
ObjectBox Swift - persisting your Swift objects superfast and simple

ObjectBox Swift ObjectBox is a superfast, light-weight object persistence framework. This Swift API seamlessly persists objects on-device for iOS and

Shows the issue with swift using an ObjC class which has a property from a swift package.

SwiftObjCSwiftTest Shows the issue with swift using an ObjC class which has a property from a swift package. The Swift class (created as @objc derived

Save-the-dot-project-swift - Save the dot project with swift
Save-the-dot-project-swift - Save the dot project with swift

Save the Dot Apple introduced UIViewPropertyAnimator for iOS 10. We can use this

Comments
  • Correct the spelling of CocoaPods in README

    Correct the spelling of CocoaPods in README

    This pull requests corrects the spelling of CocoaPods 🤓 https://github.com/CocoaPods/shared_resources/tree/master/media

    Created with cocoapods-readme.

    opened by ReadmeCritic 0
Owner
keishi suzuki
keishi suzuki
An alternative to Core Data for people who like having direct SQL access.

FCModel 2 An alternative to Core Data for people who like having direct SQL access. By Marco Arment. See the LICENSE file for license info (it's the M

null 1.7k Dec 28, 2022
A clicker-like game based on the concept of a Knight abandoned in space

A Knight in Space A clicker-like game based on the concept of a Knight abandoned in space. Team Members Albin Shrestha, Zac Galer, Connor Kite, and Ma

Albin Shrestha 1 Feb 7, 2022
An e-commerce app with some function: searching, like product, demo paying and view product

Emarket_060921 An e-commerce app with some function: searching, like product, demo paying and view product. I have developed this app all by myself, b

null 0 Jan 17, 2022
CoreXLSX is a Excel spreadsheet (XLSX) format parser written in pure Swift

CoreXLSX Excel spreadsheet (XLSX) format parser written in pure Swift CoreXLSX is a library focused on representing the low-level structure of the XML

null 684 Dec 21, 2022
Super lightweight DB written in Swift.

Use of value types is recommended and we define standard values, simple structured data, application state and etc. as struct or enum. Pencil makes us store these values more easily.

Naruki Chigira 88 Oct 22, 2022
CoreData/Realm sweet wrapper written in Swift

What is SugarRecord? SugarRecord is a persistence wrapper designed to make working with persistence solutions like CoreData in a much easier way. Than

Modo 2.1k Dec 9, 2022
💾 Safe, statically-typed, store-agnostic key-value storage written in Swift!

Storez ?? Safe, statically-typed, store-agnostic key-value storage Highlights Fully Customizable: Customize the persistence store, the KeyType class,

Kitz 67 Aug 7, 2022
CRRateLimitTester - Simple Clash Royale Rate Limit Tester Written Using HummingBird and Swift

CRRateLimitTester Simple Clash Royale Rate Limit Tester Written Using HummingBir

Mahdi Bahrami 0 Jan 16, 2022
Easy and beautiful way for a user to pick content, files or images. Written in Objective C

##JVTImageFilePicker Description ImageFilesPicker Is a butifuly designed UICompenent for uploading content Preview from recent camera roll Live Camera

Matan Abravanel 60 Jun 19, 2022
Ios-App-ication-Swift - A simple iOS application made in Xcode using Swift

?? iPhone Calculator A simple iOS application made in Xcode using Swift. This ap

Kushal Shingote 1 Feb 2, 2022