Skip to content

Commit

Permalink
Fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyxtyx committed Dec 11, 2024
1 parent 93754bf commit c686127
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Sources/Shaft/Painting/ImageProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

import Foundation

/// For non-Apple platforms
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

/// Configuration information passed to the [ImageProvider.resolve] method to
/// select a specific image.
public struct ImageConfiguration: Equatable {
Expand Down
4 changes: 0 additions & 4 deletions Sources/Shaft/Widgets/Image.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

import Foundation

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

/// Signature used by [Image.frameBuilder] to control the widget that will be
/// used when an [Image] is built.
///
Expand Down

0 comments on commit c686127

Please sign in to comment.