diff --git a/src/segments/swift.go b/src/segments/swift.go index 4b24f187..903975ee 100644 --- a/src/segments/swift.go +++ b/src/segments/swift.go @@ -17,7 +17,7 @@ func (s *Swift) Init(props properties.Properties, env runtime.Environment) { s.language = language{ env: env, props: props, - extensions: []string{"*.swift", "*.SWIFT"}, + extensions: []string{"*.swift", "*.SWIFT", "Podfile"}, commands: []*cmd{ { executable: "swift", diff --git a/website/docs/segments/languages/swift.mdx b/website/docs/segments/languages/swift.mdx index 370d0c5a..06c8e193 100644 --- a/website/docs/segments/languages/swift.mdx +++ b/website/docs/segments/languages/swift.mdx @@ -32,7 +32,7 @@ import Config from "@site/src/components/Config.js"; | `missing_command_text` | `string` | | text to display when the command is missing | | `display_mode` | `string` | `context` | | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | -| `extensions` | `[]string` | `*.swift, *.SWIFT` | allows to override the default list of file extensions to validate | +| `extensions` | `[]string` | `*.swift, *.SWIFT, Podfile` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | | `cache_version` | `boolean` | `false` | cache the executable's version or not |