Skip to content

Commit

Permalink
Alternative graphics for NC empty state (#1343)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyfahi authored May 8, 2024
1 parent d1102c9 commit e3f7d8f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "emptyPersonalNotifications.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
2 changes: 2 additions & 0 deletions FinniversKit/Sources/Assets/ImageAsset.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ enum ImageAsset: String {
case easterEgg
case edit
case editBig
case emptyPersonalNotifications
case error
case exclamationMarkTriangleMini
case favoriteActive
Expand Down Expand Up @@ -204,6 +205,7 @@ enum ImageAsset: String {
.easterEgg,
.edit,
.editBig,
.emptyPersonalNotifications,
.error,
.exclamationMarkTriangleMini,
.favoriteActive,
Expand Down
5 changes: 5 additions & 0 deletions FinniversKit/Sources/DNA/Images/ImageProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public protocol ImageProvider {

// General
var placeholderAd: UIImage { get }
var brandEmptyPersonalNotifications: UIImage { get }
var brandFavouriteAdd: UIImage { get }
var brandFavouriteAdded: UIImage { get }
var brandFavouriteAddImg: UIImage { get }
Expand Down Expand Up @@ -121,4 +122,8 @@ public struct DefaultImageProvider: ImageProvider {
public var brandMapDirections: UIImage {
UIImage(named: .mapDirections)
}

public var brandEmptyPersonalNotifications: UIImage {
UIImage(named: .emptyPersonalNotifications)
}
}
4 changes: 4 additions & 0 deletions FinniversKit/Sources/DNA/Images/UIImage+FinniversKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,8 @@ import UIKit
class var brandLogo: UIImage {
Config.imageProvider.brandLogo
}

class var brandEmptyPersonalNotifications: UIImage {
Config.imageProvider.brandEmptyPersonalNotifications
}
}

0 comments on commit e3f7d8f

Please sign in to comment.