Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor view global functions with static methods #372

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Tests/LayoutTests/LayoutExampleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ final class LayoutExampleTests: XCTestCase {

// GIVEN

let subview: UIView = pinkView
let subview: UIView = .pink()

// THEN

Expand All @@ -100,8 +100,8 @@ final class LayoutExampleTests: XCTestCase {

// GIVEN

let subview1: UIView = pinkView
let subview2: UIView = blueView
let subview1: UIView = .pink()
let subview2: UIView = .blue()

// THEN

Expand All @@ -122,7 +122,7 @@ final class LayoutExampleTests: XCTestCase {

// GIVEN

let siblingView: UIView = pinkView
let siblingView: UIView = .pink()

let label: UILabel = {
let label: UILabel = .init()
Expand Down Expand Up @@ -150,7 +150,7 @@ final class LayoutExampleTests: XCTestCase {

// GIVEN

let siblingView: UIView = pinkView
let siblingView: UIView = .pink()

let label: UILabel = {
let label: UILabel = .init()
Expand Down Expand Up @@ -180,7 +180,7 @@ final class LayoutExampleTests: XCTestCase {

// GIVEN

let subview: UIView = blueView
let subview: UIView = .blue()

// THEN

Expand All @@ -195,7 +195,7 @@ final class LayoutExampleTests: XCTestCase {

// GIVEN

let subview1: UIView = orangeView
let subview1: UIView = .orange()
let subview2: UIImageView = .init(image: .checkmark)

// THEN
Expand All @@ -212,7 +212,7 @@ final class LayoutExampleTests: XCTestCase {

// GIVEN

let siblingView: UIView = pinkView
let siblingView: UIView = .pink()

let label: UILabel = {
let label: UILabel = .init()
Expand Down Expand Up @@ -240,7 +240,7 @@ final class LayoutExampleTests: XCTestCase {

// GIVEN

let siblingView: UIView = pinkView
let siblingView: UIView = .pink()

let label: UILabel = {
let label: UILabel = .init()
Expand Down
Loading
Loading