forked from did0x/abilitea
-
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.
Merge branch 'main' into dev-ridohendrawan
- Loading branch information
Showing
18 changed files
with
596 additions
and
2 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,70 @@ | ||
// | ||
// TutorialController.swift | ||
// abilitea | ||
// | ||
// Created by William Yulio on 08/04/22. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
|
||
class TutorialViewController: UIViewController { | ||
|
||
@IBOutlet weak var TableContainer: UITableView! | ||
|
||
/// Outlets | ||
@IBOutlet weak var QuestionText: UILabel! | ||
@IBOutlet weak var CategoryLabel: UINavigationItem! | ||
@IBOutlet weak var AnswerQuestionBtn: UIButton! | ||
|
||
|
||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
// Do any additional setup after loading the view. | ||
TableContainer.delegate = self | ||
TableContainer.dataSource = self | ||
|
||
} | ||
|
||
@IBAction func backToMainMenuBtn(_ sender: UIBarButtonItem) { | ||
} | ||
|
||
@IBAction func answerQuestionBtn(_ sender: Any) { | ||
|
||
|
||
} | ||
|
||
|
||
|
||
} | ||
|
||
extension TutorialViewController: UITableViewDelegate{ | ||
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | ||
print("you tapped me") | ||
} | ||
|
||
|
||
} | ||
|
||
extension TutorialViewController: UITableViewDataSource{ | ||
|
||
// Asks the data source for a cell to insert in a particular location of the table view. | ||
|
||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | ||
// Fetch a cell of the appropriate type. | ||
let cell = tableView.dequeueReusableCell(withIdentifier: "QuestionImageCell", for: indexPath) | ||
|
||
// Configure the cell’s contents. | ||
cell.textLabel!.text = "Cell text" | ||
|
||
return cell | ||
} | ||
|
||
// Buat nentuin jumlah konten yang mau ditampilin ditable | ||
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | ||
return 3 | ||
} | ||
|
||
} |
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,25 @@ | ||
// | ||
// QuestionImageCell.swift | ||
// abilitea | ||
// | ||
// Created by William Yulio on 12/04/22. | ||
// | ||
|
||
//import UIKit | ||
// | ||
//class QuestionImageCell: UITableViewCell{ | ||
// var mainImageView : UIImageView = { | ||
// var imageView = UIImageView() | ||
// imageView.translatesAutoresizingMaskIntoConstraints = false | ||
// return imageView | ||
// } | ||
// | ||
// override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { | ||
// super.init(style: style, reuseIdentifier: reuseIdentifier) | ||
// self.addSubview(mainImageView) | ||
// | ||
// | ||
// mainImageView.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true | ||
// | ||
// } | ||
//} |
21 changes: 21 additions & 0 deletions
21
abilitea/System/Assets.xcassets/William Yulio.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "William Yulio.jpg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+78.4 KB
abilitea/System/Assets.xcassets/William Yulio.imageset/William Yulio.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
abilitea/System/Assets.xcassets/icon-answer-btn.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "next.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
abilitea/System/Assets.xcassets/icon-answer-btn.imageset/next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
abilitea/System/Assets.xcassets/icon-done-btn.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "next-3.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
abilitea/System/Assets.xcassets/icon-done-btn.imageset/next-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
abilitea/System/Assets.xcassets/icon-false-answer-white.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Ellipse 3.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
abilitea/System/Assets.xcassets/icon-false-answer-white.imageset/Ellipse 3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
abilitea/System/Assets.xcassets/icon-finisih-btn.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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "next-2.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.