Skip to content

Commit

Permalink
make history
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-private committed Jul 17, 2021
1 parent 8131ca4 commit f0cd7f3
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 0 deletions.
28 changes: 28 additions & 0 deletions PayNote.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

/* Begin PBXBuildFile section */
091FB4F126A2967600AD4812 /* MainTabBarItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 091FB4F026A2967600AD4812 /* MainTabBarItem.swift */; };
091FB50F26A3214A00AD4812 /* HistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 091FB50E26A3214A00AD4812 /* HistoryViewController.swift */; };
091FB51126A3218700AD4812 /* HistoryPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 091FB51026A3218700AD4812 /* HistoryPresenter.swift */; };
091FB51426A321F800AD4812 /* History.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 091FB51326A321F800AD4812 /* History.storyboard */; };
09AEDB3E267F2F70003CA186 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09AEDB3D267F2F70003CA186 /* AppDelegate.swift */; };
09AEDB40267F2F70003CA186 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09AEDB3F267F2F70003CA186 /* SceneDelegate.swift */; };
09AEDB47267F2F73003CA186 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 09AEDB46267F2F73003CA186 /* Assets.xcassets */; };
Expand Down Expand Up @@ -50,6 +53,9 @@

/* Begin PBXFileReference section */
091FB4F026A2967600AD4812 /* MainTabBarItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainTabBarItem.swift; sourceTree = "<group>"; };
091FB50E26A3214A00AD4812 /* HistoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HistoryViewController.swift; sourceTree = "<group>"; };
091FB51026A3218700AD4812 /* HistoryPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HistoryPresenter.swift; sourceTree = "<group>"; };
091FB51326A321F800AD4812 /* History.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = History.storyboard; sourceTree = "<group>"; };
09AEDB3A267F2F70003CA186 /* PayNote.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PayNote.app; sourceTree = BUILT_PRODUCTS_DIR; };
09AEDB3D267F2F70003CA186 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
09AEDB3F267F2F70003CA186 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -125,6 +131,24 @@
path = View;
sourceTree = "<group>";
};
091FB50D26A3211B00AD4812 /* History */ = {
isa = PBXGroup;
children = (
091FB51226A321B300AD4812 /* View */,
091FB51026A3218700AD4812 /* HistoryPresenter.swift */,
);
path = History;
sourceTree = "<group>";
};
091FB51226A321B300AD4812 /* View */ = {
isa = PBXGroup;
children = (
091FB50E26A3214A00AD4812 /* HistoryViewController.swift */,
091FB51326A321F800AD4812 /* History.storyboard */,
);
path = View;
sourceTree = "<group>";
};
09AEDB31267F2F70003CA186 = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -156,6 +180,7 @@
09AEDB3F267F2F70003CA186 /* SceneDelegate.swift */,
09B541DD2687713D003C37AB /* MainTab */,
09B541CC268713EB003C37AB /* Home */,
091FB50D26A3211B00AD4812 /* History */,
09B541BE2686FCD9003C37AB /* Transitioner.swift */,
09AEDB46267F2F73003CA186 /* Assets.xcassets */,
09B5421626927B2A003C37AB /* ColorManager.swift */,
Expand Down Expand Up @@ -358,6 +383,7 @@
09B541E626878E5A003C37AB /* Localizable.strings in Resources */,
09AEDB4A267F2F73003CA186 /* LaunchScreen.storyboard in Resources */,
09AEDB47267F2F73003CA186 /* Assets.xcassets in Resources */,
091FB51426A321F800AD4812 /* History.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -525,6 +551,8 @@
09B541E126877904003C37AB /* MainTabRouter.swift in Sources */,
09B541EB26878FCC003C37AB /* HomePresenter.swift in Sources */,
09AEDB40267F2F70003CA186 /* SceneDelegate.swift in Sources */,
091FB50F26A3214A00AD4812 /* HistoryViewController.swift in Sources */,
091FB51126A3218700AD4812 /* HistoryPresenter.swift in Sources */,
09B5421726927B2A003C37AB /* ColorManager.swift in Sources */,
09B541C226870794003C37AB /* R.generated.swift in Sources */,
09B541BD2686F736003C37AB /* MainTabBarController.swift in Sources */,
Expand Down
16 changes: 16 additions & 0 deletions PayNote/History/HistoryPresenter.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// HistoryPresenter.swift
// PayNote
//
// Created by 若江照仁 on 2021/07/17.
//

import Foundation

protocol HistoryPresenterProtocol: AnyObject {
var view: HistoryViewProtocol? { get set }
}

final class HistoryPresenter: HistoryPresenterProtocol {
weak var view: HistoryViewProtocol?
}
32 changes: 32 additions & 0 deletions PayNote/History/View/History.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--History View Controller-->
<scene sceneID="s0d-6b-0kx">
<objects>
<viewController storyboardIdentifier="HistoryViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="Y6W-OH-hqX" customClass="HistoryViewController" customModule="PayNote" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="5EZ-qb-Rvc">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="vDu-zF-Fre"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="132" y="116"/>
</scene>
</scenes>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
19 changes: 19 additions & 0 deletions PayNote/History/View/HistoryViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// HistoryViewController.swift
// PayNote
//
// Created by 若江照仁 on 2021/07/17.
//

import UIKit

protocol HistoryViewProtocol: Transitioner {
var presenter: HomePresenterProtocol? { get set }
}

class HistoryViewController: UIViewController, HistoryViewProtocol {
var presenter: HomePresenterProtocol?
override func viewDidLoad() {
super.viewDidLoad()
}
}

0 comments on commit f0cd7f3

Please sign in to comment.