-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add public stub support * Refactor to satisfy SwiftLint
- Loading branch information
1 parent
3d5e833
commit 98ccd25
Showing
6 changed files
with
60 additions
and
28 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
22 changes: 22 additions & 0 deletions
22
Sources/SwiftEnvironmentMacro/Utilities/BaseDefaultValues.swift
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,22 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by Nayanda Haberty on 17/3/24. | ||
// | ||
|
||
import Foundation | ||
import SwiftSyntax | ||
|
||
let baseDefaultValues: [String: String] = [ | ||
"Int": "0", "Int8": "0", "Int16": "0", "Int32": "0", "Int64": "0", | ||
"UInt": "0", "UInt8": "0", "UInt16": "0", "UInt32": "0", "UInt64": "0", | ||
"Float": "0", "Float16": "0", "Float32": "0", "Float64": "0.0", "Double": "0.0", | ||
"Bool": "false", "Character": "Character(\"\")", "String": "\"\"", "Data": "Data()", | ||
"Date": "Date()", "UUID": "UUID()", | ||
"CGFloat": "0", "CGSize": ".zero", "CGPoint": ".zero", "CGRect": ".zero", | ||
"NSNumber": "0", "NSString": "\"\"", "NSNull": "NSNull()", "NSObject": "NSObject()", | ||
"NSData": "NSData()", "NSDate": "NSDate()", "NSSet": "NSSet()", "NSArray": "NSArray()", | ||
"NSSize": ".zero", "NSPoint": ".zero", "NSRect": ".zero", | ||
"AnyView": "AnyView(EmptyView())" | ||
] |
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