Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/TeamHavit/Havit-iOS into…
Browse files Browse the repository at this point in the history
… feature/39-reachrate-view
  • Loading branch information
YoonAh-dev committed Jan 18, 2022
2 parents d9e47c5 + 5e2c03d commit 7719ba9
Show file tree
Hide file tree
Showing 74 changed files with 1,692 additions and 183 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ playground.xcworkspace
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

Expand Down
4 changes: 4 additions & 0 deletions .precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ identifier_name:
- id

force_cast: warning

identifier_name:
min_length:
warning: 1 # only warning
149 changes: 125 additions & 24 deletions Havit/Havit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions Havit/Havit/Coordinator/CategoryContentsCooridnator.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// CategoryContentsCooridnator.swift
// Havit
//
// Created by 박예빈 on 2022/01/14.
//

import Foundation

final class CategoryContentsCoordinator: BaseCoordinator {

enum CategoryContentsTransition {
case pop
}

override func start() {
let categoryContents = CategoryContentsViewController()
categoryContents.coordinator = self
navigationController.pushViewController(categoryContents, animated: true)
}

func previous(to transition: CategoryContentsTransition) {
switch transition {
case .pop:
parentCoordinator?.didFinish(coordinator: self)
navigationController.popViewController(animated: true)
}
}
}
29 changes: 29 additions & 0 deletions Havit/Havit/Coordinator/EditCategoryCoordinator.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// EditCategoryCoordinator.swift
// Havit
//
// Created by 김수연 on 2022/01/16.
//

import Foundation

final class EditCategoryCoordinator: BaseCoordinator {

enum EditCategoryTransition {
case previous
}

override func start() {
let editCategoryViewController = EditCategoryViewController()
editCategoryViewController.coordinator = self
navigationController.pushViewController(editCategoryViewController, animated: true)
}

func performTransition(to transition: EditCategoryTransition) {
switch transition {
case .previous:
parentCoordinator?.didFinish(coordinator: self)
navigationController.popViewController(animated: true)
}
}
}
30 changes: 26 additions & 4 deletions Havit/Havit/Global/Extension/UIView+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import UIKit

extension UIView {
@discardableResult
func makeShadow(_ color: UIColor,
_ opacity: Float,
_ offset: CGSize,
_ radius: CGFloat) -> Self {
func makeShadow(color: UIColor,
opacity: Float,
offset: CGSize,
radius: CGFloat) -> Self {
layer.shadowColor = color.cgColor
layer.shadowOpacity = opacity
layer.shadowOffset = offset
Expand All @@ -35,6 +35,28 @@ extension UIView {
return self
}

@discardableResult
func applyZeplinShadow (color: UIColor = .black,
alpha: Float,
x: CGFloat,
y: CGFloat,
blur: CGFloat,
spread: CGFloat) -> Self {
layer.masksToBounds = false
layer.shadowColor = color.cgColor
layer.shadowOpacity = alpha
layer.shadowOffset = CGSize(width: x, height: y)
layer.shadowRadius = blur / 2.0
if spread == 0 {
layer.shadowPath = nil
} else {
let dx = -spread
let rect = bounds.insetBy(dx: dx, dy: dx)
layer.shadowPath = UIBezierPath(rect: rect).cgPath
}
return self
}

func addSubView<T: UIView>(_ subview: T, completionHandler closure: ((T) -> Void)? = nil) {
addSubview(subview)
closure?(subview)
Expand Down
9 changes: 9 additions & 0 deletions Havit/Havit/Global/Literal/ImageLiteral.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,23 @@ enum ImageLiteral {

static var iconAlarmtagEnd: UIImage { .load(named: "iconAlarmtagEnd")}
static var iconAlarmtagPuple: UIImage { .load(named: "iconAlarmtagPuple")}
static var iconBackBlack: UIImage { .load(named: "iconBackBlack")}
static var iconBackspaceBlack: UIImage { .load(named: "iconBackspaceBlack")}
static var iconBackspaceGray: UIImage { .load(named: "iconBackspaceGray")}
static var iconCategory: UIImage { .load(named: "iconCategory")}
static var iconCategoryAdd: UIImage { .load(named: "iconCategoryAdd")}
static var iconCategoryMove: UIImage { .load(named: "iconCategoryMove")}
static var iconCategorySelected: UIImage { .load(named: "iconCategorySelected")}
static var iconCategoryUnselected: UIImage { .load(named: "iconCategoryUnselected")}
static var iconCheck: UIImage { .load(named: "iconCheck")}
static var iconChipGray: UIImage { .load(named: "iconChipGray")}
static var iconContentsRead: UIImage { .load(named: "iconContentsRead")}
static var iconContentsUnread: UIImage { .load(named: "iconContentsUnread")}
static var iconDelete: UIImage { .load(named: "iconDelete")}
static var iconDropBlack: UIImage { .load(named: "iconDropBlack")}
static var iconEdit: UIImage { .load(named: "iconEdit")}
static var iconForwardBlack: UIImage { .load(named: "iconForwardBlack")}
static var iconForwardGray: UIImage { .load(named: "iconForwardGray")}
static var iconGoGray: UIImage { .load(named: "iconGoGray")}
static var iconHandGray: UIImage { .load(named: "iconHandGray")}
static var iconHomeSelected: UIImage { .load(named: "iconHomeSelected")}
Expand All @@ -42,6 +49,8 @@ enum ImageLiteral {
static var iconMypageSelected: UIImage { .load(named: "iconMypageSelected")}
static var iconMypageUnselected: UIImage { .load(named: "iconMypageUnselected")}
static var iconNoticeIcon: UIImage { .load(named: "iconNoticeIcon")}
static var iconRefresh: UIImage { .load(named: "iconRefresh")}
static var iconSafari: UIImage { .load(named: "iconSafari")}
static var iconSearch: UIImage { .load(named: "iconSearch")}
static var iconShare: UIImage { .load(named: "iconShare")}
static var iconUpdown: UIImage { .load(named: "iconUpdown")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "btnAdd.png"
"filename" : "btnAdd.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
"filename" : "[email protected]",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
"scale" : "3x"
}
],
"info" : {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "iconBackBlack.png",
"scale" : "1x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "2x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "iconBackspaceBlack.png",
"scale" : "1x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "2x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "iconBackspaceGray.png",
"scale" : "1x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "2x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "iconContentsRead.png",
"scale" : "1x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "2x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "iconContentsUnread.png",
"scale" : "1x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "2x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "iconForwardBlack.png",
"scale" : "1x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "2x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "iconForwardGray.png",
"scale" : "1x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "2x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "iconRefresh.png",
"scale" : "1x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "2x",
"idiom" : "universal"
},
{
"filename" : "[email protected]",
"scale" : "3x",
"idiom" : "universal"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7719ba9

Please sign in to comment.