Giter Club home page Giter Club logo

gaugekit's Introduction

Version Build Status Carthage compatible language License Platform

GaugeKit

##Kit for building custom gauges + easy reproducible Apple's style ring gauges.

->

Example Usage

Open GaugeKit.xcworkspace and change the scheme to 'Example' and run Example project.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

GaugeKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod "GaugeKit"

Carthage

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

github "skywinder/GaugeKit" >= 0.2

Embedded Framework

Add GaugeKit as a submodule by opening the Terminal, cd-ing into your top-level project directory, and entering the following command:

$ git submodule add https://github.com/skywinder/GaugeKit.git

Manually

If you prefer not to use either of the aforementioned dependency managers, you can simply add swift files into your project manually.

Features ✨

  • Flexible and high-customizible gauges
  • Auto-resized views
  • Support @IBInspectable & @IBDesignable
  • Written with vanilla Swift flavor 🐀

Usage 🌈

  • Put on storyboard UIView, and set them class Gauge and module GaugeKit:

GaugeKit

  • Select type of gauge (property type in class or gaugeTypeInt for changes directly in Interface builder)

     - case `Circle`
     - case `Left`
     - case `Right`
     - case `Line`
    

##Example:

GaugeKit GaugeKit

###IB Example:

GaugeKit

Requirements

  • iOS SDK 7.0 or later (iOS SDK 8.0 if you use it as a Framework)
  • Swift 1.2 and Xcode 6.3 or later
  • Swift 2.x.x is also supported!

Communication πŸ”ˆ

Bug reports, feature requests, patches, well-wishes are always welcome!

Contributing :octocat:

I'd love to see your ideas for improving this library.

The best way to contribute is by submitting a pull request.

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

License

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

gaugekit's People

Stargazers

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

Watchers

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

gaugekit's Issues

Add ability to add gradient colors for Circle gauge.

It's subtask of #12.

I start working on it in gradientCircle branch, but implementation is not quite easy and still have issues.

Also - it looks not very well without overlapping (the border of startColor and endColor).
I want to find solution, that can fix this and #12 issue at once.
screen shot 2015-08-03 at 09 29 08

Weekly Digest (19 January, 2020 - 26 January, 2020)

Here's the Weekly Digest for skywinder/GaugeKit:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please πŸ‘€ Watch and ⭐ Star the repository skywinder/GaugeKit to receive next weekly updates. πŸ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. πŸ“†

IBDesignable build fails when making a UIView of class Gauge

