Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satishbabariya/hexpatternview
Create Beautiful hex design View.
https://github.com/satishbabariya/hexpatternview
design hex ios swift4 ui
Last synced: 3 months ago
JSON representation
Create Beautiful hex design View.
- Host: GitHub
- URL: https://github.com/satishbabariya/hexpatternview
- Owner: satishbabariya
- License: mit
- Created: 2017-11-24T11:32:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T07:02:53.000Z (over 4 years ago)
- Last Synced: 2024-10-09T16:30:53.899Z (3 months ago)
- Topics: design, hex, ios, swift4, ui
- Language: Swift
- Homepage:
- Size: 191 KB
- Stars: 44
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
## Author
Satish Babariya, [email protected]
## License
HexPatternView is available under the MIT license. See the LICENSE file for more info.