diff --git a/.gitignore b/.gitignore index 551a3f5..676c1e1 100644 --- a/.gitignore +++ b/.gitignore @@ -67,4 +67,5 @@ graph.dot Derived/ ### Tuist managed dependencies ### -Tuist/Dependencies +Tuist/.build +.package.resolved diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..bddfdd3 --- /dev/null +++ b/.mise.toml @@ -0,0 +1,2 @@ +[tools] +tuist = "4.9.0" diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..cb0b9c2 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,128 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +dogukaandev@gmail.com. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9c8c5a1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 SwiftBuddiesTR + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..642d2d8 --- /dev/null +++ b/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,41 @@ +### Issue Link :link: + + +### Goals :soccer: + + + +### Implementation Details :construction: + + + +### Testing Details :mag: + + +### Screenshots/Gifs :camera: + +How to add gif/screenshots: +1. Drag and drop the gif/screenshot here, let it upload. +2. Copy the link and paste it like below -> +``` + +``` +3. add the appropriate file extension after it "*.gif" or "*.jpg" +- Important: Be careful not to exceed 150 points width that is specified. It makes it harder chech overall ui elements if width is wider than 150 points. + +Example usage: + + + +## PR Type +What kind of change does this PR introduce? + + + +- [ ] Bugfix +- [x] Feature +- [ ] Code style update (formatting, renaming) +- [ ] Refactoring (no functional changes, no api changes) +- [ ] Build related changes +- [ ] Documentation content changes +- [x] Other... Please describe: diff --git a/Plugins/SwiftBuddiesIOS/Package.swift b/Plugins/SwiftBuddiesIOS/Package.swift deleted file mode 100644 index 258c84c..0000000 --- a/Plugins/SwiftBuddiesIOS/Package.swift +++ /dev/null @@ -1,15 +0,0 @@ -// swift-tools-version: 5.4 - -import PackageDescription - -let package = Package( - name: "MyPlugin", - products: [ - .executable(name: "tuist-my-cli", targets: ["tuist-my-cli"]), - ], - targets: [ - .executableTarget( - name: "tuist-my-cli" - ), - ] -) diff --git a/Plugins/SwiftBuddiesIOS/Plugin.swift b/Plugins/SwiftBuddiesIOS/Plugin.swift deleted file mode 100644 index 86a1e55..0000000 --- a/Plugins/SwiftBuddiesIOS/Plugin.swift +++ /dev/null @@ -1,3 +0,0 @@ -import ProjectDescription - -let plugin = Plugin(name: "MyPlugin") \ No newline at end of file diff --git a/Plugins/SwiftBuddiesIOS/ProjectDescriptionHelpers/LocalHelper.swift b/Plugins/SwiftBuddiesIOS/ProjectDescriptionHelpers/LocalHelper.swift deleted file mode 100644 index 6f49a44..0000000 --- a/Plugins/SwiftBuddiesIOS/ProjectDescriptionHelpers/LocalHelper.swift +++ /dev/null @@ -1,9 +0,0 @@ -import Foundation - -public struct LocalHelper { - let name: String - - public init(name: String) { - self.name = name - } -} diff --git a/Plugins/SwiftBuddiesIOS/Sources/tuist-my-cli/main.swift b/Plugins/SwiftBuddiesIOS/Sources/tuist-my-cli/main.swift deleted file mode 100644 index 6f05969..0000000 --- a/Plugins/SwiftBuddiesIOS/Sources/tuist-my-cli/main.swift +++ /dev/null @@ -1 +0,0 @@ -print("Hello, from your Tuist Task") \ No newline at end of file diff --git a/Project.swift b/Project.swift index 8fe8caf..9cd5319 100644 --- a/Project.swift +++ b/Project.swift @@ -1,71 +1,248 @@ import ProjectDescription -import ProjectDescriptionHelpers -import MyPlugin +import Foundation extension Target { - static func makeModule(name: String, dependencies: [TargetDependency] = [], hasResources: Bool = false) -> Target { - Target( + static func featureTarget( + name: String, + productName: String, + product: Product = .staticLibrary, + dependencies: [TargetDependency], + hasResources: Bool = false + ) -> Self { + target( name: name, - platform: .iOS, - product: .framework, - productName: name, - bundleId: "com.swiftbuddies.\(name.lowercased())", - sources: ["Targets/SwiftBuddies\(name)/Sources/**"], - resources: hasResources ? ["Targets/SwiftBuddies\(name)/Resources/**"] : [], - dependencies: dependencies - ) + destinations: .iOS, + product: .staticLibrary, + productName: productName, + bundleId: "com.swiftbuddies.\(productName.lowercased())", + sources: ["SwiftBuddiesIOS/Targets/\(name)Module/Sources/**"], + resources: hasResources ? ["SwiftBuddiesIOS/Targets/\(name)Module/Resources/**"] : [], + dependencies: dependencies) } } -extension TargetDependency { - static func makeExternalTarget(name: String) -> TargetDependency { - TargetDependency.external(name: name, condition: nil) - } -} - -// MARK: - Project - -// Local plugin loaded -let localHelper = LocalHelper(name: "MyPlugin") - -let networkDependency = TargetDependency.makeExternalTarget(name: "DefaultNetworkOperationPackage") -let swiftUIXDependency = TargetDependency.makeExternalTarget(name: "SwiftUIX") -let designTarget = Target.makeModule( - name: "Design", - dependencies: [swiftUIXDependency], - hasResources: true -) - -let contributorsModule = Target.makeModule( - name: "Contributors", - dependencies: [.target(designTarget), networkDependency] -) -let mapModule = Target.makeModule( - name: "Map", - dependencies: [.target(designTarget), networkDependency] -) -let aboutModule = Target.makeModule( - name: "About", - dependencies: [.target(designTarget), networkDependency] -) -let feedModule = Target.makeModule( - name: "Feed", - dependencies: [.target(designTarget), networkDependency] -) - - -// Creates our project using a helper function defined in ProjectDescriptionHelpers -let project = Project.app( - name: "SwiftBuddiesMain", - platform: .iOS, - additionalTargets: [ - feedModule, - mapModule, - aboutModule, - contributorsModule, - designTarget +let project = Project( + name: "Buddies", + packages: [ + .remote(url: "https://github.com/google/GoogleSignIn-iOS.git", requirement: .exact("7.0.0")), + .remote(url: "https://github.com/apple/swift-argument-parser.git", requirement: .exact("1.3.0")), + .remote(url: "https://github.com/darkbringer1/BuddiesNetwork.git", requirement: .upToNextMajor(from: .init(0, 0, 1))) ], - targetDependencies: [networkDependency] + targets: [ + .target( + name: "SwiftBuddiesIOS", + destinations: .iOS, + product: .app, + bundleId: "com.swiftbuddies.SwiftBuddiesIOS", + infoPlist: .extendingDefault( + with: [ + "CFBundleShortVersionString": "1.0", + "CFBundleVersion": "1", + "UIMainStoryboardFile": "", + "UILaunchStoryboardName": "LaunchScreen", + "CLIENT_ID": "1015261010783-dq3s025o2j6pcj81ped6nqpbiv5m1fvr.apps.googleusercontent.com", + "REVERSED_CLIENT_ID": "com.googleusercontent.apps.1015261010783-dq3s025o2j6pcj81ped6nqpbiv5m1fvr", + "NSLocationWhenInUseUsageDescription": "Your location is needed to provide location-based features.", + "CFBundleURLTypes": [ + ["CFBundleURLSchemes": ["com.googleusercontent.apps.1015261010783-dq3s025o2j6pcj81ped6nqpbiv5m1fvr"]] + ] + ] + ), + sources: ["SwiftBuddiesIOS/Sources/**"], + resources: ["SwiftBuddiesIOS/Resources/**"], + dependencies: [ + .package(product: "GoogleSignIn", type: .runtime, condition: .none), + .package(product: "BuddiesNetwork", type: .runtime, condition: .none), + .target(Modules.design.target), + .target(Modules.auth.target), + .target(Modules.onboarding.target), + .target(Modules.login.target), + .target(Modules.feed.target), + .target(Modules.map.target), + .target(Modules.profile.target), + .target(Modules.contributors.target), + .target(Modules.network.target), + .target(Modules.localization.target), + .target(Modules.core.target) + ] + ), + Modules.design.target, + Modules.auth.target, + Modules.onboarding.target, + Modules.login.target, + Modules.feed.target, + Modules.map.target, + Modules.profile.target, + Modules.contributors.target, + Modules.network.target, + Modules.localization.target, + Modules.core.target, + Modules.localicationCodegen + ] ) +enum Modules: CaseIterable { + case core + case localization + case design + case network + case auth + case onboarding + case login + case feed + case map + case profile + case contributors + + + var target: Target { + switch self { + case .core: + Target.featureTarget( + name: "Core", + productName: "Core", + dependencies: + [.target(Modules.auth.target), .target(Modules.network.target), + .package(product: "GoogleSignIn", type: .runtime, condition: .none)] +// [] + ) + case .localization: + Target.featureTarget( + name: "Localization", + productName: "Localization", + dependencies: [], + hasResources: true + ) + case .design: + Target.featureTarget( + name: "Design", + productName: "Design", + dependencies: [.target(Modules.localization.target)], + hasResources: true + ) + case .network: + Target.featureTarget( + name: "Network", + productName: "Network", + dependencies: [ + .package(product: "BuddiesNetwork", type: .runtime, condition: .none) + ] + ) + case .auth: + Target.featureTarget( + name: "Auth", + productName: "Auth", + dependencies: [ + .target(Modules.network.target), +// .target(Modules.core.target), + .package(product: "GoogleSignIn", type: .runtime, condition: .none) + ] + ) + case .onboarding: + Target.featureTarget( + name: "Onboarding", + productName: "Onboarding", + dependencies: [ + .target(Modules.design.target), + .target(Modules.core.target), + ] + ) + case .login: + Target.featureTarget( + name: "Login", + productName: "Login", + dependencies: [ + .target(Modules.design.target), + .target(Modules.auth.target), + .target(Modules.network.target), + .target(Modules.core.target), + .package(product: "GoogleSignIn", type: .runtime, condition: .none) + ] + ) + case .feed: + Target.featureTarget( + name: "Feed", + productName: "Feed", + dependencies: [ + .target(Modules.core.target), + .target(Modules.design.target) + ] + ) + case .map: + Target.featureTarget( + name: "Map", + productName: "Map", + dependencies: [ + .target(Modules.core.target), + .target(Modules.design.target) + ] + ) + case .profile: + Target.featureTarget( + name: "Profile", + productName: "Profile", + dependencies: [ + .target(Modules.design.target), + .target(Modules.auth.target), + .target(Modules.network.target), + .target(Modules.core.target), + .package(product: "GoogleSignIn", type: .runtime, condition: .none) + ] + ) + case .contributors: + Target.featureTarget( + name: "Contributors", + productName: "Contributors", + dependencies: [ + .target(Modules.core.target), + .target(Modules.design.target) + ] + ) + } + } + + static let localicationCodegen = Target.target( + name: "LocalizationCodegen", + destinations: .macOS, + product: .commandLineTool, + productName: "LocalizationCodegen", + bundleId: "com.swiftbuddies.localization", + sources: ["SwiftBuddiesIOS/Targets/ScriptsModule/LocalizationCodegen/**"], + scripts: [], + dependencies: [.package(product: "ArgumentParser", type: .runtime, condition: .none)], + coreDataModels: [], + environmentVariables: [:], + launchArguments: [], + additionalFiles: [], + buildRules: [], + mergedBinaryType: .automatic, + mergeable: false + ) +} + +//let scriptsModule = Target.target( +// name: "Scripts", +// destinations: .macOS, +// product: .staticFramework, +// productName: "Scripts", +// bundleId: "com.swiftbuddies.scripts", +// deploymentTargets: nil, +// infoPlist: nil, +// +// sources: ["SwiftBuddiesIOS/Targets/ScriptsModule/**"], +// resources: nil, +// copyFiles: nil, +// headers: nil, +// entitlements: nil, +// scripts: [], +// dependencies: [.target(localicationCodegen)], +// settings: nil, +// coreDataModels: [], +// environmentVariables: [:], +// launchArguments: [], +// additionalFiles: [], +// buildRules: [], +// mergedBinaryType: .automatic, +// mergeable: false +//) diff --git a/README.md b/README.md new file mode 100644 index 0000000..50b7d79 --- /dev/null +++ b/README.md @@ -0,0 +1,160 @@ + + +[First time here?](#project-details) + +# Buddies Community iOS App + +Welcome to the official iOS app for the Buddies Community! This project is a community-driven app built in SwiftUI & Tuist, it aims to serve the members of our vast community, from newcomers to seasoned professionals, providing networking opportunities, collaboration, and professional development. + +[![Contributors][contributors-shield]][contributors-url] +[![Forks][forks-shield]][forks-url] +[![Stargazers][stars-shield]][stars-url] +[![Issues][issues-shield]][issues-url] +[![MIT License][license-shield]][license-url] + +
+ Explore the docs »
+
+
+ View Demo
+ ·
+ Report Bug
+ ·
+ Request Feature
+
{ + public var wrappedValue: P { + do { + return try tryGet() + } catch { + assertionFailure(error.localizedDescription) + preconditionFailure(error.localizedDescription) + } + } + + public func tryGet() throws -> P { + try container().get(key) + } + + let container: () -> DependencyContainerProtocol + let key: DependencyKey
+
+ public init ()
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/CoreModule/Sources/Core.swift b/SwiftBuddiesIOS/Targets/CoreModule/Sources/Core.swift
new file mode 100644
index 0000000..f9565b4
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/CoreModule/Sources/Core.swift
@@ -0,0 +1,3 @@
+class Hello {
+
+}
diff --git a/Targets/SwiftBuddiesDesign/Resources/Media/LocalMedia.swift b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.swift
similarity index 100%
rename from Targets/SwiftBuddiesDesign/Resources/Media/LocalMedia.swift
rename to SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.swift
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/LoginStrokeColor.colorset/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/LoginStrokeColor.colorset/Contents.json
new file mode 100644
index 0000000..de07e03
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/LoginStrokeColor.colorset/Contents.json
@@ -0,0 +1,20 @@
+{
+ "colors" : [
+ {
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "0x29",
+ "green" : "0x9A",
+ "red" : "0xE8"
+ }
+ },
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/SwiftBuddiesImage.imageset/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/SwiftBuddiesImage.imageset/Contents.json
new file mode 100644
index 0000000..e45e809
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/SwiftBuddiesImage.imageset/Contents.json
@@ -0,0 +1,12 @@
+{
+ "images" : [
+ {
+ "filename" : "swiftBuddiesImage.pdf",
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/SwiftBuddiesImage.imageset/swiftBuddiesImage.pdf b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/SwiftBuddiesImage.imageset/swiftBuddiesImage.pdf
new file mode 100644
index 0000000..96327cb
Binary files /dev/null and b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Login/SwiftBuddiesImage.imageset/swiftBuddiesImage.pdf differ
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBackround.colorset/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBackround.colorset/Contents.json
new file mode 100644
index 0000000..4c12d57
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBackround.colorset/Contents.json
@@ -0,0 +1,20 @@
+{
+ "colors" : [
+ {
+ "color" : {
+ "color-space" : "display-p3",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "0.945",
+ "green" : "0.945",
+ "red" : "0.961"
+ }
+ },
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBuddiesImage.imageset/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBuddiesImage.imageset/Contents.json
new file mode 100644
index 0000000..6f68728
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBuddiesImage.imageset/Contents.json
@@ -0,0 +1,21 @@
+{
+ "images" : [
+ {
+ "filename" : "OnboardingBuddiesImage.png",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBuddiesImage.imageset/OnboardingBuddiesImage.png b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBuddiesImage.imageset/OnboardingBuddiesImage.png
new file mode 100644
index 0000000..ba8126c
Binary files /dev/null and b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingBuddiesImage.imageset/OnboardingBuddiesImage.png differ
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingWelcomeImage.imageset/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingWelcomeImage.imageset/Contents.json
new file mode 100644
index 0000000..35ff802
--- /dev/null
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingWelcomeImage.imageset/Contents.json
@@ -0,0 +1,21 @@
+{
+ "images" : [
+ {
+ "filename" : "onboardingWelcomeImage.png",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingWelcomeImage.imageset/onboardingWelcomeImage.png b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingWelcomeImage.imageset/onboardingWelcomeImage.png
new file mode 100644
index 0000000..344a75f
Binary files /dev/null and b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/Onboarding/OnboardingWelcomeImage.imageset/onboardingWelcomeImage.png differ
diff --git a/Targets/SwiftBuddiesDesign/Resources/Media/LocalMedia.xcassets/SwiftBuddiesHeader.imageset/Contents.json b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/SwiftBuddiesHeader.imageset/Contents.json
similarity index 100%
rename from Targets/SwiftBuddiesDesign/Resources/Media/LocalMedia.xcassets/SwiftBuddiesHeader.imageset/Contents.json
rename to SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/SwiftBuddiesHeader.imageset/Contents.json
diff --git a/Targets/SwiftBuddiesDesign/Resources/Media/LocalMedia.xcassets/SwiftBuddiesHeader.imageset/SwiftBuddiesHeader.jpeg b/SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/SwiftBuddiesHeader.imageset/SwiftBuddiesHeader.jpeg
similarity index 100%
rename from Targets/SwiftBuddiesDesign/Resources/Media/LocalMedia.xcassets/SwiftBuddiesHeader.imageset/SwiftBuddiesHeader.jpeg
rename to SwiftBuddiesIOS/Targets/DesignModule/Resources/Media/LocalMedia.xcassets/SwiftBuddiesHeader.imageset/SwiftBuddiesHeader.jpeg
diff --git a/Targets/SwiftBuddiesDesign/Sources/Extensions/View+Extensions.swift b/SwiftBuddiesIOS/Targets/DesignModule/Sources/Extensions/View+Extensions.swift
similarity index 71%
rename from Targets/SwiftBuddiesDesign/Sources/Extensions/View+Extensions.swift
rename to SwiftBuddiesIOS/Targets/DesignModule/Sources/Extensions/View+Extensions.swift
index af68526..897ac3f 100644
--- a/Targets/SwiftBuddiesDesign/Sources/Extensions/View+Extensions.swift
+++ b/SwiftBuddiesIOS/Targets/DesignModule/Sources/Extensions/View+Extensions.swift
@@ -45,4 +45,30 @@ public extension View {
}
}
}
+
+ func fillView(_ color: Color, horizontolPadding: CGFloat = 15, verticalPadding: CGFloat = 10) -> some View {
+ self
+ .padding(.horizontal,horizontolPadding)
+ .padding(.vertical,verticalPadding)
+ .background { color }
+ }
+
+ func endTextEditing() {
+ UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
+ }
+}
+
+public extension Binding where Value == Bool {
+ var negated: Binding