I am just trying to get a "Hello World" with GaugeKit. Creating a CocoaPod by following guide at (https://developerslogblog.wordpress.com/2017/05/14/swiff-3-reusable-components-using-xib-files-and-the-interface-builder/)

When I add a UIView to my storyboard (or .xib) that is IBDesignable I get "build failed."

screen shot 2018-01-20 at 11 53 26 am

When adding to the storyboard and attempting to build I see a #selector issue: "Argument of '#selector' refers to instance method 'updateProgress' that is not exposed to Objective-C"

screen shot 2018-01-20 at 11 51 11 am

Running Xcode 9.2, Swift 3.x. My project commit that holds this error: (jfosterdavis/ZMUtilityAppFramework@f059d2b)

Weekly Digest (5 January, 2020 - 12 January, 2020)

Here's the Weekly Digest for skywinder/GaugeKit:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there was 1 stargazer.
⭐ DanielPetelin
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please πŸ‘€ Watch and ⭐ Star the repository skywinder/GaugeKit to receive next weekly updates. πŸ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. πŸ“†

Arrow indicator for half gauge chart?

Instead of displaying the background color with opacity and the current value without opacity, I would like to display the whole gauge chart with gradient colors, and an arrow indicator of the current value. For example, if I have 0 to 10, and the current value is 7, I would like to indicate the value of 7 with an arrow indicator. Any advice on that?

apps 219 1d604ee5-95ff-40af-9a99-e465be8ff935 0643708b-62c6-4a99-86e0-b47cec4a76b8 65a07479-d5dc-4d45-ad18-07485d8a0301

Implement a maxValue

Hey, first of all thank you for this project.

What I need you to help me think is how can I implement a maxValue feature like a UISlider so if I have a timer it goes and finish at the same time as the timer or if there's a way already can you be so kind to explain how to implement it because rate works perfectly but I need to increment de Gauge proportionally a Timer I have.

Let me know if you need more context and thank you very much for your help.

View has lost track of its superview

Hi

Great project guys!!!

I am trying to add labels of values on the gauge, but when I add the label I got next error:

View has lost track of its superview, most likely through unsupported use of CALayer API on the view's layer. If this isn't a crash yet, it will be in the near future.

Any suggestions?

iOS 10 Beta Support

Hi,
I would really like to use GuageKit in an upcoming project, as it will make my life much easier in designing some cool gauges. Tried importing it into my new project and there are 56 errors, mostly related to changes Apple made in Swift 3. Do you have plans on updating GuageKit for iOS 10? Is there any plans for GuageKit on WatchOS 3? Do you have a version you are testing for iOS 10 Beta, that I may be able to get access to early? Thank you very much in advance. I have been looking all over for this type of Pod, and this helps a lot, assuming you plan to update it for iOS10.

start and stop points

Is it possible to smaller arcs? I want to try to do a series of arcs on the same path. First segment say 10degrees, then a gap, then a new segment of 40degress, then a small gap and then another segment.

Or simply point me to how to creat say a 20 degree arc. Both ends need to be rounded so I can’t just turn it white for thev160 degrees left.

Thank you

Weekly Digest (12 January, 2020 - 19 January, 2020)

Here's the Weekly Digest for skywinder/GaugeKit:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please πŸ‘€ Watch and ⭐ Star the repository skywinder/GaugeKit to receive next weekly updates. πŸ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. πŸ“†

Build error, GaugeKit.bundle: No such file or directory

Hi, I use Cocoapods for installation.

After pod install, I build my project on XCode, I got an error below.

Do you know what wrong with it?

CpResource /Users/letusfly95/Library/Developer/Xcode/DerivedData/checkin.washlet-fbniuwvatsbwpudjimbzcarqpbbt/Build/Products/Debug-iphonesimulator/GaugeKit/GaugeKit.bundle /Users/letusfly95/Library/Developer/Xcode/DerivedData/checkin.washlet-fbniuwvatsbwpudjimbzcarqpbbt/Build/Products/Debug-iphonesimulator/GaugeKit/GaugeKit.framework/GaugeKit.bundle
    cd /Users/letusfly95/WORK/checkin.washlet/Pods
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/letusfly95/Library/Developer/Xcode/DerivedData/checkin.washlet-fbniuwvatsbwpudjimbzcarqpbbt/Build/Products/Debug-iphonesimulator/GaugeKit/GaugeKit.bundle /Users/letusfly95/Library/Developer/Xcode/DerivedData/checkin.washlet-fbniuwvatsbwpudjimbzcarqpbbt/Build/Products/Debug-iphonesimulator/GaugeKit/GaugeKit.framework
error: /Users/letusfly95/Library/Developer/Xcode/DerivedData/checkin.washlet-fbniuwvatsbwpudjimbzcarqpbbt/Build/Products/Debug-iphonesimulator/GaugeKit/GaugeKit.bundle: No such file or directory

My Podfile is below.

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
# use_frameworks!
#
source 'https://github.com/CocoaPods/Specs.git'

target 'checkin.washlet' do

pod 'LTMorphingLabel'
pod 'YALSideMenu'

use_frameworks!

pod 'GaugeKit'

end

target 'checkin.washletTests' do

end

target 'checkin.washletUITests' do

end

How run exaple

Hey! How can i run Example on xcode 8? I have many errors when i try.

Support for iOS 12 and Xcode 10 beta

I know that is too early to ask, but we are with a little problem on GaugeKit in iOS 12 using Xcode 10 beta. The GaugeKit was working fine in my app until the last version, but when I updated to iOS 12 and Xcode 10, the app doesn't compile anymore.

This is what I receive from xcode.
Showing Recent Messages
πŸ‘Ž Multiple commands produce '/Users/…/Library/Developer/Xcode/DerivedData/…/Build/Products/Debug-iphoneos/GaugeKit/GaugeKit.framework/Info.plist':

  1. Target 'GaugeKit' has copy command from '/Users/…/Desktop/…/Pods/GaugeKit/GaugeKit/Info.plist' to '/Users/…/Library/Developer/Xcode/DerivedData/…/Build/Products/Debug-iphoneos/GaugeKit/GaugeKit.framework/Info.plist'
  2. Target 'GaugeKit' has process command with input '/Users/…/Desktop/…/Pods/Target Support Files/GaugeKit/Info.plist'

Could you help me?

Change Color programmatically for dynamically created gauge.

Hi I am displaying the gauge in CellForRowAtIndexPath and I tried changing the color of gauge depending on its value this is my actual code of doing it

if result! > 0 && result! < 26 {
cell.gauge.startColor = UIColor.redColor()
cell.gauge.endColor = UIColor.redColor()
} else if result! > 25 && result! < 51 {
cell.gauge.startColor = UIColor.orangeColor()
cell.gauge.endColor = UIColor.orangeColor()
} else if result! > 50 && result < 76 {
cell.gauge.startColor = UIColor.yellowColor()
cell.gauge.endColor = UIColor.yellowColor()
} else {
cell.gauge.startColor = UIColor.greenColor()
cell.gauge.endColor = UIColor.greenColor()
}

but it doesn't seem to work it keeps displaying the color i set in mainStoryBoard. The if condition works fine it reads the code in each scenario but it doesn't render the color I need.

Question: App Store Review

Have you uploaded an App to the App Store with the success using Gauges similar to Activity app? I was wondering if the gauge in the second example (which looks pretty similar to the Activity native app) could be reject by Apple for mimicking iOS behaviour.

Runtime error in Swift 3

I was migrating my code from Swift 2.3 to Swift 3.0. Everything was working fine in Swift 2.3, but after updating GaugeKit to 0.4.0, I got this runtime error stating "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber count]: unrecognized selector sent to instance 0xb000000000000003'". I am using Gauge as drop-in in storyboard.

This behaviour is verified as after removing GaugeKit, everything ran smoothly.

Set rate without animation

Hi!

Is there anyway to set the rate without the gauge animating from the previous rate to the new one?

I'm asking this because, in my project, I'll be using the gauge multiple consecutive times, from 0 to X and when it reaches X I set it back to 0. However, as it animates the transition from X to 0 it doesn't looks to good.

Thanks for the work on the kit btw!

Swift 3 support

Is anyone working on Swift 3 support? If not I am ready to jump on this task.

CocoaPods failed: required code signature missing for 'GaugeKit.framework'

Hi,
I would love to use your beautiful control, but I can't get it to work. I used CocoaPods for importing it, then add @objc in the method requested for swift 4 support. But then I get this error:

../Main.storyboard: error: IB Designables: Failed to render and update auto layout status for ProvaViewController (Rn0-yv-HO4): dlopen(GaugeKit.framework, 1): no suitable image found. Did find: GaugeKit.framework: required code signature missing for 'GaugeKit.framework'

Can you help me please?

Add more Collaborators to GitHub Changelog Generator

I want other people to feel like they own GaugeKit, too, so it helps in the long run.

What I'm looking for is people who can:

  • Reply to questions.
  • Help diagnose/fix issues people have.
  • Help form a roadmap for future releases.

All when you have time and feel like it. It's not meant to be a burden.

Don't ever feel bad for not contributing to open source. β€”@alloy

Thanks to @searls for the push to do this by this talk.

If you're interested in helping out – when it's convenient for you – comment on this issue and I'll add you as a committer with push access.

Cheers! πŸ˜„ πŸ’» 🌍

/cc @arturgrigor @sinanku @kaizensoze @chadedrupt @lammertw @f8th @volkdmitri @chris-pilcher

WatchKit

How would you go about using this as a WKInterfaceObject?

I would like to animate the gauge to position

I am building a speedometer and I'm using Gauge View to accomplish this. I would like to make the view transition from one point to the next smoothly. How would I be able to accomplish this?

Weekly Digest (21 December, 2019 - 28 December, 2019)

Here's the Weekly Digest for skywinder/GaugeKit:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, 4 pull requests were created, updated or merged.

MERGED PULL REQUEST

Last week, 4 pull requests were merged.
πŸ’œ #74 Activating Open Collective, by monkeywithacupcake
πŸ’œ #71 Support for Xcode 10 and Swift 4.2, by pacu
πŸ’œ #68 Fix color blending, by jpalten
πŸ’œ #67 🏎 Migrate Swift 4.2, by cHaLkdusT


COMMITS

Last week there were 25 commits.
πŸ› οΈ update versions by skywinder
πŸ› οΈ remove deprecated by skywinder
πŸ› οΈ Merge branch 'release/0.5.0' by skywinder
πŸ› οΈ Update podspec to version 0.5.0 by skywinder
πŸ› οΈ Merge pull request #68 from jpalten/fix/gauge-color-blending Fix color blending by skywinder
πŸ› οΈ rename by skywinder
πŸ› οΈ Merge branch 'develop' into fix/gauge-color-blending by skywinder
πŸ› οΈ fix readme by skywinder
πŸ› οΈ fix all warrnings πŸŽ‰ by skywinder
πŸ› οΈ update to swift 5 by skywinder
πŸ› οΈ Merge branch 'feature/Xcode10' into develop by skywinder
πŸ› οΈ fix SWIFT_SWIFT3_OBJC_INFERENCE by skywinder
πŸ› οΈ revert CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED flag change by pacu
πŸ› οΈ Revert this values by pacu
πŸ› οΈ revert Xcode arbitrary property modifications. by pacu
πŸ› οΈ Merge branch 'master' into develop by skywinder
πŸ› οΈ update readme by skywinder
πŸ› οΈ Merge pull request #74 from opencollective/opencollective Activating Open Collective by skywinder
πŸ› οΈ Merge branch 'develop' into feature/Xcode10 by skywinder
πŸ› οΈ Merge branch 'master' into develop by skywinder
πŸ› οΈ Merge pull request #67 from cHaLkdusT/migrate-swift-4.2 🏎 Migrate Swift 4.2 by skywinder
πŸ› οΈ Merge branch 'swift-migration' into migrate-swift-4.2 by skywinder
πŸ› οΈ autofix all the issues by skywinder
πŸ› οΈ fix to 4.2 in settings by skywinder
πŸ› οΈ xcode autoupdates by skywinder


CONTRIBUTORS

Last week there were 2 contributors.
πŸ‘€ skywinder
πŸ‘€ pacu


STARGAZERS

Last week there was 1 stargazer.
⭐ Sgkhour
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please πŸ‘€ Watch and ⭐ Star the repository skywinder/GaugeKit to receive next weekly updates. πŸ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. πŸ“†

Weekly Digest (26 January, 2020 - 2 February, 2020)

Here's the Weekly Digest for skywinder/GaugeKit:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there was 1 stargazer.
⭐ sjackk
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please πŸ‘€ Watch and ⭐ Star the repository skywinder/GaugeKit to receive next weekly updates. πŸ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. πŸ“†

Circle type gauges not respecting endColor

When using a circle gauge (type4) the end color is ignored. This can be seen in the example app where the innermost gauge has a start and end color but is locked to the start color.

This may be intentional since the ends coming together is probably strange with two colors but I wanted to confirm before we changed our UX.

This tools is so great. Thanks!

Gradient for Line Gauge not presented in devices

Line Gauge with gradient look correct in Xcode, but not presented in simulator (green only) and device (red only). Can't figure out why. Looks like Apple's bug πŸ”¨

Xcode:

screen shot 2015-07-01 at 15 59 03

Simulator:

screen shot 2015-07-01 at 15 57 59

Device:

screen shot 2015-07-01 at 16 01 46

UIView.animateWithDuration ignoring duration

I used the code below, but it's completely ignoring the duration.
Is this a bug or am i doing something wrong?

UIView.animateWithDuration(60.0, animations: {
    self.gaugeView.rate = rate
})

Progress over 100% - use gradient?

This works perfectly for progress up to 100%. Then, it become indistinguishable from the first go-around. Is there a way to add a gradient based on progress, so that once the progress is over 100%, the gradient looks different than the gradient is overlapping, and the user can see their actual progress?

App Installation Fails - Could not inspect the application package

Hi @skywinder:

I'm trying to run Example in Xcode 9.4.1 on my iPhone 7+ (iOS 11.4.1) and I'm almost there - except I'm getting the error "App installation failed. Could not inspect the application package." right at the last step.

Here are the messages for my iPhone from the console just before the failed installation:

  • default 14:58:58.942412 -0700 installd com.stevedancho.GaugeKit:7:5:1:1:Start : Install (New)

  • default 14:58:58.942474 -0700 installd 0x16d337000 -[MIFileManager itemDoesNotExistAtURL:]: Failed to determine if file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.UKq6gZ/extracted/Example.app/Frameworks/GaugeKit.framework/Info.plist exists: Not a directory

  • default 14:58:58.942546 -0700 installd 0x16d337000 MILoadInfoPlist: Failed to create CFBundle from URL file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.UKq6gZ/extracted/Example.app/Frameworks/GaugeKit.framework/

  • default 14:58:58.942771 -0700 assertiond Client relinquished <BKTerminationAssertion: 0x10bd417e0; "FBSApplicationTerminationAssertion" (Unconditional); 47:(null) id:…31852A229370>

  • default 14:58:58.942835 -0700 assertiond -[BKAssertion dealloc] - <0x10bd417e0>

  • default 14:58:58.943583 -0700 installd 0x16d337000 -[MIBundle _validateWithError:]: 38: Failed to load Info.plist from bundle at path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.UKq6gZ/extracted/Example.app/Frameworks/GaugeKit.framework

  • default 14:58:58.943643 -0700 installd 0x16d337000 -[MIInstaller performInstallationWithError:]: Preflight stage failed

  • default 14:58:58.965910 -0700 installd com.stevedancho.GaugeKit:7:5:2:0:Fail (End) : Install (New)

  • default 14:58:58.971078 -0700 lsd com.stevedancho.GaugeKit:5:1:2:0:MobileInstallation returned nil for file:///var/mobile/Media/PublicStaging/Example.app/

  • default 14:58:58.971290 -0700 lsd Sending applicationsDidFailToInstall: for

  • error 14:58:58.971338 -0700 routined LaunchServices observer: Apps Failed be installed:

  • error 14:58:58.971428 -0700 nsurlsessiond LaunchServices observer: Apps Failed be installed:

  • ... lots more of these type error messages: Apps Failed be installed: ...

  • default 14:58:58.972532 -0700 SpringBoard -[FBApplicationLibrary applicationsDidFailToInstall:] com.stevedancho.GaugeKit

  • error 14:58:58.972579 -0700 SpringBoard Applications did fail to install: (
    "<LSApplicationProxy: 0x1313ec3e0> com.stevedancho.GaugeKit (null) <com.stevedancho.GaugeKit :0>"
    ) (appInfos: (null))

  • default 14:58:58.972707 -0700 streaming_zip_conduit com.stevedancho.GaugeKit:5:1:2:0:_LSInstallationManager install:withError finished

  • default 14:58:58.972903 -0700 streaming_zip_conduit dispatch_source_read_socket_block_invoke:312: Failed to install application at file:///var/mobile/Media/PublicStaging/Example.app/ : Error Domain=MIInstallerErrorDomain Code=35 "Failed to load Info.plist from bundle at path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.UKq6gZ/extracted/Example.app/Frameworks/GaugeKit.framework" UserInfo={LegacyErrorString=PackageInspectionFailed, FunctionName=-[MIBundle _validateWithError:], SourceFileLine=38, NSLocalizedDescription=Failed to load Info.plist from bundle at path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.UKq6gZ/extracted/Example.app/Frameworks/GaugeKit.framework}

Any suggestions would be greatly appreciated -

compiler error

in CAShapeLayer+oval.swift

add:
import UIKit
import QuartzCore

Swift 4 support

Hello, thanks for this very useful project.
For making it compatible with Swift 4 you just needs to do the following modification :

In file Gauge+Animations.swift
the function:
func updateProgress(_ timer: Timer) -> Void
needs to have @objc to respond to the selector:
@objc func updateProgress(_ timer: Timer) -> Void

Custom shape

Hi! Is it possible to draw a gauge that is 3/4 length of circle (I see that full circle, half circle, and line shapes are available)? In code there is a .Custom GagueType enum option, so can I somehow use that?

Gauge+Animations updateProgress not exposed to Objective-C

pod spec lint

 -> ZMAppFoundation (0.1.5)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - ERROR | xcodebuild:  GaugeKit/GaugeKit/Gauge+Animations.swift:22:23: error: argument of '#selector' refers to instance method 'updateProgress' that is not exposed to Objective-C
    - NOTE  | xcodebuild:  GaugeKit/GaugeKit/Gauge+Animations.swift:32:10: note: add '@objc' to expose this instance method to Objective-C

Analyzed 1 podspec.

I have a cocoa pod that uses gauge kit as a dependency (https://github.com/jfosterdavis/ZMAppFoundation/tree/release-0.1.5). When I am doing local development I change line Gauge+Animations.swift:32:10 from:
func updateProgress(_ timer: Timer) -> Void {
to
@objc func updateProgress(_ timer: Timer) -> Void {

Display half a circle

Is it possible to create a gauge view that looks like this?

screen shot 2017-09-06 at 9 57 25 am

The circlular gauge type draws the full circle. Instead have a left/right type of gauge but horizontally?

UIAppearance not supported

Component's architecture biased to a design through Interface Builder or directly in code. There is another way of defining visual style of components which is UIAppearance. I know at least several projects where defying style directly in code and in IB is prohibited by architectural conventions. Supporting all standard ways of customization may potentially increase adoption for a component.

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.