Skip to content

Commit

Permalink
fix(api): Make extensions public
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Jan 3, 2024
1 parent 5d1095d commit ad83d2d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/DSKit/UIKit/UIView/Gradient/GradientLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import UIKit

class GradientLayer: CAGradientLayer {
internal class GradientLayer: CAGradientLayer {

struct Configuration {
let gradientColors: [GradientColor]
Expand Down
4 changes: 2 additions & 2 deletions Sources/DSKit/UIKit/UIView/UIView+DashedBorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import UIKit

struct DashedBorderConfigurationItem {
public struct DashedBorderConfigurationItem {
var borderWidth: CGFloat
var paintedSegmentWidth: NSNumber
var unpaintedSegmentWidth: NSNumber
Expand All @@ -20,7 +20,7 @@ struct DashedBorderConfigurationItem {
!! view needs to be laid out before **addDashedBorder** gets called on it !!
e.g. call **layoutIfNeeded()** or override **layoutSubviews()** before adding the border
*/
extension UIView {
public extension UIView {
func addDashedBorder(configuration: DashedBorderConfigurationItem) {

layer.sublayers?.forEach {
Expand Down
2 changes: 1 addition & 1 deletion Sources/DSKit/UIKit/UIView/UIView+FigmaShadow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit.UIView

extension UIView {
public extension UIView {
/**
Translates the Figma shadow properties into UIView shadow

Expand Down
2 changes: 1 addition & 1 deletion Sources/DSKit/UIKit/UIView/UIView+Parent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

extension UIView {
public extension UIView {
var parentViewController: UIViewController? {
var parentResponder: UIResponder? = self
while parentResponder != nil {
Expand Down
4 changes: 2 additions & 2 deletions Sources/DSKit/UIKit/UIView/UIView+TapGestureRecognizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

extension UIView {
public extension UIView {
// Enum to define associated object keys
private enum AssociatedObjectKeys {
static var tapGestureRecognizer = "DS_TapGestureRecognizerKey"
Expand All @@ -29,7 +29,7 @@ extension UIView {
}

// Adds a tap gesture recognizer to the view
@objc public func onTapGesture(perform action: @escaping () -> Void) {
@objc func onTapGesture(perform action: @escaping () -> Void) {
isUserInteractionEnabled = true
tapAction = action

Expand Down

0 comments on commit ad83d2d

Please sign in to comment.