More README formatting

This commit is contained in:
Ryan McGrath 2019-05-24 21:57:37 -07:00
parent c7ef19a943
commit 67a0dc6e46
No known key found for this signature in database
GPG key ID: 811674B62B666830
2 changed files with 6 additions and 7 deletions

View file

@ -6,9 +6,7 @@ Alchemy - A Rust GUI Framework
[![Gitter](https://badges.gitter.im/alchemy-rs/alchemy.svg)](https://gitter.im/alchemy-rs/alchemy)
[![Crates.io](https://img.shields.io/crates/v/alchemy.svg)](https://crates.io/crates/alchemy)
API Documentation: [latest release](https://docs.rs/alchemy) [trunk branch](https://docs.alchemy.rs)
[Homepage](https://alchemy.rs)
[Homepage](https://alchemy.rs) • [API Documentation](https://docs.rs/alchemy/)
Alchemy is a Rust GUI Framework, backed by native widgets on each platform it supports, with an API that's a blend of those found in AppKit, UIKit, and React Native. It aims to provide an API that feels at home in Rust, while striving to provide a visual appearance that's easy to scan and parse. It does not, and will never, require nightly. It's still early stages, but feedback and contributions are welcome.

View file

@ -218,6 +218,8 @@ fn find_and_link_layout_nodes(parent_node: &mut VirtualNode, child_tree: &mut Vi
/// Recursively constructs a Component tree. This entails adding it to the backing
/// view tree, firing various lifecycle methods, and ensuring that nodes for layout
/// passes are configured.
///
/// In the future, this would ideally return patch-sets for the backing layer or something.
fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) -> Result<VirtualNode, Box<Error>> {
let instance = (new_element.create_component_fn)();
@ -240,6 +242,8 @@ fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) ->
component.render(&new_element.props)
};
// instance.get_snapshot_before_update()
new_element.instance = Some(instance);
let mut children = match rendered {
@ -298,9 +302,6 @@ fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) ->
component.component_did_mount(&new_element.props);
}
// instance.get_snapshot_before_update()
//renderer.component_did_mount(&new_element.props);
Ok(new_element)
}