Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import BitwardenKit
import SwiftUI

// MARK: - FormTextField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import BitwardenKit
import BitwardenResources
import SwiftUI

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import BitwardenKit
import BitwardenResources
import SwiftUI

/// A view that displays a button for use as an accessory to a field.
///
struct AccessoryButton: View {
public struct AccessoryButton: View {
// MARK: Types

/// A type that wraps a synchrounous or asynchrounous block that is executed by this button.
Expand All @@ -31,7 +30,7 @@ struct AccessoryButton: View {
/// The image to display in the button.
var asset: SharedImageAsset

var body: some View {
public var body: some View {
switch action {
case let .async(action):
AsyncButton(action: action) {
Expand Down Expand Up @@ -64,7 +63,7 @@ struct AccessoryButton: View {
/// - accessibilityLabel: The accessibility label of the button.
/// - action: The action to perform when the user triggers the button.
///
init(asset: SharedImageAsset,
public init(asset: SharedImageAsset,
accessibilityLabel: String,
accessibilityIdentifier: String = "",
action: @escaping () -> Void) {
Expand All @@ -83,7 +82,7 @@ struct AccessoryButton: View {
/// - accessibilityIdentifier: The accessibility identifier of the button.
/// - action: The action to perform when the user triggers the button.
///
init(asset: SharedImageAsset,
public init(asset: SharedImageAsset,
accessibilityLabel: String,
accessibilityIdentifier: String = "",
action: @escaping () async -> Void) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import SwiftUI
/// contains a value. At that point, the text label will float up above the input field. This is
/// primarily meant to wrap a text field or view.
///
struct BitwardenFloatingTextLabel<Content: View, TrailingContent: View>: View {
public struct BitwardenFloatingTextLabel<Content: View, TrailingContent: View>: View {
// MARK: Properties

/// The primary content containing the text input field for the label.
Expand All @@ -31,7 +31,7 @@ struct BitwardenFloatingTextLabel<Content: View, TrailingContent: View>: View {

// MARK: View

var body: some View {
public var body: some View {
HStack(spacing: 8) {
ZStack(alignment: showPlaceholder ? .leading : .topLeading) {
// The placeholder and title text which is vertically centered in the view when the
Expand Down Expand Up @@ -77,7 +77,7 @@ struct BitwardenFloatingTextLabel<Content: View, TrailingContent: View>: View {
/// - trailingContent: Optional trailing content to display on the trailing edge of the label
/// and text input field.
///
init(
public init(
title: String?,
isTextFieldDisabled: Bool = false,
showPlaceholder: Bool,
Expand All @@ -100,7 +100,7 @@ struct BitwardenFloatingTextLabel<Content: View, TrailingContent: View>: View {
/// the field.
/// - content: The primary content containing the text input field for the label.
///
init(
public init(
title: String?,
isTextFieldDisabled: Bool = false,
showPlaceholder: Bool,
Expand Down
Loading