Skip to content

Commit 84dd955

Browse files
committed
Initial commit
1 parent 7db1566 commit 84dd955

File tree

170 files changed

+3000
-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.

170 files changed

+3000
-1
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
/*.xcodeproj
5+
xcuserdata/
6+
DerivedData/
7+
.swiftpm/config/registries.json
8+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
9+
.netrc

GoodReactor-Sample/GoodReactor-Sample.xcodeproj/project.pbxproj

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

GoodReactor-Sample/GoodReactor-Sample.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>

GoodReactor-Sample/GoodReactor-Sample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//
2+
// AppDelegate.swift
3+
// GoodReactor-Sample
4+
//
5+
// Created by GoodRequest on 08/02/2023.
6+
//
7+
8+
import UIKit
9+
10+
@main
11+
class AppDelegate: UIResponder, UIApplicationDelegate {
12+
13+
var window: UIWindow?
14+
15+
func application(
16+
_ application: UIApplication,
17+
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
18+
) -> Bool {
19+
window = UIWindow()
20+
21+
UINavigationBar.configureAppearance()
22+
23+
AppCoordinator(window: window).start()
24+
25+
return true
26+
}
27+
28+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<device id="retina6_12" orientation="portrait" appearance="light"/>
4+
<dependencies>
5+
<deployment identifier="iOS"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
7+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
8+
<capability name="System colors in document resources" minToolsVersion="11.0"/>
9+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10+
</dependencies>
11+
<scenes>
12+
<!--View Controller-->
13+
<scene sceneID="EHf-IW-A2E">
14+
<objects>
15+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
16+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
18+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
20+
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
21+
</view>
22+
</viewController>
23+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
24+
</objects>
25+
<point key="canvasLocation" x="53" y="375"/>
26+
</scene>
27+
</scenes>
28+
<resources>
29+
<systemColor name="systemBackgroundColor">
30+
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
31+
</systemColor>
32+
</resources>
33+
</document>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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>CFBundleDocumentTypes</key>
6+
<array>
7+
<dict>
8+
<key>CFBundleTypeRole</key>
9+
<string>Viewer</string>
10+
<key>LSItemContentTypes</key>
11+
<array>
12+
<string>com.example.plain-text</string>
13+
</array>
14+
</dict>
15+
</array>
16+
<key>UTImportedTypeDeclarations</key>
17+
<array>
18+
<dict>
19+
<key>UTTypeConformsTo</key>
20+
<array>
21+
<string>public.plain-text</string>
22+
</array>
23+
<key>UTTypeDescription</key>
24+
<string>Example Text</string>
25+
<key>UTTypeIdentifier</key>
26+
<string>com.example.plain-text</string>
27+
<key>UTTypeTagSpecification</key>
28+
<dict>
29+
<key>public.filename-extension</key>
30+
<array>
31+
<string>exampletext</string>
32+
</array>
33+
</dict>
34+
</dict>
35+
</array>
36+
</dict>
37+
</plist>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// AboutCoordinator.swift
3+
// GoodReactor-Sample
4+
//
5+
// Created by GoodRequest on 08/02/2023.
6+
//
7+
8+
import UIKit
9+
10+
enum AboutStep {}
11+
12+
class AboutCoordinator: Coordinator<AppStep> {
13+
14+
override func start() -> AboutViewController {
15+
super.start()
16+
17+
let aboutViewModel = AboutViewModel(coordinator: self)
18+
let aboutViewController = AboutViewController(viewModel: aboutViewModel)
19+
20+
if rootViewController == nil {
21+
rootViewController = aboutViewController
22+
}
23+
24+
return aboutViewController
25+
}
26+
27+
override func navigate(to stepper: AppStep) -> StepAction {
28+
switch stepper {
29+
case .safari(let url):
30+
return .safari(url)
31+
32+
default:
33+
return .none
34+
}
35+
}
36+
37+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//
2+
// AppCoordinator.swift
3+
// GoodReactor-Sample
4+
//
5+
// Created by GoodRequest on 08/02/2023.
6+
//
7+
8+
import UIKit
9+
10+
enum AppStep {
11+
12+
case home(HomeStep)
13+
case safari(URL)
14+
15+
}
16+
17+
final class AppCoordinator: Coordinator<AppStep> {
18+
19+
// MARK: - Constants
20+
21+
private let window: UIWindow?
22+
23+
// MARK: - Init
24+
25+
init(window: UIWindow?) {
26+
self.window = window
27+
}
28+
29+
@discardableResult
30+
override func start() -> UIViewController? {
31+
super.start()
32+
33+
window?.rootViewController = HomeCoordinator().start()
34+
window?.makeKeyAndVisible()
35+
36+
return window?.rootViewController
37+
}
38+
39+
}

0 commit comments

Comments
 (0)