-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from ChoiysApple/Develop
Version 1.3.0
- Loading branch information
Showing
35 changed files
with
862 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Uncomment the next line to define a global platform for your project | ||
# platform :ios, '9.0' | ||
|
||
target 'Popcat' do | ||
# Comment the next line if you don't want to use dynamic frameworks | ||
use_frameworks! | ||
|
||
# Pods for Popcat | ||
pod 'MaterialComponents/BottomSheet' | ||
|
||
end |
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,44 @@ | ||
PODS: | ||
- MaterialComponents/Availability (124.2.0) | ||
- MaterialComponents/BottomSheet (124.2.0): | ||
- MaterialComponents/Elevation | ||
- MaterialComponents/private/KeyboardWatcher | ||
- MaterialComponents/private/Math | ||
- MaterialComponents/ShadowElevations | ||
- MaterialComponents/ShadowLayer | ||
- MaterialComponents/ShapeLibrary | ||
- MaterialComponents/Shapes | ||
- MaterialComponents/Elevation (124.2.0): | ||
- MaterialComponents/Availability | ||
- MaterialComponents/private/Color | ||
- MaterialComponents/private/Math | ||
- MaterialComponents/private/Application (124.2.0) | ||
- MaterialComponents/private/Color (124.2.0): | ||
- MaterialComponents/Availability | ||
- MaterialComponents/private/KeyboardWatcher (124.2.0): | ||
- MaterialComponents/private/Application | ||
- MaterialComponents/private/Math (124.2.0) | ||
- MaterialComponents/ShadowElevations (124.2.0) | ||
- MaterialComponents/ShadowLayer (124.2.0): | ||
- MaterialComponents/ShadowElevations | ||
- MaterialComponents/ShapeLibrary (124.2.0): | ||
- MaterialComponents/private/Math | ||
- MaterialComponents/Shapes | ||
- MaterialComponents/Shapes (124.2.0): | ||
- MaterialComponents/private/Color | ||
- MaterialComponents/private/Math | ||
- MaterialComponents/ShadowLayer | ||
|
||
DEPENDENCIES: | ||
- MaterialComponents/BottomSheet | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- MaterialComponents | ||
|
||
SPEC CHECKSUMS: | ||
MaterialComponents: 1a9b2d9d45b1601ae544de85089adc4c464306d4 | ||
|
||
PODFILE CHECKSUM: 03dfe97db818d3ffbe607abec6c89e84caa670e4 | ||
|
||
COCOAPODS: 1.10.1 |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Binary file not shown.
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,56 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "github-light.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "github-dark.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "[email protected]", | ||
"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.
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.
23 changes: 23 additions & 0 deletions
23
Popcat/Assets.xcassets/instagram_logo.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "instagram.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"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.
23 changes: 23 additions & 0 deletions
23
Popcat/Assets.xcassets/testflight_logo.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "testflight.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"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.
Large diffs are not rendered by default.
Oops, something went wrong.
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,80 @@ | ||
// | ||
// DeveloperInfoViewController.swift | ||
// Popcat | ||
// | ||
// Created by Daegeon Choi on 2021/06/16. | ||
// | ||
|
||
import UIKit | ||
|
||
class DeveloperInfoViewController: UIViewController { | ||
|
||
@IBOutlet weak var nameLabel: UILabel! | ||
@IBOutlet weak var descriptionLabel: UILabel! | ||
@IBOutlet weak var tableView: UITableView! | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
nameLabel.text = DeveloperInfo.name | ||
descriptionLabel.text = DeveloperInfo.description | ||
|
||
tableView.isScrollEnabled = false | ||
// Do any additional setup after loading the view. | ||
} | ||
|
||
} | ||
|
||
extension DeveloperInfoViewController: UITableViewDataSource { | ||
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | ||
return 1 | ||
} | ||
|
||
func numberOfSections(in tableView: UITableView) -> Int { | ||
return DeveloperInfoSection.allCases.count | ||
} | ||
|
||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | ||
let cell = UITableViewCell(style: UITableViewCell.CellStyle.subtitle, reuseIdentifier: Identifier.DeveloperPageCell) | ||
guard let section = DeveloperInfoSection(rawValue: indexPath.section) else { return UITableViewCell() } | ||
|
||
cell.textLabel?.text = section.title | ||
cell.detailTextLabel?.text = section.subtitle | ||
cell.imageView?.image = UIImage(named: section.imageSourceName) | ||
cell.imageView?.layer.cornerRadius = 13 | ||
cell.imageView?.layer.masksToBounds = true | ||
|
||
return cell | ||
} | ||
|
||
} | ||
|
||
extension DeveloperInfoViewController: UITableViewDelegate { | ||
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | ||
return 50 | ||
} | ||
|
||
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | ||
|
||
guard let section = DeveloperInfoSection(rawValue: indexPath.section) else { return } | ||
|
||
if let url = URL(string: section.pageURL) { | ||
UIApplication.shared.open(url) | ||
} | ||
|
||
tableView.cellForRow(at: indexPath)?.isSelected = false | ||
} | ||
|
||
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { | ||
return 0.0 | ||
} | ||
|
||
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { | ||
if section != DeveloperInfoSection.allCases.count - 1 { | ||
return 10 | ||
}else{ | ||
return 0 | ||
} | ||
|
||
} | ||
} |
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
Oops, something went wrong.