Skip to content

Commit

Permalink
add: public
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Jul 13, 2024
1 parent 1485eb7 commit 86e911a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions Sources/TsuzuKit/Extension/ArrayExtension.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Foundation

extension Array {
public extension Array {
subscript (safe index: Index) -> Element? {
return indices.contains(index) ? self[index] : nil
}
}

extension RandomAccessCollection {
public extension RandomAccessCollection {
func indexed() -> Array<(offset: Int, element: Element)> {
return Array(enumerated())
}
Expand Down
1 change: 0 additions & 1 deletion Sources/TsuzuKit/Extension/ColorExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import SwiftUI
@available(iOS 13.0, *)
@available(macOS 12.0, *)
public extension Color {

init(
hue: Double,
saturation: Double,
Expand Down
2 changes: 1 addition & 1 deletion Sources/TsuzuKit/Extension/ViewExtension.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SwiftUI

extension View {
public extension View {
@ViewBuilder
func `if`<Content: View>(
_ condition: Bool,
Expand Down

0 comments on commit 86e911a

Please sign in to comment.