Coder Social home page Coder Social logo

uicreator's Issues

Support supplementary view in collections

ListManager by default implements the UICRow, UICSection, UICFooter and UICHeader components. They are used in list views and collection may only have UICSection, UICSupplementary as header and UICRow.

Some questions

Hi,

  • Is there a way to use some "dynamics" properties for layouting a view ? Like a position or size ? Something like Relay ? It's maybe something to do with dynamicProperty(_:) ?
  • It will be fine to have a "facilities" to add a UIView to a UICView instead of using a UICViewRepresentable class, which is overkill for some simple UIView to add
  • Do you have a "how to use" for dynamicProperty(_:) ? It will be fine to update the sample code with some features

BTW, thanks ! :)

Refactor declarative collection layout

The actual collection layout respect the flow layout and this breaks the layout by having groups of rows oriented vertically or horizontally. The flow layout only accept displaying cells oriented by scroll direction.

The idea is to have this behavior:

A C D
B E F

In this scenario, we have two major groups, the first one oriented in vertical with width equals to 1/3 of supergroup width and height equals to 1 of supergroup height. The cells are limited by 2 and each one has 1 of width and 1/2 of height.

In the second group, that is oriented in horizontal has 2/3 of width and 1 of height, the cell items are limited by 4 and each one should have 1/2 of height and weight.

Question about access

Hi,

As i can see, the lib is near (or already) mature ? Congrats !

I have a question:

Is there a way to access / assign to an UI object, like an UILabel ?
I'm using a declarative UI lib where you can assign an object, like:

let myLabel: UILabel!

(...)

view = LMScrollView(isFitToWidth: true,
    backgroundColor: UIColor.white,
    UILabel(text: "Hello World", textAlignment: .center) { self.myLabel = $0 } 
)

If it's not possible, how access to UI objects created ? Is it the same as swiftUI ?

Thanks

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.