Giter Club home page Giter Club logo

wifiview's Introduction

WifiView

CI Status CocoaPods Version Carthage Compatible License Platform Swift 5.1

WifiView is animateable UIView that can significantly enhance your users’ experiences and set your app apart from the rest of the pack.


It is build using CABasicAnimation, CAKeyFrameAnimation and CAShapeLayer through UIBezierpath. Its fun to play with CoreGraphics.It starts slow and By the end, you’ll be able to create stunning graphics for your apps.



Requirements

  • iOS 11.0+ / Mac OS X 10.9+ / watchOS 2.0+ / tvOS 9.0+
  • Xcode 8.0+

Installation

To integrate WifiView into your Xcode project using CocoaPods, specify it in your Podfile:

use_frameworks!

pod 'WifiView'

Then, run the following command:

$ pod install

To integrate WifiView into your Xcode project using Carthage, specify it in your Cartfile:

github "jwd-ali/WifiView"

Prerequisites

  • OSX

Update Package.swift

To integrate WifiView in your project, add the proper description to your Package.swift file:

// swift-tools-version:5.0
import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/jwd-ali/WifiView.git")
    ],
    targets: [
        .target(
            name: "YOUR_TARGET_NAME",
            dependencies: ["WifiView"]
        ),
        ...
    ]
)

Manually

If you prefer not to use a dependency manager, you can integrate WifiView into your project manually.

  • Add sources into your project:
    • Drag Sources

Usage

If you are using any dependency manager (pods , carthage , package manager)to integrate WifiView. Import WifiView first:

import WifiView

And for Manuall install you dont need to import anything

  • Init your view with WifiView same as you initialize default UIView:
  let wifiView = WifiView()

Animation functions

wifiView.startAnimating()

This function will animate once .. Every startAnimating function also have completion block

wifiView.startAnimating(repeatCount: .infinity)

This function will run animation in loop until you stop it

wifiView.startAnimating(repeatCount: 2, fallback: .twoSignals)

This function will run twice and then fallback to two signals for signal strength we have enum with two cases

enum SignalStrength: Int {
    case twoSignals
    case weak
  }

See the Demo Xcode project its easy to understand with proper comments on properties .. write me if you didn't get anything [email protected]

Congratulations! You're done.

Contributing

I’d love to have help on this project. For small changes please open a pull request, for larger changes please open an issue first to discuss what you’d like to see.

License

WifiView is under MIT. See LICENSE file for more info.

wifiview's People

Contributors

jawad-ext avatar jwd-ali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

israkul9 nomi-ngj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.