Skip to content

Commit

Permalink
Merge pull request #31 from payan-app/improvements
Browse files Browse the repository at this point in the history
feat: add performance improvements
  • Loading branch information
juandahurt authored Aug 25, 2022
2 parents 14aff73 + eb9f07d commit 4db4a82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Sources/Purace/Common/PuraceManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Juan Hurtado on 14/05/22.
//

import Kingfisher
import UIKit
import Foundation

public struct PuraceManager {
public static let shared = PuraceManager()
Expand All @@ -15,6 +15,9 @@ public struct PuraceManager {

public func configure() {
registerFonts()

let cache = KingfisherManager.shared.cache
cache.memoryStorage.config.expiration = .expired
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public struct PuraceHorizontalGridView: View {
public var body: some View {
GeometryReader { reader in
ScrollView(.horizontal) {
HStack(spacing: 5) {
LazyHStack(spacing: 5) {
ForEach(stacks.indices, id: \.self) { index in
PuraceHGridVerticalStack(contents: stacks[index].contents)
.frame(width: stacks.count == 1 ? reader.size.width : reader.size.width * 0.9)
Expand Down

0 comments on commit 4db4a82

Please sign in to comment.