Skip to content

Commit

Permalink
docs: add MARK comment
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-private committed Oct 2, 2021
1 parent 5773733 commit fb34fc5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions PayNote.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand Down Expand Up @@ -870,6 +871,7 @@
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_VERSION = 5.0;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down
5 changes: 3 additions & 2 deletions PayNote/Home/View/Home.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?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">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19162" 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"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
Expand Down
6 changes: 5 additions & 1 deletion PayNote/Home/View/HomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ protocol HomeViewProtocol: Transitioner {
}

class HomeViewController: UIViewController, HomeViewProtocol {
// MARK: - IBOutlet
@IBOutlet private weak var monthlyHeaderCollectionView: UICollectionView!
@IBOutlet private weak var mainCategoryTableView: UITableView!

var presenter: HomePresenterProtocol?
lazy var flowLayout = FlowLayout()

// MARK: - LifeCircle
override func viewDidLoad() {
super.viewDidLoad()
mainCategoryTableView.dataSource = self
Expand All @@ -34,7 +37,7 @@ class HomeViewController: UIViewController, HomeViewProtocol {
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
monthlyHeaderCollectionView.scrollToItem(at: IndexPath(row: 10, section: 0), at: .centeredHorizontally, animated: true)
monthlyHeaderCollectionView.scrollToItem(at: IndexPath(row: 9, section: 0), at: .centeredHorizontally, animated: true)
}

private func transformScale(cell: UICollectionViewCell) {
Expand All @@ -46,6 +49,7 @@ class HomeViewController: UIViewController, HomeViewProtocol {
let newScale = reductionRatio * cellCenterDisX + maxScale
cell.transform = CGAffineTransform(scaleX: newScale, y: newScale)
}

}

// MARK: - monthlyHeaderCollectionView
Expand Down
7 changes: 4 additions & 3 deletions PayNote/Home/View/MainCategoryTableViewCell.xib
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19162" 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"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand Down Expand Up @@ -193,7 +194,7 @@
</tableViewCell>
</objects>
<resources>
<image name="newspaper" catalog="system" width="128" height="108"/>
<image name="newspaper" catalog="system" width="128" height="111"/>
<namedColor name="MainBackGround">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
Expand Down

0 comments on commit fb34fc5

Please sign in to comment.