Skip to content

Commit 976e55f

Browse files
authored
Initial commit
1 parent 56d1e99 commit 976e55f

File tree

80 files changed

+5270
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+5270
-1
lines changed

ExampleMVVM.xcodeproj/project.pbxproj

Lines changed: 1209 additions & 0 deletions
Large diffs are not rendered by default.

ExampleMVVM.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<array/>
5+
</plist>
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1010"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "1FA53388201E1FDE00747E55"
18+
BuildableName = "ExampleMVVM.app"
19+
BlueprintName = "ExampleMVVM"
20+
ReferencedContainer = "container:ExampleMVVM.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "1FA5339C201E1FDE00747E55"
36+
BuildableName = "ExampleMVVMTests.xctest"
37+
BlueprintName = "ExampleMVVMTests"
38+
ReferencedContainer = "container:ExampleMVVM.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
<TestableReference
42+
skipped = "NO">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "1F02DE3122F8507500E40C3A"
46+
BuildableName = "ExampleMVVMUITests.xctest"
47+
BlueprintName = "ExampleMVVMUITests"
48+
ReferencedContainer = "container:ExampleMVVM.xcodeproj">
49+
</BuildableReference>
50+
</TestableReference>
51+
</Testables>
52+
<MacroExpansion>
53+
<BuildableReference
54+
BuildableIdentifier = "primary"
55+
BlueprintIdentifier = "1FA53388201E1FDE00747E55"
56+
BuildableName = "ExampleMVVM.app"
57+
BlueprintName = "ExampleMVVM"
58+
ReferencedContainer = "container:ExampleMVVM.xcodeproj">
59+
</BuildableReference>
60+
</MacroExpansion>
61+
<AdditionalOptions>
62+
</AdditionalOptions>
63+
</TestAction>
64+
<LaunchAction
65+
buildConfiguration = "Debug"
66+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
67+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
68+
launchStyle = "0"
69+
useCustomWorkingDirectory = "NO"
70+
ignoresPersistentStateOnLaunch = "NO"
71+
debugDocumentVersioning = "YES"
72+
debugServiceExtension = "internal"
73+
allowLocationSimulation = "YES">
74+
<BuildableProductRunnable
75+
runnableDebuggingMode = "0">
76+
<BuildableReference
77+
BuildableIdentifier = "primary"
78+
BlueprintIdentifier = "1FA53388201E1FDE00747E55"
79+
BuildableName = "ExampleMVVM.app"
80+
BlueprintName = "ExampleMVVM"
81+
ReferencedContainer = "container:ExampleMVVM.xcodeproj">
82+
</BuildableReference>
83+
</BuildableProductRunnable>
84+
<AdditionalOptions>
85+
</AdditionalOptions>
86+
</LaunchAction>
87+
<ProfileAction
88+
buildConfiguration = "Release"
89+
shouldUseLaunchSchemeArgsEnv = "YES"
90+
savedToolIdentifier = ""
91+
useCustomWorkingDirectory = "NO"
92+
debugDocumentVersioning = "YES">
93+
<BuildableProductRunnable
94+
runnableDebuggingMode = "0">
95+
<BuildableReference
96+
BuildableIdentifier = "primary"
97+
BlueprintIdentifier = "1FA53388201E1FDE00747E55"
98+
BuildableName = "ExampleMVVM.app"
99+
BlueprintName = "ExampleMVVM"
100+
ReferencedContainer = "container:ExampleMVVM.xcodeproj">
101+
</BuildableReference>
102+
</BuildableProductRunnable>
103+
</ProfileAction>
104+
<AnalyzeAction
105+
buildConfiguration = "Debug">
106+
</AnalyzeAction>
107+
<ArchiveAction
108+
buildConfiguration = "Release"
109+
revealArchiveInOrganizer = "YES">
110+
</ArchiveAction>
111+
</Scheme>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
uuid = "1C920B8E-6619-40F3-B1DB-15CE3E81F142"
4+
type = "1"
5+
version = "2.0">
6+
</Bucket>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>ExampleMVVM.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>1FA53388201E1FDE00747E55</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
<key>1FA5339C201E1FDE00747E55</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
</dict>
26+
</dict>
27+
</plist>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// AppAppearance.swift
3+
// ExampleMVVM
4+
//
5+
// Created by Oleh on 23.09.18.
6+
//
7+
8+
import Foundation
9+
import UIKit
10+
11+
final class AppAppearance {
12+
13+
static func setupAppearance() {
14+
UINavigationBar.appearance().barTintColor = .black
15+
UINavigationBar.appearance().tintColor = .white
16+
UINavigationBar.appearance().titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white]
17+
}
18+
}
19+
20+
extension UINavigationController {
21+
@objc override open var preferredStatusBarStyle: UIStatusBarStyle {
22+
return .lightContent
23+
}
24+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//
2+
// AppConfigurations.swift
3+
// ExampleMVVM
4+
//
5+
// Created by Oleh Kudinov on 25.02.19.
6+
//
7+
8+
import Foundation
9+
10+
final class AppConfigurations {
11+
lazy var apiKey: String = {
12+
guard let apiKey = Bundle.main.object(forInfoDictionaryKey: "ApiKey") as? String else {
13+
fatalError("ApiKey must not be empty in plist")
14+
}
15+
return apiKey
16+
}()
17+
lazy var apiBaseURL: String = {
18+
guard let apiBaseURL = Bundle.main.object(forInfoDictionaryKey: "ApiBaseURL") as? String else {
19+
fatalError("ApiBaseURL must not be empty in plist")
20+
}
21+
return apiBaseURL
22+
}()
23+
lazy var imagesBaseURL: String = {
24+
guard let imageBaseURL = Bundle.main.object(forInfoDictionaryKey: "ImageBaseURL") as? String else {
25+
fatalError("ApiBaseURL must not be empty in plist")
26+
}
27+
return imageBaseURL
28+
}()
29+
}

0 commit comments

Comments
 (0)