Skip to content

Commit

Permalink
Update project structure (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Jul 20, 2023
1 parent 5b7396f commit 5de10d4
Show file tree
Hide file tree
Showing 17 changed files with 255 additions and 365 deletions.
11 changes: 0 additions & 11 deletions CHANGELOG.md

This file was deleted.

1 change: 1 addition & 0 deletions Demo/Book.HStackLayout.swift
Expand Up @@ -12,6 +12,7 @@ extension Book {
.setStrokeColor(.init(white: 0, alpha: 0.2))
}

@MainActor
static func hStackLayout() -> BookView {

BookNavigationLink(title: "HStackLayout") {
Expand Down
1 change: 1 addition & 0 deletions Demo/Book.ImageNode.swift
Expand Up @@ -10,6 +10,7 @@ extension Book {
return node
}

@MainActor
static func bookImageNode() -> BookView {

BookNavigationLink(title: "ImageNode") {
Expand Down
1 change: 1 addition & 0 deletions Demo/Book.InteractiveNode.swift
Expand Up @@ -22,6 +22,7 @@ extension Book {
}
}

@MainActor
static func bookInteractiveNode() -> BookView {
BookNavigationLink(title: "InteractiveNode") {
BookNodePreview {
Expand Down
1 change: 1 addition & 0 deletions Demo/Book.LayerBacking.swift
Expand Up @@ -5,6 +5,7 @@ import TextureSwiftSupport

extension Book {

@MainActor
static func layerBacked() -> BookView {

BookNavigationLink(title: "LayerBacking") {
Expand Down
1 change: 1 addition & 0 deletions Demo/Book.StyledEdgeNode.swift
Expand Up @@ -4,6 +4,7 @@ import TextureSwiftSupport

extension Book {

@MainActor
static func bookStyledEdgeNode() -> BookView {
BookNavigationLink(title: "StyledEdgeNode") {
BookNodePreview {
Expand Down
38 changes: 24 additions & 14 deletions Demo/Book.TiledLayer.swift
@@ -1,8 +1,10 @@
import StorybookKit
import EasyPeasy
import MondrianLayout
import UIKit

extension Book {

@MainActor
static func tiledLayer() -> BookView {

BookNavigationLink(title: "Tile") {
Expand All @@ -11,9 +13,11 @@ extension Book {

BookForEach(data: 0..<50) { i in
BookPreview {
with(TiledLayerView(identifier: i)) {
$0.backgroundColor = .systemYellow
$0.easy.layout([Size(60)])
with(TiledLayerView(identifier: i)) { view in
view.backgroundColor = .systemYellow
Mondrian.layout {
view.mondrian.layout.size(.init(width: 60, height: 60))
}
}
}
}
Expand All @@ -29,10 +33,12 @@ extension Book {
with(UIButton(type: .system)) {
$0.setTitle("Hello", for: .normal)
},
with(TiledLayerView(identifier: i)) {
$0.alpha = 1
$0.isOpaque = false
$0.easy.layout([Size(60)])
with(TiledLayerView(identifier: i)) { view in
view.alpha = 1
view.isOpaque = false
Mondrian.layout {
view.mondrian.layout.size(.init(width: 60, height: 60))
}
},
])

Expand All @@ -46,13 +52,17 @@ extension Book {
BookForEach(data: 0..<50) { i in
BookPreview {
ZStackView(views: [
with(TiledLayerView(identifier: i)) {
$0.backgroundColor = .systemYellow
$0.easy.layout([Size(60)])
with(TiledLayerView(identifier: i)) { view in
view.backgroundColor = .systemYellow
Mondrian.layout {
view.mondrian.layout.size(.init(width: 60, height: 60))
}
},
with(UIView()) {
$0.backgroundColor = .systemYellow
$0.easy.layout([Size(60)])
with(UIView()) { view in
view.backgroundColor = .systemYellow
Mondrian.layout {
view.mondrian.layout.size(.init(width: 60, height: 60))
}
},
])
}
Expand Down
1 change: 1 addition & 0 deletions Demo/Book.swift
Expand Up @@ -2,6 +2,7 @@ import StorybookKit
import StorybookKitTextureSupport
import TextureSwiftSupport

@MainActor
let book = Book(title: "TextureSwiftSupport") {

BookNavigationLink(title: "Standard Components") {
Expand Down
48 changes: 0 additions & 48 deletions Podfile

This file was deleted.

89 changes: 0 additions & 89 deletions Podfile.lock

This file was deleted.

39 changes: 0 additions & 39 deletions TextureSwiftSupport.podspec

This file was deleted.

0 comments on commit 5de10d4

Please sign in to comment.