Giter Site home page Giter Site logo

swiftysports's Introduction

SwiftySports

βš½οΈπŸ€πŸˆβšΎοΈπŸŽΎπŸ’

A collection of scalable UIViews displaying top down drawings of various fields/arenas/courts.

Slowly adding in some of the most popular sports before putting together into a framework.

πŸ€” Goals/Thoughts

  • Learn more about drawing views.
  • Make something scalable
  • Sports are fun to code
  • Create something for CocoaPods

Inspired by HockeyView

πŸ”¨ Installation Instructions

🚨Work in progress til done.🚨

  1. Make UIView any width and set ratio based on table below. ratio of 40:17
  2. Make class your desired SwiftySport view.
  3. Drag outlet from Storyboard into your ViewController.
  4. Add SwiftySport.dataSource = self and SwiftySport.drawToScale() to your viewDidLoad().
  5. Set width in dataSource method

SwiftySport view's themes can be changed as vars of the view. See tables below for more info.

Ratios

I need to rework this to be more sectional. Each rink/court/field should have its own section to discuss theming, modifications, and unique featuers.

Type Ratio
Hockey rink 40:17
Tennis Court 13:6
Soccer Field 105:68

Themes

IceRinkView TennisCourtView SoccerFieldView
iceColor courtColor fieldColor
redLineColor lineColor lineColor
blueLineColor
boardColor
creaseColor

πŸ“œ Todos

Major
  • Make into Framework
  • Set up CocoaPods
Main
  • Add tennis court
  • Add soccer field
  • Add football field
  • Add basketball court
  • Add baseball field...

swiftysports's People

Contributors

tguidon avatar

Stargazers

Akshay Easwaran avatar Addison Webb avatar  avatar Jeremy Carbaugh avatar

Watchers

 avatar

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.