Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/satishbabariya/hexpatternview

Create Beautiful hex design View.
https://github.com/satishbabariya/hexpatternview

design hex ios swift4 ui

Last synced: about 21 hours ago
JSON representation

Create Beautiful hex design View.

Awesome Lists containing this project

README

        

# HexPatternView

[![CI Status](http://img.shields.io/travis/[email protected]/HexPatternView.svg?style=flat)](https://travis-ci.org/[email protected]/HexPatternView)
[![Version](https://img.shields.io/cocoapods/v/HexPatternView.svg?style=flat)](http://cocoapods.org/pods/HexPatternView)
[![License](https://img.shields.io/cocoapods/l/HexPatternView.svg?style=flat)](http://cocoapods.org/pods/HexPatternView)
[![Platform](https://img.shields.io/cocoapods/p/HexPatternView.svg?style=flat)](http://cocoapods.org/pods/HexPatternView)

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

## Installation

HexPatternView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'HexPatternView'
```

## Use

```swift

let patternView = HexPatternView()
view.addSubview(patternView)

patternView.translatesAutoresizingMaskIntoConstraints = false
patternView.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
patternView.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
patternView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
patternView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true

view.backgroundColor = #colorLiteral(red: 0, green: 0.7022017837, blue: 0.9288000464, alpha: 1)
patternView.setRhombusPattern()
patternView.color = UIColor.white
patternView.alpha = 0.1
patternView.cellWidthMax = 70

```


Screenshot of HexPatternView

## Author

Satish Babariya, [email protected]

## License

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