-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat] 메인 뷰 데모
- Loading branch information
Showing
10 changed files
with
503 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// UIColor.swift | ||
// SOPKATHON_Kick | ||
// | ||
// Created by 한상진 on 2021/05/23. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
extension UIColor { | ||
|
||
// MARK: hex 변환 가능 init | ||
convenience init(hex: UInt, alpha: CGFloat = 1.0) { | ||
self.init( | ||
red: CGFloat((hex & 0xFF0000) >> 16) / 255.0, | ||
green: CGFloat((hex & 0x00FF00) >> 8) / 255.0, | ||
blue: CGFloat(hex & 0x0000FF) / 255.0, | ||
alpha: CGFloat(alpha) | ||
) | ||
} | ||
|
||
class var main_Color: UIColor { UIColor(hex: 0xFF6C6C) } | ||
|
||
|
||
} |
15 changes: 15 additions & 0 deletions
15
SOPKATHON_Kick/Sources/Home/Cell/HomeCollectionViewCell.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// HomeCollectionViewCell.swift | ||
// SOPKATHON_Kick | ||
// | ||
// Created by 한상진 on 2021/05/23. | ||
// | ||
|
||
import UIKit | ||
|
||
class HomeCollectionViewCell: UICollectionViewCell { | ||
|
||
@IBOutlet weak var image: UIImageView! | ||
@IBOutlet weak var title: UILabel! | ||
@IBOutlet weak var content: UILabel! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// HomeTableViewCell.swift | ||
// SOPKATHON_Kick | ||
// | ||
// Created by 한상진 on 2021/05/23. | ||
// | ||
|
||
import UIKit | ||
|
||
class HomeTableViewCell: UITableViewCell { | ||
|
||
@IBOutlet weak var title: UILabel! | ||
@IBOutlet weak var content: UILabel! | ||
@IBOutlet weak var clickAndTime: UILabel! | ||
@IBOutlet weak var like: UILabel! | ||
|
||
|
||
override func awakeFromNib() { | ||
super.awakeFromNib() | ||
// Initialization code | ||
} | ||
|
||
override func setSelected(_ selected: Bool, animated: Bool) { | ||
super.setSelected(selected, animated: animated) | ||
|
||
// Configure the view for the selected state | ||
} | ||
|
||
} |
Oops, something went wrong.