https://github.com/jacobkosmart/fruitsdic-ios-practice
To Practice onboarding , List, detail and setting View
https://github.com/jacobkosmart/fruitsdic-ios-practice
disclosure foreach-loop lifecycle swiftui webview
Last synced: about 2 months ago
JSON representation
To Practice onboarding , List, detail and setting View
- Host: GitHub
- URL: https://github.com/jacobkosmart/fruitsdic-ios-practice
- Owner: jacobkosmart
- Created: 2022-01-11T02:49:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-12T06:49:26.000Z (over 4 years ago)
- Last Synced: 2024-12-28T03:27:51.921Z (over 1 year ago)
- Topics: disclosure, foreach-loop, lifecycle, swiftui, webview
- Language: Swift
- Homepage:
- Size: 10.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π FruitsDic-ios-practice

## π Main Features
- OnBoding Screen with Page Tab View
- Data model and fetch data
- SwiftUI App life cycle works
- Link View in SwiftUI
- Disclosure View in SwiftUI
- Display views dynamically in a list view with loop
## π Project Setup
- Device Orientation : Portrait
- assets import
- Appicon
- Fruits
- logo : It is svg file that need to selecting preserve vector data in image set. It can be scalable sized in vector file
- Colors : To show fruits background color individually
- Accent Colors : It is widely used for Buttons and other different UI elements in navigation

## π Check Point !
### π· UI Structure



### π· Model
```swift
// FruitsModel.swift
import SwiftUI
// MARK: - Fruit Model
struct Fruit: Identifiable {
var id = UUID()
var title: String
var headline: String
var image: String
var gradientColors: [Color]
var description: String
var nutrition: [String]
}
```
### π· Check core codes in details
#### π [1.Onboarding screen using the new page TabView](https://github.com/jacobkosmart/FruitsDic-ios-practice/blob/main/MD/1.CreateOnboardingScreen.md)
#### π [2.Create data model and fetch data](https://github.com/jacobkosmart/FruitsDic-ios-practice/blob/main/MD/2.DataModel_FetchData.md)
#### π [3.SwiftUI LifeCycle](https://github.com/jacobkosmart/FruitsDic-ios-practice/blob/main/MD/3.SwiftUI_LifeCycle.md)
#### π [4.ListView and Retrieve data using ForEach loop](https://github.com/jacobkosmart/FruitsDic-ios-practice/blob/main/MD/4.ListView_RetrieveData.md)
#### π [5.DetailView](https://github.com/jacobkosmart/FruitsDic-ios-practice/blob/main/MD/5.DetailView_layout.md)
#### π [6.SettingView](https://github.com/jacobkosmart/FruitsDic-ios-practice/blob/main/MD/6.SettingView.md)
#### π [7.iPad Layout](https://github.com/jacobkosmart/FruitsDic-ios-practice/blob/main/MD/7.iPadLayout.md)
---
## π Reference
The Simple Life(cycle) of a SwiftUI View- [https://dbolella.medium.com/the-simple-life-cycle-of-a-swiftui-view-95e2e14848a2](https://dbolella.medium.com/the-simple-life-cycle-of-a-swiftui-view-95e2e14848a2)
Developer apple docs in DisclosureGroup - [https://developer.apple.com/documentation/swiftui/disclosuregroup](https://developer.apple.com/documentation/swiftui/disclosuregroup)
μκ·Ό κ°λ°λ
ΈνΈ swiftUI - [https://seons-dev.tistory.com/50](https://seons-dev.tistory.com/50)
Udemy SwiftUI Masterclass 2022 - [https://www.udemy.com/course/swiftui-masterclass-course-ios-development-with-swift/](https://www.udemy.com/course/swiftui-masterclass-course-ios-development-with-swift/)