Skip to content

Fix warnings #964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 13, 2024
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
2 changes: 1 addition & 1 deletion AuthenticationExample/AuthenticationExample/UserView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct UserView: View {
}
}

extension PortalUser.Role: CustomStringConvertible {
extension PortalUser.Role: @retroactive CustomStringConvertible {
public var description: String {
switch self {
case .user:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public final class Authenticator: ObservableObject {
/// - Parameters:
/// - promptForUntrustedHosts: A value indicating whether we should prompt the user when
/// encountering an untrusted host.
/// - oAuthConfigurations: The OAuth configurations that this authenticator can work with.
/// - oAuthUserConfigurations: The OAuth configurations that this authenticator can work with.
public init(
promptForUntrustedHosts: Bool = false,
oAuthUserConfigurations: [OAuthUserConfiguration] = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ private extension BasemapGallery {

public extension BasemapGallery {
/// The style of the basemap gallery. Defaults to ``Style/automatic(maxGridItemWidth:)``.
/// - Parameter style: The `Style` to use.
/// - Parameter newStyle: The `Style` to use.
/// - Returns: The `BasemapGallery`.
func style(
_ newStyle: Style
Expand Down
3 changes: 1 addition & 2 deletions Sources/ArcGISToolkit/Components/Search/SearchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ extension SearchView {
}

/// Sets the current query.
/// - Parameter newQueryString: The new value.
/// - Parameter newQuery: The new value.
/// - Returns: The `SearchView`.
public func currentQuery(_ newQuery: String) -> Self {
var copy = self
Expand All @@ -316,7 +316,6 @@ extension SearchView {
/// Sets a closure to perform when the query changes.
/// - Parameters:
/// - action: The closure to performed when the query has changed.
/// - query: The new query.
public func onQueryChanged(perform action: @escaping (_ query: String) -> Void) -> Self {
var copy = self
copy.onQueryChangedAction = action
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArcGISToolkit/Documentation.docc/FloatingPanel.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The following images are of a simple list of numbers in a floating panel.
| ------ | ---- |
| ![image](https://user-images.githubusercontent.com/3998072/202795901-b86d6d26-3572-4c88-8f6e-84473ce57002.png) | ![image](https://user-images.githubusercontent.com/3998072/202796009-92e3b5c3-d88b-4124-8d9f-bad6df445f02.png) |

- Note: The Floating Panel is exposed as a view modifier. See ``SwiftUI/View/floatingPanel(attributionBarHeight:backgroundColor:selectedDetent:horizontalAlignment:isPresented:maxWidth:_:)``
- Note: The Floating Panel is exposed as a view modifier. See ``SwiftUICore/View`` for all available modifiers.

**Features**

Expand Down