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

https://github.com/shndrs/shndstuffs

Make your UIView, UIImageView, UIButton, UINavigationBar and etc more AWESOME!!!
https://github.com/shndrs/shndstuffs

animation cocoapods custom-elements custom-uibutton custom-uinavigationbar custom-uitextfield custom-uiview dynamic-gradient-view gradient gradient-view ios library material material-ui podfile shimmer-label shndrs swift uinavigationbar uinavigationbar-gradient

Last synced: 4 months ago
JSON representation

Make your UIView, UIImageView, UIButton, UINavigationBar and etc more AWESOME!!!

Awesome Lists containing this project

README

          

# SHNDStuffs

![swift-version](https://img.shields.io/badge/Swift-5.3-blueviolet.svg)
[![Version](https://img.shields.io/cocoapods/v/SHNDStuffs.svg?style=flat)](https://cocoapods.org/pods/SHNDStuffs)
[![License](https://img.shields.io/cocoapods/l/SHNDStuffs.svg?colorB=green)](https://cocoapods.org/pods/SHNDStuffs)
[![Platform](https://img.shields.io/cocoapods/p/SHNDStuffs.svg?style=flat)](https://cocoapods.org/pods/SHNDStuffs)

## Example

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

# UINavigationBar Gradient

for set UINavigationBar gradient and it's tintColor use the function below in viewDidLoad():
```Swift
override func viewDidLoad() {
super.viewDidLoad()

SHNDNavigationBarGradient(firstColor: .darkGray,
secondColor: .white,
tintColor: .black,
isHorizontal: true)
}
```
![example 0](https://user-images.githubusercontent.com/34839080/50152348-a0793400-02d8-11e9-87e8-1691413827fe.png) ,
![example 3](https://user-images.githubusercontent.com/34839080/50155445-4f217280-02e1-11e9-83b7-fb2955ec2f00.png), ![example 4](https://user-images.githubusercontent.com/34839080/50155449-55175380-02e1-11e9-92ba-baabf922fd99.png)

# SHNDNavigationCustomTitleView

For set UINavigationBarItem custom title view use the builder pattern below in viewDidLoad():

```Swift

override func viewDidLoad() {
super.viewDidLoad()
let navTitleBuilder = NavigationTitleViewBuilder(title: "SHNDStuffs",
desc: "Custom Title View",
titleFont: UIFont(name: "Papyrus", size: 18)!,
descFont: UIFont(name: "Kailasa", size: 10)!,
titleTextColor: .purple,
descTextColor: .black)
SHNDNavigationCustomTitleView(builder: navTitleBuilder)
}
```

![shndnavcustomtitleview](https://user-images.githubusercontent.com/34839080/50560864-22764d80-0d1a-11e9-8ed5-51e500ead09f.png)

so simple, right?! 😋😋

# SHNDButton After Tap Animation

if you wanna get an animation(shake, pulsate or flash) after you tapped the button :

```Swift
@IBAction func buttonPressed(_ sender: SHNDButton) {

let animationElements = AnimationElements(duration: 0.1,
repeatCount: 3,
autoreverses: true,
animationMode: .shake)
sender.SHNDButtonAnimation(animationElements: animationElements)
}
```

# SHNDShimmerLabel
Shimmer ,Shimmer ,Shimmer 😄, so simple and awesome as it should to be 😉:

```Swift

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)

let builderObject = ShimmerObject.init(text: "shndRS",
font: UIFont(name: "Papyrus", size: 73)!,
textAlignment: .center, animationDuration: 2,
frame: CGRect(x: 0, y: 0, width: view.frame.width, height: 400),
parentView: view,
mainLabelTextColor: .orange,
maskLabelTextColor: .purple)

SHNDShimmerFactory.create(builder: builderObject)
}

```

And this is how it looks:

![shndshimmer](https://user-images.githubusercontent.com/34839080/50724114-444a4880-10fd-11e9-8168-7eb1f75c7130.gif)

# SHNDView, SHNDButton, SHNDImageView, SHNDTextField

For using SHNDView, SHNDButton, SHNDImageView just put one of these classes into subclass of your objects, and that's set... you have AWESOME features in your NavigationInspector

![shndviewimage](https://user-images.githubusercontent.com/34839080/50561395-7c2d4680-0d1f-11e9-981a-be082bd8335d.png)

# SHNDDynamicGradientView

Have you ever seen Instagram login/sign up page Dynamic Gradient View? Well let me give you some good news, i've got something for you fellas here in SHNDStuffs that you can have that animation in your app, it's quite simple:

```Swift

let object = SHNDDynamicGradientViewObject.init(colorArray: colorArray,
duration: 8,
shndView: gradientView)

SHNDDynamicGradientView(builder: object).animate()

```
ps: and colorArray is an array of UIColor tuple like this:

```Swift
var colorArray:[(firstColor:UIColor, secondColor:UIColor)] = []
```
go and append whatever colors you want into it:

```Swift
colorArray.append((firstColor: .purple, secondColor: .gray))
colorArray.append((firstColor: .red, secondColor: .blue))
colorArray.append((firstColor: .orange, secondColor: .brown))
```
and now you have it 😉

## Requirements

iOS 9.0+


Xcode 10.0


Swift 4.0 or later

## Installation

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

```ruby
pod 'SHNDStuffs'
```

## Author

sahandraeisi1994@gmail.com, sahandraeisi@yahoo.com

## License

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