Skip to content

Commit a0ae0d8

Browse files
author
Nikita Merkel
committed
Remove useless public keyword
1 parent aee88e9 commit a0ae0d8

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/SkeletonUI/Extensions/Image+OptionalType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SwiftUI
22

3-
public extension Image {
3+
extension Image {
44
#if os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
55
init(uiImage: UIImage?) {
66
if let uiImage = uiImage {

Sources/SkeletonUI/Extensions/SecureField+OptionalType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SwiftUI
22

3-
public extension SecureField where Label == Text {
3+
extension SecureField where Label == Text {
44
init(_ titleKey: LocalizedStringKey?, text: Binding<String>, onCommit: @escaping () -> Void = {}) {
55
if let titleKey = titleKey {
66
self.init(titleKey, text: text, onCommit: onCommit)

Sources/SkeletonUI/Extensions/Text+OptionalType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SwiftUI
22

3-
public extension Text {
3+
extension Text {
44
init<S>(_ content: S?) where S: OptionalType, S.Wrapped: StringProtocol {
55
if let content = content?.wrapped {
66
self.init(content)

Sources/SkeletonUI/Extensions/TextField+OptionalType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SwiftUI
22

3-
public extension TextField where Label == Text {
3+
extension TextField where Label == Text {
44
init(titleKey: LocalizedStringKey?, text: Binding<String>, onEditingChanged: @escaping (Bool) -> Void = { _ in }, onCommit: @escaping () -> Void = {}) {
55
if let titleKey = titleKey {
66
self.init(titleKey, text: text, onEditingChanged: onEditingChanged, onCommit: onCommit)

Sources/SkeletonUI/Extensions/Toggle+OptionalType.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SwiftUI
22

3-
public extension Toggle where Label: View {
3+
extension Toggle where Label: View {
44
init(isOn: Binding<Bool>?, @ViewBuilder label: () -> Label) {
55
if let isOn = isOn {
66
self.init(isOn: isOn, label: label)
@@ -10,7 +10,7 @@ public extension Toggle where Label: View {
1010
}
1111
}
1212

13-
public extension Toggle where Label == Text {
13+
extension Toggle where Label == Text {
1414
init(_ titleKey: LocalizedStringKey?, isOn: Binding<Bool>) {
1515
if let titleKey = titleKey {
1616
self.init(titleKey, isOn: isOn)

0 commit comments

Comments
 (0)