Skip to content

Instantly share code, notes, and snippets.

@alwold
Created September 2, 2014 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alwold/6a6e330bdeb59aadd975 to your computer and use it in GitHub Desktop.
Save alwold/6a6e330bdeb59aadd975 to your computer and use it in GitHub Desktop.
//
// CPTMutablePlotRange+SwiftCompat.m
// CorePlotTest
//
// Created by Al Wold on 8/29/14.
// Copyright (c) 2014 Al Wold. All rights reserved.
//
#import "CPTMutablePlotRange+SwiftCompat.h"
@implementation CPTMutablePlotRange (SwiftCompat)
- (void)setLengthFloat:(float)lengthFloat
{
NSNumber *number = [NSNumber numberWithFloat:lengthFloat];
[self setLength:[number decimalValue]];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment