Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ xcuserdata/
*.dSYM.zip
*.dSYM

# macOS
.DS_Store


## Playgrounds
timeline.xctimeline
playground.xcworkspace
Expand Down
36 changes: 36 additions & 0 deletions sopt-37th-02Seminar/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// AppDelegate.swift
// sopt-37th-02Seminar
//
// Created by JIN on 10/18/25.
//

import UIKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {



func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

// MARK: UISceneSession Lifecycle

func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


}

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "tinted"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions sopt-37th-02Seminar/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "28",
"green" : "26",
"red" : "24"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "217",
"green" : "211",
"red" : "209"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "179",
"green" : "184",
"red" : "40"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
21 changes: 21 additions & 0 deletions sopt-37th-02Seminar/Assets.xcassets/eye.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "bc5dcba2291b01249564325ded57c5d060e7319d.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "3ac827455c3e6b78f2429cd4362a163ce082b13a.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "배민 이미지.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"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.
25 changes: 25 additions & 0 deletions sopt-37th-02Seminar/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
36 changes: 36 additions & 0 deletions sopt-37th-02Seminar/Extension/UIFont.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// UIFont.swift
// sopt-37th-02Seminar
//
// Created by JIN on 10/26/25.
//

import Foundation
import UIKit

enum FontName: String {
case pretendardBold = "Pretendard-Bold"
case pretendardSemiBold = "Pretendard-SemiBold"
case pretendardLight = "Pretendard-Light"
case pretendardMedium = "Pretendard-Medium"
case pretendardRegular = "Pretendard-Regular"
case pretendardExtraBold = "Pretendard-ExtraBold"
}

extension UIFont {
static func font(_ style: FontName, ofSize size: CGFloat) -> UIFont {
guard let customFont = UIFont(name: style.rawValue, size: size) else {
return UIFont.systemFont(ofSize: size)
}
return customFont
}


@nonobjc class var size17: UIFont {
return UIFont.font(.pretendardSemiBold, ofSize: 17)
}

@nonobjc class var size24: UIFont {
return UIFont.font(.pretendardExtraBold, ofSize: 24)
}
}
15 changes: 15 additions & 0 deletions sopt-37th-02Seminar/Extension/UIStackView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// UIStackView.swift
// sopt-37th-02Seminar
//
// Created by JIN on 10/27/25.
//

import Foundation
import UIKit

extension UIStackView {
func addArrangedSubviews(_ views: UIView...) {
views.forEach { self.addArrangedSubview($0) }
}
}
44 changes: 44 additions & 0 deletions sopt-37th-02Seminar/Extension/UITextField.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//
// UITextField.swift
// sopt-37th-02Seminar
//
// Created by JIN on 10/27/25.
//

import Foundation
import UIKit

enum TextFieldStyle: Int {
case email
case password
}

extension UITextField {

func placeholderFallback() {

switch TextFieldStyle(rawValue: self.tag) {
case .email:
self.placeholder = "이메일 아이디"
case .password:
self.placeholder = "비밀번호"
default:
break
}

}

func addHorizontalPadding() {

let leftPadding = UIView(frame: CGRect(x: 0, y: 0, width: 15,height: self.frame.height))
self.leftView = leftPadding
self.leftViewMode = ViewMode.always

let rightPadding = UIView(frame: CGRect(x: 0, y: 0, width: 15,height: self.frame.height))
self.rightView = rightPadding
self.rightViewMode = ViewMode.always

}


}
Loading