Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Marking couple of static let mainactors
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhieddine-El-Kaissi committed Sep 25, 2024
1 parent be7ede2 commit ab3a184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Sources/Thumbprint/Components/NavigationBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public enum NavigationBar {

/// Navigation bar appearance that has a shadow, but the shadow does not appear
/// when at the scroll edge of a scroll view, i.e. does not appear until scrolled up
public static let scrollEdgeShadowless = NavigationBar.Appearance(
@MainActor public static let scrollEdgeShadowless = NavigationBar.Appearance(
isTranslucent: false,
backgroundImage: UIImage(),
barTintColor: Color.white,
Expand All @@ -81,7 +81,7 @@ public enum NavigationBar {
)

/// Navigation bar appearance without a bottom shadow.
public static let shadowless = NavigationBar.Appearance(
@MainActor public static let shadowless = NavigationBar.Appearance(
isTranslucent: false,
backgroundImage: UIImage(),
barTintColor: Color.white,
Expand All @@ -99,7 +99,7 @@ public enum NavigationBar {
)

/// Transparent navigation bar appearance.
public static let transparent = NavigationBar.Appearance(
@MainActor public static let transparent = NavigationBar.Appearance(
isTranslucent: true,
backgroundImage: UIImage(),
barTintColor: .clear,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Thumbprint
import UIKit

class NavigationBarTest: SnapshotTestCase {
private let appearances: [String: NavigationBar.Appearance] = [
@MainActor private let appearances: [String: NavigationBar.Appearance] = [
"default": .default,
"scrollEdgeShadowless": .scrollEdgeShadowless,
"shadowless": .shadowless,
Expand All @@ -24,7 +24,7 @@ class NavigationBarTest: SnapshotTestCase {
}
}

func testContentStyles() {
@MainActor func testContentStyles() {
contentStyles.forEach {
let (contentStyleIdentifier, contentStyle) = $0

Expand Down

0 comments on commit ab3a184

Please sign in to comment.