Skip to content

Commit 954245b

Browse files
author
Russell Warwick
committed
♻️ Refactors Examples naming + adds new banner image
1 parent 8ad9fb8 commit 954245b

File tree

8 files changed

+18
-16
lines changed

8 files changed

+18
-16
lines changed

Example/Example/Flow/App Delegate/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1515
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1616

1717
window = UIWindow(frame: UIScreen.main.bounds)
18-
window?.rootViewController = UINavigationController(rootViewController: HomeVC())
18+
window?.rootViewController = UINavigationController(rootViewController: HomeViewController())
1919
window?.makeKeyAndVisible()
2020
return true
2121
}

Example/Example/Flow/Home/Examples/FeedExampleVC.swift renamed to Example/Example/Flow/Home/Examples/FeedExampleViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// FeedExampleVC.swift
2+
// FeedExampleViewController.swift
33
// Example
44
//
55
// Created by Russell Warwick on 09/05/2021.
@@ -61,7 +61,7 @@ final class PostView: UIView {
6161
}
6262
}
6363

64-
final class FeedExampleVC: UIViewController {
64+
final class FeedExampleViewController: UIViewController {
6565

6666
// MARK: - Data
6767

Example/Example/Flow/Home/Examples/HorizontalExampleVC.swift renamed to Example/Example/Flow/Home/Examples/HorizontalExampleViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// HorizontalExampleVC.swift
2+
// HorizontalExampleViewController.swift
33
// Example
44
//
55
// Created by Russell Warwick on 09/05/2021.
@@ -9,7 +9,7 @@ import UIKit
99
import SharkStackKit
1010
import SharkUtils
1111

12-
final class HorizontalExampleVC: UIViewController {
12+
final class HorizontalExampleViewController: UIViewController {
1313

1414
// MARK: - UI
1515

Example/Example/Flow/Home/Examples/MixedExampleVC.swift renamed to Example/Example/Flow/Home/Examples/MixedExampleViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// MixedStackVC.swift
2+
// MixedExampleViewController.swift
33
// Example
44
//
55
// Created by Russell Warwick on 09/05/2021.
@@ -9,7 +9,7 @@ import UIKit
99
import SharkStackKit
1010
import SharkUtils
1111

12-
final class MixedExampleVC: UIViewController {
12+
final class MixedExampleViewController: UIViewController {
1313

1414
// MARK: - UI
1515

Example/Example/Flow/Home/Examples/VerticalExampleVC.swift renamed to Example/Example/Flow/Home/Examples/VerticalExampleViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import UIKit
99
import SharkStackKit
1010
import SharkUtils
1111

12-
final class VerticalExampleVC: UIViewController {
12+
final class VerticalExampleViewController: UIViewController {
1313

1414
// MARK: - UI
1515

Example/Example/Flow/Home/HomeVC.swift renamed to Example/Example/Flow/Home/HomeViewController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// HomeVC.swift
2+
// HomeViewController.swift
33
// Example
44
//
55
// Created by Russell Warwick on 09/05/2021.
@@ -9,31 +9,31 @@ import UIKit
99
import SharkStackKit
1010
import SharkUtils
1111

12-
final class HomeVC: UIViewController {
12+
final class HomeViewController: UIViewController {
1313

1414
// MARK: - UI
1515

1616
private lazy var verticalStackExample = TestButton(text: "Vertical Stack").with {
1717
$0.touchUpInside.action = { [weak self] in
18-
self?.show(VerticalExampleVC(), sender: self)
18+
self?.show(VerticalExampleViewController(), sender: self)
1919
}
2020
}
2121

2222
private lazy var horizontalStackExample = TestButton(text: "Horizontal Stack").with {
2323
$0.touchUpInside.action = { [weak self] in
24-
self?.show(HorizontalExampleVC(), sender: self)
24+
self?.show(HorizontalExampleViewController(), sender: self)
2525
}
2626
}
2727

2828
private lazy var feedExample = TestButton(text: "Feed Example").with {
2929
$0.touchUpInside.action = { [weak self] in
30-
self?.show(FeedExampleVC(), sender: self)
30+
self?.show(FeedExampleViewController(), sender: self)
3131
}
3232
}
3333

3434
private lazy var mixedExample = TestButton(text: "Mixed Example").with {
3535
$0.touchUpInside.action = { [weak self] in
36-
self?.show(MixedExampleVC(), sender: self)
36+
self?.show(MixedExampleViewController(), sender: self)
3737
}
3838
}
3939

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## <img src="https://i.ibb.co/TBpKFYB/Screenshot-2021-05-10-at-02-07-24.png" style="zoom:30%;" />
1+
2+
3+
<img width="1000" alt="swift_standards" src="stack-kit-logo.png" >
24

35
SharkStackKit is a libary that extends UIStackView and combines the power of ResultBuilders to give you the power to easily build declarative UI's with [UIKit](https://developer.apple.com/documentation/uikit). If If you like the style of building SwiftUI layouts but your project is using UIKit then SharkStackKit is a great intermediate substituion without having any breaking changes.
46

@@ -33,4 +35,4 @@ To install SharkStackKit using [Swift Package Manager](https://github.com/apple/
3335
- You still want to use UIKit throughout your app
3436
- Want the power of build UI like SwiftUI but team isn’t ready to move a fully reactive approach
3537
- It’s easier to integrate into existing code bases. With SwiftUI you can’t swap a **View** for a **UIView**. This makes it hard to integrate old UI components into SwiftUI.
36-
- SwiftUI hides the underlying view rendering therefore making it hard to see what is actually going on, with SharkStackKit you can easily reach down to UIKit
38+
- SwiftUI hides the underlying view rendering therefore making it hard to see what is actually going on, with SharkStackKit you can easily reach down to UIKit

stack-kit-logo.png

21.6 KB
Loading

0 commit comments

Comments
 (0)