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 35d8343 commit 5d1095d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Sources/DSKit/Swift/Collection+Emptiness.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Milen Pivchev on 11/23/21.
//

extension Collection {
public extension Collection {
/// A Boolean value indicating whether the collection is **NOT** empty.
///
/// When you need to check whether your collection is not empty, use the
Expand Down
2 changes: 1 addition & 1 deletion Sources/DSKit/SwiftUI/Color+Hex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import SwiftUI

extension Color {
public extension Color {
init?(hex: String) {
guard let (r, g, b, a) = hexToRGB(hex: hex) else {
return nil
Expand Down
2 changes: 1 addition & 1 deletion Sources/DSKit/UIKit/String+HtmlAttributedString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import UIKit

extension String {
public extension String {
func toHtmlAttributedString(fontFamily: String = "San Francisco", size: CGFloat, color: UIColor) -> NSAttributedString? {
do {
let htmlCSSString = "<style>" +
Expand Down
2 changes: 1 addition & 1 deletion Sources/DSKit/UIKit/UIColor/UIColor+Hex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

extension UIColor {
public extension UIColor {
convenience init?(hex: String) {
guard let (r, g, b, a) = hexToRGB(hex: hex) else {
return nil
Expand Down
2 changes: 1 addition & 1 deletion Sources/DSKit/UIKit/UIColor/UIControl+addAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

extension UIControl {
public extension UIControl {
@available(iOS 14, *)
func addAction(for controlEvents: UIControl.Event = .touchUpInside, _ closure: @escaping() -> Void) {
addAction(UIAction { _ in closure() }, for: controlEvents)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit.UIImageView

extension UIImageView {
public extension UIImageView {
/**
Calculates the height you need to constrain an imageView to,
in case you set the imageView to a fixed width and want it to have the
Expand Down
2 changes: 1 addition & 1 deletion Sources/DSKit/UIKit/UIImageView/UIImageView+loadURL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit.UIImageView

extension UIImageView {
public extension UIImageView {

/// Given that the url is pointing to an image,
/// this function loads the image and sets it to the imageView.
Expand Down
2 changes: 1 addition & 1 deletion Sources/DSKit/UIKit/UIScrollView+scrollToBottom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit.UIScrollView

extension UIScrollView {
public extension UIScrollView {
func scrollToBottom(animated: Bool) {
if self.contentSize.height < self.bounds.size.height { return }
let bottomOffset = CGPoint(x: 0, y: self.contentSize.height - self.bounds.size.height)
Expand Down

0 comments on commit 5d1095d

Please sign in to comment.