-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b28ad76
commit 78bf7c9
Showing
3 changed files
with
152 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by krishna varshney on 24/10/23. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
public struct JSONViewerFontConfiguration { | ||
let keyFont: Font | ||
let valueFont: Font | ||
|
||
public init(keyFont: Font, valueFont: Font) { | ||
self.keyFont = keyFont | ||
self.valueFont = valueFont | ||
} | ||
|
||
public init(with font: Font) { | ||
self.keyFont = font | ||
self.valueFont = font | ||
} | ||
|
||
public init() { | ||
self.init(with: .system(size: 14)) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters