Skip to content

Commit

Permalink
Merge pull request #11 from mini-min/feature/#4
Browse files Browse the repository at this point in the history
[#4] - 로그인 화면 구현, pod 추가
  • Loading branch information
mini-min authored Sep 22, 2021
2 parents c9278b6 + cd862b3 commit 1ffb1ff
Show file tree
Hide file tree
Showing 89 changed files with 8,073 additions and 559 deletions.
20 changes: 20 additions & 0 deletions NADA-iOS-forRelease.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
objects = {

/* Begin PBXBuildFile section */
3909242F26FA15E800236C51 /* UIView+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3909242E26FA15E800236C51 /* UIView+Extension.swift */; };
3979709626FA0BE5003FB4F5 /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3979709526FA0BE5003FB4F5 /* LoginViewController.swift */; };
3979709826FA0BF0003FB4F5 /* Login.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3979709726FA0BF0003FB4F5 /* Login.storyboard */; };
DBBB91E1639641F40C5B4416 /* Pods_NADA_iOS_forRelease.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A2183AE0E469153221624A0 /* Pods_NADA_iOS_forRelease.framework */; };
F83206AA26F61E3700D61711 /* FrontCardCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F83206A826F61E3700D61711 /* FrontCardCell.swift */; };
F83206AB26F61E3700D61711 /* FrontCardCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F83206A926F61E3700D61711 /* FrontCardCell.xib */; };
Expand All @@ -31,6 +34,9 @@

/* Begin PBXFileReference section */
1E770167DDA25A2CE063AA5C /* Pods-NADA-iOS-forRelease.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NADA-iOS-forRelease.release.xcconfig"; path = "Target Support Files/Pods-NADA-iOS-forRelease/Pods-NADA-iOS-forRelease.release.xcconfig"; sourceTree = "<group>"; };
3909242E26FA15E800236C51 /* UIView+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+Extension.swift"; sourceTree = "<group>"; };
3979709526FA0BE5003FB4F5 /* LoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginViewController.swift; sourceTree = "<group>"; };
3979709726FA0BF0003FB4F5 /* Login.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Login.storyboard; sourceTree = "<group>"; };
4A2183AE0E469153221624A0 /* Pods_NADA_iOS_forRelease.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NADA_iOS_forRelease.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7F4EE1D042EC783FA8528743 /* Pods-NADA-iOS-forRelease.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NADA-iOS-forRelease.debug.xcconfig"; path = "Target Support Files/Pods-NADA-iOS-forRelease/Pods-NADA-iOS-forRelease.debug.xcconfig"; sourceTree = "<group>"; };
F83206A826F61E3700D61711 /* FrontCardCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FrontCardCell.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -77,6 +83,14 @@
path = Pods;
sourceTree = "<group>";
};
3979709426FA0BD8003FB4F5 /* Login */ = {
isa = PBXGroup;
children = (
3979709526FA0BE5003FB4F5 /* LoginViewController.swift */,
);
path = Login;
sourceTree = "<group>";
};
4D28D444572353D68574D2B0 /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -202,6 +216,7 @@
F8FC43A026C01F040033E151 /* ViewControllers */ = {
isa = PBXGroup;
children = (
3979709426FA0BD8003FB4F5 /* Login */,
F8FC438926C01CDD0033E151 /* MainViewController.swift */,
);
path = ViewControllers;
Expand All @@ -220,6 +235,7 @@
children = (
F8FC439026C01CDE0033E151 /* LaunchScreen.storyboard */,
F8FC438B26C01CDD0033E151 /* Main.storyboard */,
3979709726FA0BF0003FB4F5 /* Login.storyboard */,
);
path = Storyboards;
sourceTree = "<group>";
Expand All @@ -238,6 +254,7 @@
isa = PBXGroup;
children = (
F8FC43A626C020780033E151 /* TempExtensions.swift */,
3909242E26FA15E800236C51 /* UIView+Extension.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -312,6 +329,7 @@
files = (
F8FC43BF26C025180033E151 /* .swiftlint.yml in Resources */,
F83206AB26F61E3700D61711 /* FrontCardCell.xib in Resources */,
3979709826FA0BF0003FB4F5 /* Login.storyboard in Resources */,
F8FC439226C01CDE0033E151 /* LaunchScreen.storyboard in Resources */,
F8FC438F26C01CDE0033E151 /* Assets.xcassets in Resources */,
F8FC438D26C01CDD0033E151 /* Main.storyboard in Resources */,
Expand Down Expand Up @@ -386,7 +404,9 @@
files = (
F8FC43B126C020A70033E151 /* TempNetwork.swift in Sources */,
F8FC438A26C01CDD0033E151 /* MainViewController.swift in Sources */,
3909242F26FA15E800236C51 /* UIView+Extension.swift in Sources */,
F83206AA26F61E3700D61711 /* FrontCardCell.swift in Sources */,
3979709626FA0BE5003FB4F5 /* LoginViewController.swift in Sources */,
F8FC43AF26C0209A0033E151 /* TempModel.swift in Sources */,
F8FC43A726C020780033E151 /* TempExtensions.swift in Sources */,
F8FC43B826C0227D0033E151 /* Const.swift in Sources */,
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" : "Apple Logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Apple Logo@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Apple Logo@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "pngaaa 1.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "pngaaa 1@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "pngaaa 1@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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" : "Group 1.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Group 1@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Group 1@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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.
65 changes: 65 additions & 0 deletions NADA-iOS-forRelease/Resouces/Extensions/UIView+Extension.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
//
// UIView+Extension.swift
// NADA-iOS-forRelease
//
// Created by 민 on 2021/09/21.
//

import Foundation
import UIKit

//@IBDesignable
extension UIView {

@IBInspectable
var cornerRadius: CGFloat {
get {
return layer.cornerRadius
}
set {
layer.cornerRadius = newValue
}
}


@IBInspectable
var borderWidth: CGFloat {
get {
return layer.borderWidth
}
set {
layer.borderWidth = newValue
}
}

@IBInspectable
var borderColor: UIColor? {
get {
if let color = layer.borderColor {
return UIColor(cgColor: color)
}
return nil
}
set {
if let color = newValue {
layer.borderColor = color.cgColor
} else {
layer.borderColor = nil
}
}
}
}

// MARK: - load xib

extension UIView {
static func loadFromXib(withOwner: Any? = nil, options: [UINib.OptionsKey: Any]? = nil) -> Self {
let bundle = Bundle(for: self)
let nib = UINib(nibName: "\(self)", bundle: bundle)

guard let view = nib.instantiate(withOwner: withOwner, options: options).first as? Self else {
fatalError("Could not load view from nib file.")
}
return view
}
}
Loading

0 comments on commit 1ffb1ff

Please sign in to comment.