This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct RecipeBaseClass: Codable, Hashable { | |
// ... | |
public var ingredients: [RecipeIngredients]? | |
public var originalURL: String? | |
public var imageURL: String? | |
public var steps: [String]? | |
public var name: String? | |
public var time: Int? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
struct HeartyRecipeWidgetSmallView: View { | |
var recipe: RecipeBaseClass? | |
var body: some View { | |
ZStack(alignment: .top) { | |
Color(.white) | |
VStack(alignment: .leading) { | |
Image.loadLocalImage(image: recipe?.imageURL ?? "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftUI | |
import HeartyRecipeHelper | |
class SceneDelegate: UIResponder, UIWindowSceneDelegate { | |
// ... | |
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RecipeRow.swift | |
// HeartyRecipe | |
// | |
// Created by Intan Nurjanah on 03/06/21. | |
// | |
import SwiftUI | |
import HeartyRecipeHelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DetailRecipeView.swift | |
// HeartyRecipe | |
// | |
// Created by Intan Nurjanah on 03/06/21. | |
// | |
import SwiftUI | |
struct DetailRecipeView: View { |
OlderNewer