Skip to content

Commit b365457

Browse files
author
Alex Usbergo
committed
format
2 parents 0acbd9e + 931542c commit b365457

File tree

75 files changed

+27
-11314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+27
-11314
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@
44

55
Render is a declarative library for building efficient UIs on iOS inspired by [React](https://github.com/facebook/react).
66

7+
### Disclaimer
78

8-
*Render Neutrino* is the new version of Render, re-built from the ground up ([4.* release here](https://github.com/alexdrone/Render/tree/classic))
9+
*Render* is a pretty monolithic and opinionated library.
10+
11+
I have recently been working on splitting *Render* into some smaller and more customizable modules:
12+
13+
* [CoreRender](https://github.com/alexdrone/CoreRender) More granular APIs for vdom reconciliation and layout, written in ObjC++ (*fully Swift-compatible*).
14+
* [YAS](https://github.com/alexdrone/YAS) Stand-alone YAML-based stylesheet engine.
15+
16+
17+
### Introduction
918

1019
* **Declarative:** Render uses a declarative API to define UI components. You simply describe the layout for your UI based on a set of inputs and the framework takes care of the rest (*diff* and *reconciliation* from virtual view hierarchy to the actual one under the hood).
1120
* **Flexbox layout:** Render includes the robust and battle-tested Facebook's [Yoga](https://facebook.github.io/yoga/) as default layout engine.

demo/src/components/GettingStarted.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class SimpleCounterComponent3: UIComponent<CounterState, CounterProps> {
140140

141141
// We can define a namespace for our style.
142142
enum Style {
143-
struct Palette {
143+
enum Palette {
144144
static let background: UIColor = .red
145145
static let text: UIColor = .white
146146
}

demo/src/vcs/FeedTableViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class FeedTableViewController: UITableComponentViewController, PostComponentDele
3333
/// If you'd like to have a section header, build one like so:
3434
/// - note: This is currently not supported when you have an expandable custom navigation bar.
3535
// override func viewForHeader(inSection section: Int) -> UIView? {
36-
// return UIView().install(component: context.transientComponent(Post.FeedHeaderComponent.self),
37-
// size: tableView.bounds.size)
38-
// }
36+
// return UIView().install(component: context.transientComponent(Post.FeedHeaderComponent.self),
37+
// size: tableView.bounds.size)
38+
// }
3939

4040
/// Called after the controller'€™s view is loaded into memory.
4141
override func viewDidLoad() {

demo/src/vcs/NavigationBarAppearance.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extension UIBaseViewController {
1111
let vc = self
1212
vc.navigationController?.navigationBar.isTranslucent = true
1313
vc.navigationController?.navigationBar.titleTextAttributes = [
14-
NSAttributedStringKey.foregroundColor: S.palette.white.color
14+
NSAttributedStringKey.foregroundColor: S.palette.white.color,
1515
]
1616
vc.navigationController?.navigationBar.barTintColor = S.palette.primaryAccent.color
1717
vc.navigationController?.navigationBar.tintColor = S.palette.white.color

objc/CoreRender.xcodeproj/project.pbxproj

Lines changed: 0 additions & 499 deletions
This file was deleted.

objc/CoreRender.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

objc/CoreRender.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

objc/CoreRender.xcodeproj/xcshareddata/xcschemes/Test.xcscheme

Lines changed: 0 additions & 129 deletions
This file was deleted.

objc/bin/CoreRenderObjC

-704 KB
Binary file not shown.
-704 KB
Binary file not shown.

objc/bin/CoreRenderObjC.framework/Headers/CRContext.h

Lines changed: 0 additions & 10 deletions
This file was deleted.

objc/bin/CoreRenderObjC.framework/Headers/CRMacros.h

Lines changed: 0 additions & 70 deletions
This file was deleted.

objc/bin/CoreRenderObjC.framework/Headers/CRNode.h

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)