Mercurial > public > geoquiz
annotate GeoQuiz/Models/Controllers/GameViewProtocol+Extension.swift @ 27:3f4b366d476d
add flag layout settings
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 10 Nov 2022 09:26:48 +0100 |
parents | |
children |
rev | line source |
---|---|
27 | 1 // |
2 // GameViewProtocol+Extension.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 9/11/22. | |
6 // | |
7 | |
8 import Foundation | |
9 | |
10 protocol GameView { | |
11 | |
12 } | |
13 | |
14 extension GameView { | |
15 func getFlagPath(forName flagName: String) -> String { | |
16 return Bundle.main.path(forResource: flagName, ofType: "png")! | |
17 } | |
18 | |
19 } |