An open API service indexing awesome lists of open source software.

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

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

![image](https://user-images.githubusercontent.com/28912774/148872186-36e5f78e-f3d9-42e5-bf3e-53d8d810fb65.png)

## πŸ”‘ Check Point !

### πŸ”· UI Structure

![슬ᄅᅑ아드1](https://user-images.githubusercontent.com/28912774/149076078-289643ef-0697-426f-ac3f-ced40ddfea3e.jpeg)
![슬ᄅᅑ아드2](https://user-images.githubusercontent.com/28912774/149076088-0ba9be1d-4769-46f6-b9c9-22e8723bddee.jpeg)
![슬ᄅᅑ아드3](https://user-images.githubusercontent.com/28912774/149076094-7a85a25d-49d0-4f82-8445-960768859416.jpeg)

### πŸ”· 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/)