Skip to content

Commit 93e6acb

Browse files
committed
change access specifier to public so other modules could access them. For e.g. test target access it buy just importing YCoreUI
and not @testaable import YCoreUI
1 parent cc703c9 commit 93e6acb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Sources/YCoreUI/Components/Elevation.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
import UIKit
1010

11-
struct Elevation {
12-
let offset: CGSize
13-
let blur: CGFloat
14-
let spread: CGFloat
15-
let color: UIColor
16-
let opacity: CGFloat
17-
let useShadowPath: Bool
11+
public struct Elevation {
12+
public let offset: CGSize
13+
public let blur: CGFloat
14+
public let spread: CGFloat
15+
public let color: UIColor
16+
public let opacity: CGFloat
17+
public let useShadowPath: Bool
1818

19-
init(
19+
public init(
2020
offset: CGSize,
2121
blur: CGFloat,
2222
spread: CGFloat,
@@ -32,7 +32,7 @@ struct Elevation {
3232
self.useShadowPath = useShadowPath
3333
}
3434

35-
func apply(layer: CALayer, cornerRadius: CGFloat) {
35+
public func apply(layer: CALayer, cornerRadius: CGFloat) {
3636
guard useShadowPath else { return }
3737

3838
let rect = layer.bounds.insetBy(dx: -spread, dy: -spread)

Tests/YCoreUITests/Components/ElevationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
@testable import YCoreUI
10+
import YCoreUI
1111

1212
final class ElevationTests: XCTestCase {
1313
func test_init_deliversGivenValues() {

0 commit comments

Comments
 (0)