Code Monkey home page Code Monkey logo

fastui's People

Contributors

muizidn avatar

Stargazers

 avatar

Watchers

 avatar

fastui's Issues

Enable Swift Package Manager

My first concern is to enable documentation generation using Linux machine #16
I don't want to waste their resource ๐Ÿ˜ฌ

Remove ViewDSL

As we don't really need ViewDSL in user facing API, we can safely remove them. It's better to implement inside the framework

Get rid off `configure`

func configure is just a simple helper where direct method call to the api's causes confusion to the Swift compiler.

You may want to check it with

VStack {
  HStack()
    .foregroundColor(.blue)
    .flex_height(100)
}
.foregroundColor(.cyan)

Code above (with more view stacks being added) intermittently causes compiler to spits ambiguity error without clear direction to where the confusion occurs.

Sometimes, it can be resolved by switching the order of method call. Sure, it is very bad indeed. Because it hides the real problem and it will breaks soon. Once you change a code, it maybe won't compile again.

And also, the compiler seems to be confused and failed to interpret expression which normally will not happen. This is being investigated whether the source of problem is the lack of some keyword (because we can't use it) which results the abuse of protocol or the problem lies in the compiler itself.

Screen Shot 2020-01-27 at 17 26 16

Until the real fix shows up, we advice to use this function to configure SomeView instance. And yeah, this is the main source of @discardableResult attribute in all methods.

Merge FastUIKit framework

The use of FastUIKit framework is to provide UIKit-subclasses that match the actual code description. This subclass will shows up in the Xcode view debugger hierarchy and we expect the there's no difference between the actual code and those that appear in the debugger navigator.

FastUI

Screen Shot 2020-01-28 at 08 56 51

FastUIKit Xcode Debugger Navigator

Screen Shot 2020-01-28 at 08 57 56

If it is possible to govern how Xcode display those classes, we can merge them to the main framework.

Uncompleted API

Most interface are implemented for testing purpose. So most of them aren't completed yet.
Please file issues and if possible, your PR to complete those API's

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.