Skip to content

Automatically import SDWebImage when user write import SDWebImageSwiftUI #100

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 2 commits into from
Apr 14, 2020
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
1 change: 0 additions & 1 deletion Example/SDWebImageSwiftUIDemo/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

import SwiftUI
import SDWebImage
import SDWebImageSwiftUI

class UserSettings: ObservableObject {
Expand Down
1 change: 1 addition & 0 deletions SDWebImageSwiftUI/Classes/SDWebImageSwiftUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import SwiftUI
@_exported import SDWebImage // Automatically import SDWebImage

#if os(macOS)
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
Expand Down
3 changes: 0 additions & 3 deletions SDWebImageSwiftUI/Module/SDWebImageSwiftUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ FOUNDATION_EXPORT double SDWebImageSwiftUIVersionNumber;

//! Project version string for SDWebImageSwiftUI.
FOUNDATION_EXPORT const unsigned char SDWebImageSwiftUIVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <SDWebImageSwiftUI/PublicHeader.h>
#import <SDWebImage/SDWebImage.h>