♻️ :: Update // MARK: - statements

This commit is contained in:
Felix Mau
2022-04-28 08:49:17 +01:00
parent cd14d3cfee
commit 846005af52
28 changed files with 45 additions and 18 deletions
+2 -1
View File
@@ -9,11 +9,12 @@
import SwiftUI
struct StoryboardView: UIViewControllerRepresentable {
// MARK: - Public properties
let name: String
// MARK: - Public properties
// MARK: - Public methods
func makeUIViewController(context _: Context) -> UIViewController {
let storyboard = UIStoryboard(name: name, bundle: nil)
@@ -11,6 +11,7 @@ import SwiftUI
import GradientLoadingBar
final class AdvancedExampleTableViewController: UITableViewController {
// MARK: - Config
private enum Config {
@@ -9,6 +9,7 @@
import UIKit
final class CustomColorsTableViewCell: UITableViewCell {
// MARK: - Public properties
static let reuseIdentifier = "CustomColorsTableViewCell"
@@ -10,6 +10,7 @@ import UIKit
import GradientLoadingBar
final class CustomSuperviewTableViewCell: UITableViewCell {
// MARK: - Config
private enum Config {
@@ -10,6 +10,7 @@ import UIKit
import GradientLoadingBar
final class InterfaceBuilderSetupTableViewCell: UITableViewCell {
// MARK: - Config
private enum Config {
@@ -10,6 +10,7 @@ import UIKit
@IBDesignable
final class BorderedButton: UIButton {
// MARK: - Config
private enum Config {
@@ -18,7 +19,7 @@ final class BorderedButton: UIButton {
static let cornerRadius: CGFloat = 4
}
// MARK: - Initializer
// MARK: - Instance Lifecycle
override init(frame: CGRect) {
super.init(frame: frame)
@@ -11,6 +11,7 @@ import SwiftUI
import GradientLoadingBar
final class BasicExampleViewController: UIViewController {
// MARK: - Public methods
override func viewWillDisappear(_ animated: Bool) {
@@ -31,7 +32,7 @@ final class BasicExampleViewController: UIViewController {
}
}
// MARK: - Helpers
// MARK: - Helper
struct BasicExampleView: View {
var body: some View {
@@ -9,6 +9,7 @@
import SwiftUI
struct EntryPointView: View {
// MARK: - Private properties
@State
@@ -11,6 +11,7 @@ import SwiftUI
import GradientLoadingBar
final class NavigationBarExampleViewController: UIViewController {
// MARK: - Config
private enum Config {
@@ -70,7 +71,7 @@ final class NavigationBarExampleViewController: UIViewController {
}
}
// MARK: - Helpers
// MARK: - Helper
struct NavigationBarExampleView: View {
var body: some View {
@@ -11,6 +11,7 @@ import SwiftUI
import GradientLoadingBar
final class SafeAreaExampleViewController: UIViewController {
// MARK: - Private properties
private let gradientLoadingBar = GradientLoadingBar(isRelativeToSafeArea: false)
@@ -45,7 +46,7 @@ final class SafeAreaExampleViewController: UIViewController {
}
}
// MARK: - Helpers
// MARK: - Helper
struct SafeAreaExampleView: View {
var body: some View {
@@ -10,6 +10,7 @@ import SwiftUI
import GradientLoadingBar
struct SwiftUIExampleView: View {
// MARK: - Render
var body: some View {