Last active
August 4, 2022 07:06
-
-
Save aryasurya21/6db9842e40fce59ed2759bb23c1fe3f8 to your computer and use it in GitHub Desktop.
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
// | |
// Route.swift | |
// Shared | |
// | |
// Created by arya.cia on 04/08/22. | |
// | |
import Foundation | |
public enum Destination { | |
case productDetailPage(product: Product) | |
} | |
public class Router { | |
public static var route: ((Destination)->Void)? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment