Skip to content

Commit

Permalink
fix(BottomSheet): Changed SVG coder (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
WanaldinoTelefonica authored Aug 16, 2023
1 parent fe71624 commit 4480d47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
.package(url: "/~https://github.com/airbnb/lottie-ios.git", exact: "3.1.8"),
.package(url: "/~https://github.com/pointfreeco/swift-snapshot-testing.git", exact: "1.8.2"),
.package(url: "/~https://github.com/SDWebImage/SDWebImage.git", exact: "5.17.0"),
.package(url: "/~https://github.com/SDWebImage/SDWebImageSVGNativeCoder.git", exact: "0.1.1")
.package(url: "/~https://github.com/SDWebImage/SDWebImageSVGCoder.git", exact: "1.7.0")
],
targets: [
.target(
Expand Down Expand Up @@ -103,7 +103,7 @@ let package = Package(
dependencies: [
.product(name: "Lottie", package: "lottie-ios"),
.product(name: "SDWebImage", package: "SDWebImage"),
.product(name: "SDWebImageSVGNativeCoder", package: "SDWebImageSVGNativeCoder"),
.product(name: "SDWebImageSVGCoder", package: "SDWebImageSVGCoder"),
"MisticaCommon"
],
exclude: [
Expand Down
4 changes: 2 additions & 2 deletions Sources/Mistica/Utils/Extensions/UIImageView+URL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
//

import SDWebImage
import SDWebImageSVGNativeCoder
import SDWebImageSVGCoder
import UIKit

extension UIImageView {
/// Loads the urls asynchronously
func load(url: URL, urlForDarkMode: URL? = nil, renderAsTemplate: Bool = false) {
let coder = SDImageSVGNativeCoder.shared
let coder = SDImageSVGCoder.shared
SDImageCodersManager.shared.removeCoder(coder)
SDImageCodersManager.shared.addCoder(coder)

Expand Down

0 comments on commit 4480d47

Please sign in to comment.