Swizzlean alternatives and similar libraries
Based on the "Tools" category.
Alternatively, view Swizzlean alternatives based on common mentions on social networks and blogs.
-
Awesome-Design-Tools
The best design tools and plugins for everything ๐ -
R.swift
Strong typed, autocompleted resources like images, fonts and segues in Swift projects -
SwiftGen
The Swift code generator for your assets, storyboards, Localizable.strings, โฆ โ Get rid of all String-based APIs! -
Lona
A tool for defining design systems and using them to generate cross-platform UI code, Sketch files, and other artifacts. -
Insanity
Meta-programming for Swift, stop writing boilerplate code. -
Xcodes.app
The easiest way to install and switch between multiple versions of Xcode - with a mouse click. -
Tweaks
An easy way to fine-tune, and adjust parameters for iOS apps in development. -
FBSimulatorControl
idb is a flexible command line interface for automating iOS simulators and devices -
SourceKitten
An adorable little framework and command line tool for interacting with SourceKit. -
ProvisionQL
Quick Look plugin for mobile apps and provisioning profiles -
GDPerformanceView-Swift
Shows FPS, CPU and memory usage, device model, app and iOS versions above the status bar and report FPS, CPU and memory usage via delegate. -
LicensePlist
A license list generator of all your dependencies for iOS applications -
AppDevKit
AppDevKit is an iOS development library that provides developers with useful features to fulfill their everyday iOS app development needs. -
DBDebugToolkit
Set of easy to use debugging tools for iOS developers & QA engineers. -
ThisCouldBeUsButYouPlaying
:black_joker: Generate Swift Playgrounds for any library. -
Laurine
Laurine - Localization code generator written in Swift. Sweet! -
iSimulator
iSimulator is a GUI utility to control the Simulator, and manage the app installed on the simulator. -
Blade
Better asset workflow for iOS developers. Generate Xcode image catalogs for iOS / OSX app icons, universal images, and more. -
ViewMonitor
ViewMonitor can measure view positions with accuracy. -
Rugby
๐ Cache CocoaPods for faster rebuild and indexing Xcode project. -
Realm Browser
DEPRECATED - Realm Browser for Mac OS X has been replaced by realm-studio which is cross platform. -
Cookiecutter
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file -
Swift Package Index
The Swift Package Index is the place to find Swift packages! -
WatchdogInspector
Shows your current framerate (fps) in the status bar of your iOS app -
SuperDelegate
SuperDelegate provides a clean application delegate interface and protects you from bugs in the application lifecycle -
abandoned-strings
Command line program that detects unused resource strings in an iOS or OS X application. -
fastlane-plugin-appicon
Generate required icon sizes and iconset from a master application icon. -
AVXCAssets-Generator
AVXCAssets Generator takes path for your assets images and creates appiconset and imageset for you in just one click
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Swizzlean or a related project?
README
Swizzlean
A quick and "lean" way to swizzle methods for your Objective-C development needs.
Adding Swizzlean to your project
Cocoapods
CocoaPods is the recommended way to add Swizzlean to your project.
- Add Swizzlean to your Podfile
pod 'Swizzlean'
. - Install the pod(s) by running
pod install
. - Add Swizzlean to your files with
#import <Swizzlean/Swizzlean.h>
.
Carthage
You can also use Carthage to manually add the Swizzlean dynamic framework to your project.
- Add
github "rbaumbach/Swizzlean"
to your Cartfile. - Follow instructions to manually add Swizzlean dynamic framework to your project.
Clone from Github
- Clone repository from github and copy files directly, or add it as a git submodule.
- Add Swizzlean and RuntimeUtils (.h and .m) files to your project.
How To
- Create an instance of Swizzlean passing in the class of the methods you want to swizzle.
- Call
swizzleInstanceMethod:withReplacementImplementation:
for an instance method passing in the selector of the method to be swizzled with the replacement implementation. When passing in the replacement implementation block, the first parameter is alwaysid _self
(pointer to the 'Class' being swizzled), and the followed by any other parameters for the method being swizzled. - Call
swizzleClassMethod:withReplacementImplementation:
for a class method passing in the selector of the method to be swizzled with the replacement implementation. - You can check the current instance/class method that is swizzled by using the
currentInstanceMethodSwizzled
andcurrentClassMethodSwizzled
methods. - The status of the swizzled methods can be seen by calling
isInstanceMethodSwizzled
andisClassMethodSwizzled
. - Use reset methods to unswizzle the instance/class methods that are currently being swizzled.
- Methods are automatically reset when the Swizzlean object is deallocated. If you would like to
keep the methods swizzled after
dealloc
is called, set the propertyresetWhenDeallocated = NO
.
Example Usage
Swizzlean *swizzle = [[Swizzlean alloc] initWithClassToSwizzle:[NSString class]];
[swizzle swizzleInstanceMethod:@selector(intValue) withReplacementImplementation:^(id _self) {
return 42;
}];
NSString *number7 = @"7";
NSLog(@"The int value for number7 is: %d", [number7 intValue]);
// returns - The int value for number7 is: 42
[swizzle resetSwizzledInstanceMethod];
NSLog(@"The int value for number7 is: %d", [number7 intValue]);
// returns - The int value for number7 is: 7
Testing
This project has been setup to use fastlane to run the specs.
First, run the setup.sh script to bundle required gems and Cocoapods when in the project directory:
$ ./setup.sh
And then use fastlane to run all the specs on the command line:
$ bundle exec fastlane specs
Version History
Version history can be found on releases page.
Suggestions, requests, feedback and acknowledgements
Thanks for checking out Swizzlean for your swizzling needs. Any feedback can be can be sent to: [email protected].
Thanks to the following contributors for keeping Swizzlean Swizzletastic: Erik Stromlund & Aaron Koop
*Note that all licence references and agreements mentioned in the Swizzlean README section above
are relevant to that project's source code only.