Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ Demo store #1

Merged
merged 86 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
44b34bb
Initial Commit
DenielGrin Jul 3, 2024
9211412
feat/ Initial commit
DenielGrin Jul 3, 2024
b35a330
feat: Add podfile, remove IDE creating comments
DenielGrin Jul 3, 2024
0171835
Merge branch 'master' of https://github.com/rees46/demo-ios into feat…
DenielGrin Jul 3, 2024
7c173ae
fix: Rename entry points classes and files
DenielGrin Jul 3, 2024
c04a6cc
feat: Add splash screen and separate files
DenielGrin Jul 3, 2024
d82ad95
feat: Add supporting colors and themes
DenielGrin Jul 3, 2024
1ecabee
feat: Add nav images & nav items with selecting
DenielGrin Jul 4, 2024
ab5c89e
feat: Add string resources
DenielGrin Jul 4, 2024
8a66118
feat: Add toolbar view and icons
DenielGrin Jul 4, 2024
10ca312
feat: Change status bar colors in main screens
DenielGrin Jul 4, 2024
ba1d56f
feat: Add strings
DenielGrin Jul 4, 2024
24f8c95
feat: Add Rees sdk initialization
DenielGrin Jul 5, 2024
8a6da4d
feat: Add icon app
DenielGrin Jul 5, 2024
295e18b
feat: Add settings screen UI
DenielGrin Jul 5, 2024
8f76cb3
feat: Add NavigationManager.swift, SettingsScreenView.swift, changing…
DenielGrin Jul 5, 2024
beb14f3
feat: Handling visibility toolbar block
DenielGrin Jul 5, 2024
912aec4
feat: Add discover list
DenielGrin Jul 8, 2024
e8209a3
feat: Add discover and stories views
DenielGrin Jul 9, 2024
ea0073b
feat: Add stories representable for showing stories
DenielGrin Jul 9, 2024
70b1d1f
feat: Change stories code
DenielGrin Jul 9, 2024
754d34c
feat: Add reusable header
DenielGrin Jul 9, 2024
58e62a3
feat: Add getting recommendation items and models
DenielGrin Jul 9, 2024
d2fe698
feat: Add getting recommendation viewing items
DenielGrin Jul 9, 2024
c26854c
fix: Fix bug with selecting tab from another views
DenielGrin Jul 9, 2024
c46ae93
feat: Add reusable products list
DenielGrin Jul 10, 2024
8c2790e
feat: Add grid and discover moko data, reusable toolbar and list items
DenielGrin Jul 10, 2024
ccf5b8d
feat: Change loading image
DenielGrin Jul 10, 2024
2e5afb7
feat: Rename packages
DenielGrin Jul 10, 2024
9aa2f0e
feat: Add catalog image points view
DenielGrin Jul 11, 2024
ad25830
feat: Add rating and reviews
DenielGrin Jul 12, 2024
d8300a7
feat: Add price and discount
DenielGrin Jul 12, 2024
d61a560
feat: Add recommendation section in product details
DenielGrin Jul 12, 2024
b6488f5
feat: Add cart viewmodel
DenielGrin Jul 12, 2024
564debe
feat: Add cart repository
DenielGrin Jul 12, 2024
722ed61
feat: Add cart list items
DenielGrin Jul 13, 2024
2cdd209
feat: Add getting full price
DenielGrin Jul 13, 2024
0f4a0ff
feat: Add quantity and cart buttons for purchase handling
DenielGrin Jul 15, 2024
82395f9
feat: Add recommendation and empty states screen
DenielGrin Jul 15, 2024
e2ce8ae
feat: Add loading
DenielGrin Jul 15, 2024
9335cab
fix: Reformat code and change cart string key
DenielGrin Jul 15, 2024
a89cced
refactor: Rename home tab and add search view and search view model
DenielGrin Jul 16, 2024
2100ce9
feat: Add search screen with items and search history
DenielGrin Jul 16, 2024
cebdb1b
feat: Add detekting total count
DenielGrin Jul 16, 2024
5030d5d
feat: Add detekting total count
DenielGrin Jul 16, 2024
9b705e8
feat: Add clicking on search history and alignment progress view
DenielGrin Jul 16, 2024
41d1166
feat: Navigation to search result
DenielGrin Jul 16, 2024
00a208a
fix: Add logs only in debug flavor
DenielGrin Jul 16, 2024
52d29e0
feat: Add search result model and showing search result screen
DenielGrin Jul 16, 2024
552eebc
feat: Add frameworks like a modules
DenielGrin Jul 16, 2024
cd6c6da
feat: Add search result screen list, navigation and texts
DenielGrin Jul 16, 2024
2bd3301
feat: Add packages and move files to directories
DenielGrin Jul 18, 2024
37a26d3
refactor: Delete AppDelegate.swift, move models in data layer
DenielGrin Jul 18, 2024
d48ee5f
refactor: Remove unused testing packages and classes
DenielGrin Jul 18, 2024
32df8d0
refactor: Change injecting sdk manager
DenielGrin Jul 18, 2024
ef4c5d8
feat: Add home and cart resolvers
DenielGrin Jul 18, 2024
e548326
refactor: remove useless testing files and packages
DenielGrin Jul 19, 2024
471b3ee
feat: Add visitor protocol for navigation
DenielGrin Jul 19, 2024
a521b4b
feat: Separete data from bottom nav.view
DenielGrin Jul 19, 2024
70875bf
feat: Simplify navigation with overloaded `navigateTo` methods
DenielGrin Jul 21, 2024
cf4d4e7
feat: Add timer, navigation component, change set background in conte…
DenielGrin Jul 21, 2024
36001dd
feat: Add timer to others screens
DenielGrin Jul 21, 2024
970aa18
fix: Remove useless func
DenielGrin Jul 21, 2024
9bddc9c
refactor: Remove comments
DenielGrin Jul 21, 2024
bbcd377
refactor: The location of files in the project directory has been cha…
DenielGrin Jul 23, 2024
7c56c1a
refactor: Change data classes location and add func for initializing …
DenielGrin Jul 23, 2024
7ae3750
refactor: Add environments and move utils in package
DenielGrin Jul 23, 2024
ce88549
refactor: Move struct in package model
DenielGrin Jul 23, 2024
b18ade3
refactor: Add actual resolver, initialization view models,use cases a…
DenielGrin Jul 24, 2024
af49e86
chore: Add resolver in pods
DenielGrin Jul 24, 2024
534ebd7
chore: Add product blocks code in config variables
DenielGrin Jul 24, 2024
f27be8f
chore: Add localizable strings
DenielGrin Jul 24, 2024
4d008f2
chore(pods): Update sdk version
DenielGrin Jul 29, 2024
e9bf81d
feat(core): Revert sdk initialization classes and update sdk version
DenielGrin Jul 29, 2024
d112b9f
refactor(app): Add suffix for structs and protocols
DenielGrin Aug 2, 2024
270b971
refactor(app): Remove logs and hardcode products id
DenielGrin Aug 2, 2024
f6cf400
refactor(navigation): Optimized navigation to screens
DenielGrin Aug 2, 2024
b22aa29
refactor(home): Optimized loading recommendation products
DenielGrin Aug 2, 2024
71b62e0
refactor(core): Add colors and sizes structs
DenielGrin Aug 2, 2024
8519d1b
refactor(feature): Added generalized size values
DenielGrin Aug 5, 2024
cf58441
refactor(app): Add colors and sizes from constants
DenielGrin Aug 5, 2024
35291d5
refactor(app): Separate product view
DenielGrin Aug 5, 2024
dcd81d0
refactor(app): Separate cart view and cart items & add reusable sizes
DenielGrin Aug 5, 2024
e78dd61
refactor(app): Moved sizes, colors & typography in app module
DenielGrin Aug 7, 2024
9292243
refactor(app): Remove hardcode sizes from toolbar
DenielGrin Aug 7, 2024
f30e211
refactor(cart): Rename cart views and used sizes from constants
DenielGrin Aug 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Handling visibility toolbar block
DenielGrin committed Jul 5, 2024

