-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/slide_topbar
# Conflicts: # Core/Core.xcodeproj/project.pbxproj
- Loading branch information
Showing
34 changed files
with
1,024 additions
and
267 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
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
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
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,28 @@ | ||
// | ||
// ThemeConfig.swift | ||
// Core | ||
// | ||
// Created by Anton Yarmolenka on 01/12/2023. | ||
// | ||
|
||
import Foundation | ||
|
||
private enum ThemeKeys: String { | ||
case isRoundedCorners = "ROUNDED_CORNERS_STYLE" | ||
} | ||
|
||
public final class ThemeConfig: NSObject { | ||
public var isRoundedCorners: Bool | ||
|
||
init(dictionary: [String: AnyObject]) { | ||
isRoundedCorners = dictionary[ThemeKeys.isRoundedCorners.rawValue] as? Bool != false | ||
super.init() | ||
} | ||
} | ||
|
||
private let ThemeKey = "THEME" | ||
extension Config { | ||
public var theme: ThemeConfig { | ||
ThemeConfig(dictionary: self[ThemeKey] as? [String: AnyObject] ?? [:]) | ||
} | ||
} |
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,24 @@ | ||
// | ||
// Data_Certificate.swift | ||
// Core | ||
// | ||
// Created by Vladimir Chekyrta on 18.12.2023. | ||
// | ||
|
||
import Foundation | ||
|
||
public extension DataLayer { | ||
struct Certificate: Codable { | ||
public let url: String? | ||
|
||
public init(url: String?) { | ||
self.url = url | ||
} | ||
} | ||
} | ||
|
||
public extension DataLayer.Certificate { | ||
var domain: Certificate { | ||
return Certificate(url: url ?? "") | ||
} | ||
} |
Oops, something went wrong.