Skip to content

Commit

Permalink
doc: update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 10, 2023
1 parent 157b949 commit e657c66
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 8 deletions.
94 changes: 88 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,90 @@
.DS_Store
/.build
/Packages
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
Binary file not shown.
4 changes: 2 additions & 2 deletions SearchField/Sources/SearchField/SearchField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ public struct SearchField: View {
// A closure that takes a string as input and returns void
var textFieldChanged: ((String) -> Void)

// Initializes a SearchField with a default value and a closure to be called when the text field changes
/// Initializes a SearchField with a default value and a closure to be called when the text field changes
public init(_ defaultValue: String?, textFieldChanged: @escaping ((String) -> Void)) {
_text = .constant(defaultValue ?? "")
self.textFieldChanged = textFieldChanged
}
// Initializes a SearchField with a binding to a string value and a closure to be called when the text field changes
/// Initializes a SearchField with a binding to a string value and a closure to be called when the text field changes
public init(_ defaultValue: Binding<String?>, textFieldChanged: @escaping ((String) -> Void)) {
_text = defaultValue
self.textFieldChanged = textFieldChanged
Expand Down

0 comments on commit e657c66

Please sign in to comment.