Verified

This commit was signed with the committer’s verified signature.
DenielGrin Deniel Grin
commit beb14f3176c14d1fee92f0b317deea65d92b127c
8 changes: 6 additions & 2 deletions demo-store-ios/features/main/MainScreenView.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

import SwiftUI

struct MainScreenView: View {
@EnvironmentObject var navigationManager: NavigationManager

var body: some View {
NavigationView {
VStack {
Text("main_tab_title")
.foregroundColor(.white)
}
.navigationTitle("main_tab_title")
.background(Color.black.edgesIgnoringSafeArea(.all))
.background(Color.black.edgesIgnoringSafeArea(.all))
.onAppear {
navigationManager.setToolbarHidden(hidden: false)
}
}
}
}
58 changes: 30 additions & 28 deletions demo-store-ios/mainSubView/ToolbarView.swift
Original file line number Diff line number Diff line change
@@ -19,35 +19,37 @@ struct ToolbarView: View {
.foregroundColor(.white)
}
.frame(height: 50)

HStack(spacing: 20) {

Image("MenuIcon")
.resizable()
.renderingMode(.template)
.frame(width: 24, height: 24)
.foregroundColor(.black)
.padding(.leading, 12)

Spacer()

Image("SearchIcon")
.resizable()
.renderingMode(.template)
.frame(width: 30, height: 30)
.foregroundColor(.black)

Image("CartIcon")
.resizable()
.renderingMode(.template)
.frame(width: 30, height: 30)
.foregroundColor(.black)
.padding(.trailing, 12)
.onTapGesture {
navigationManager.navigateTo(screen: AnyView(CartScreenView()))
}
if !navigationManager.isToolbarHidden {
HStack(spacing: 20) {

Image("MenuIcon")
.resizable()
.renderingMode(.template)
.frame(width: 24, height: 24)
.foregroundColor(.black)
.padding(.leading, 12)

Spacer()

Image("SearchIcon")
.resizable()
.renderingMode(.template)
.frame(width: 30, height: 30)
.foregroundColor(.black)

Image("CartIcon")
.resizable()
.renderingMode(.template)
.frame(width: 30, height: 30)
.foregroundColor(.black)
.padding(.trailing, 12)
.onTapGesture {
navigationManager.navigateTo(screen: AnyView(CartScreenView()))
}
}
.frame(height: 50)
}
.frame(height: 50)

}
.background(Color.white)
}
4 changes: 4 additions & 0 deletions demo-store-ios/navigation/NavigationManager.swift
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ class NavigationManager: ObservableObject {
self.currentScreenType = type(of: screen)
}

func setToolbarHidden(hidden: Bool) {
self.isToolbarHidden = hidden
}

func navigateBack() {
// Implement navigation back logic if needed
}