Skip to content

RayPS/Spring-Visualizer

Repository files navigation

Spring Visualizer

Spring Animation Curve Visualizer


This project mainly shows you how i built iOS App & macOS App using FramerStudio, Xcode and Gulp.

Spring Visualizer 2.0 Spring Visualizer Legacy Spring Visualizer for Mac

[App Store]


[App Store]


[Mac App Store] / [Zip]

How to run

First for all, you need to install all dependencies.

$ npm install

Then

$ gulp

Open project.framer in FramerStudio, you might want to edit or preview the framer project.

Hit ⌘+S when you're done.

Open Spring Visualizer App.xcodeproj in Xcode.

Hit ⌘+R to run the App in Simulator,

if you don't see the Mac App scheme, just add a new scheme:

How it works

Gulp will keep watching app.coffee.

After app.cofee is modified in FramerStudio or any text editor,

the necessary files will be copied to HTML/.

Then use WKWebView to load HTML/index.html.

ViewController.swift

override func viewDidLoad() {
    super.viewDidLoad()
    
    let webView = WKWebView(frame: view.frame)
    view.addSubview(webView)
    webView.backgroundColor = view.backgroundColor
    
    let path = Bundle.main.path(forResource: "index", ofType: "html", inDirectory: "HTML")!
    let url = URL(fileURLWithPath: path)
    
    webView.loadFileURL(url, allowingReadAccessTo: url)
    webView.scrollView.bounces = false
}

Known issues

I don't know how to disable bounce scrolling for WKWebView in macOS, WKWebView.scrollView is documented but not found in Cocoa.

If you have any idea, please send pull requests or open an issue to let me know!

Conclusions

Every time I showed my Framer prototypes to my friends they never realized that was a prototype. Even after I told them that was just a prototype they still didn't believe. It runs smoothly just like a real App. In a certain sense prototypes are now productions. We have Utils.domLoadDataSync to access any APIs, for example here is a very simple Dribbble Client I made in Framer. Thanks to Webkit!

Hey designers, go make your ideas come true! :)

About

Spring Animation Curve Visualizer for FramerJS

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •