Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Apr 18, 2022
1 parent 91479a0 commit 05599c6
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ A text field that binds values and formats them as you type.
|---|---------|-------------|
| :iphone: | SwiftUI | Value, style, done |
| :mountain: | Environment | Uses environment values |
| :mag_right: | Focusable | Supports use of @FocusState |
| :mag_right: | Focusable | Supports SwiftUI.FocusState |
| :sewing_needle: | Customizable | Exposes [ProxyTextField](Sources/DiffableTextKitXUIKit/Views/ProxyTextField.swift) |
| :zzz: | Convenient | Styles use sensible defaults |
| :balance_scale: | Monospaced | Standard font is monospaced |
| :smiley: | Emojis | Uses native offsets |

# Styles

Expand Down
2 changes: 1 addition & 1 deletion Sources/DiffableTextKit/Models/Symbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public struct Symbol: Equatable {
}

//=------------------------------------------------------------------------=
// MARK: Initializers - Static
// MARK: Initializers
//=------------------------------------------------------------------------=

@inlinable @inline(__always) public static func content(_ character: Character) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion Sources/DiffableTextKit/Support/Info.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public struct Info: CustomStringConvertible, Error {
}

//=--------------------------------------------------------------------=
// MARK: Initializers - Static
// MARK: Initializers
//=--------------------------------------------------------------------=

@inlinable public static func note(_ value: Any) -> Self {
Expand Down
7 changes: 7 additions & 0 deletions Sources/DiffableTextKitXUIKit/BasicTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ import UIKit
// MARK: * BasicTextField
//*============================================================================*

/// An as-you-type formatting compatible UITextField.
///
/// UITextField has two selection methods: drag and drop and keyboard inputs.
///
/// - Use static selection for drag and drop.
/// - Use momentum selection for keyboard inputs.
///
public final class BasicTextField: UITextField {

//=------------------------------------------------------------------------=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension NSTextAlignment {
}

//=------------------------------------------------------------------------=
// MARK: Initializers - Static
// MARK: Initializers
//=------------------------------------------------------------------------=

@inlinable static func adaptive(_ layout: UIUserInterfaceLayoutDirection,
Expand Down
2 changes: 1 addition & 1 deletion Sources/DiffableTextKitXUIKit/Models/Font.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public struct DiffableTextFont {
}

//=------------------------------------------------------------------------=
// MARK: Initializers - Static
// MARK: Initializers
//=------------------------------------------------------------------------=

@inlinable static func preferred(_ style: UIFont.TextStyle) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion Sources/DiffableTextStylesXNumeric/Helpers/Lexicon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public final class Lexicon {
}

//=------------------------------------------------------------------------=
// MARK: Initializers - Static
// MARK: Initializers
//=------------------------------------------------------------------------=

/// Requires that formatter.numberStyle == .none.
Expand Down
2 changes: 1 addition & 1 deletion Sources/DiffableTextStylesXNumeric/Helpers/Links.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import Foundation
}

//=------------------------------------------------------------------------=
// MARK: Initializers - Static
// MARK: Initializers
//=------------------------------------------------------------------------=

@inlinable static func ascii() -> Self {
Expand Down
2 changes: 1 addition & 1 deletion Sources/DiffableTextStylesXNumeric/Scheme+Standard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import Foundation
}

//=------------------------------------------------------------------------=
// MARK: Initializers - Static
// MARK: Initializers
//=------------------------------------------------------------------------=

@inlinable static func reuse<T>(_ format: T) -> Self where T: Formats.Number {
Expand Down

0 comments on commit 05599c6

Please sign in to comment.