在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Dimillian/MortyUI开源软件地址(OpenSource Url):https://github.com/Dimillian/MortyUI开源编程语言(OpenSource Language):Swift 100.0%开源软件介绍(OpenSource Introduction):MortyUIA very simple Rick & Morty app to demo GraphQL + SwiftUI
This app have a very simple SwiftUI MVVM architecture. Each views have its own view model which consist of running a simple GraphQL query to fetch the necassary data. Once the data is set in the All the queries are in For now you can browse characters, episodes and locations (soon). Search is coming soon. To not slow the build process, this project is coming with a Swift package command line tool to generate the swift code using the new Apollo Swift scripting feature. It can also download the schema from the Rick & Morty API. It's not executed as part of the build process, if you modify the queries and wish to regenerate the API.swift file you'll need to:
and to download the schema
This is all an excercice for me to play a bit with GraphQL + SwiftUI. Nothing very exciting on the UI side. The exiting part is that it's actually very little code (just the UI code + some GraphQL queries) to have the app working. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论