MisterFusion for iOS

MisterFusion makes more easier to use AutoLayout in Swift & Objective-C code.

MisterFusion has three features, in comparison with other Swift AutoLayout DSL.

  1. Constraints to superview is able to be written in less code than other DSL.
    ===Example=============================
    let view = UIView()
    self.view.addLayoutSubview(view, andConstraints:
        view.Top |+| 10,
        view.Right |-| 10,
        view.Left |+| 10,
        view.Bottom |-| 10
    )
    =======================================
  2. It enables to use in Objective-C with "#import <MisterFusion/MisterFusion-Swift.h>".
  3. In addition, it enables to use "dot chaining" in Objective-C.
    ===Example===============================
    UIView *view = [UIView new];
    [self.view addLayoutSubview:view andConstraints:@[
        view.Top.Constant(10.0f),
        view.Right.Constant(-10.0f),
        view.Left.Constant(10.0f),
        view.Bottom.Constant(-10.0f)
    ]];
    ========================================

License: MIT

Language: Swift

Platform: iOS

Sponsored with ❤️ by Instabug
Instabug: Understand how your app is doing with real-time contextual insights from your users
Instabug

Get all the logs you need and fix bugs, crashes, and other issues in minutes instead of days. With Instabug you will automatically receive device data, network logs, and reproduction steps with every bug and crash report. It only takes a line of code to integrate and is perfect for teams that are now working remotely. See more detailed features comparison and try Instabug for free here.