๐
This file contains hidden or 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
switch(expression){ | |
case constant-expression : | |
statement(s); | |
break; /* optional */ | |
case constant-expression : | |
statement(s); | |
break; /* optional */ | |
/* you can have any number of case statements */ | |
default : /* Optional */ |
This file contains hidden or 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
#!/bin/sh | |
RSROOT=$SRCROOT/CleanAssetsManagementDemo/Resources | |
"$PODS_ROOT/SwiftGen/bin/swiftgen" \ | |
xcassets -t swift3 "$RSROOT/Assets.xcassets" \ | |
--output "$RSROOT/Assets.swift" | |
"$PODS_ROOT/SwiftGen/bin/swiftgen" \ |
This file contains hidden or 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
import UIKit | |
import SwiftyJSON | |
import Alamofire | |
import SafariServices | |
final class SearchResultsTableViewController: UITableViewController { | |
private var searchResults = [JSON]() { | |
didSet { | |
tableView.reloadData() |
This file contains hidden or 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
import Foundation | |
import SwiftyJSON | |
import Alamofire | |
enum NetworkError: Error { | |
case failure | |
case success | |
} | |
class APIRequestFetcher { |
This file contains hidden or 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
import UIKit | |
class CustomTableViewCell: UITableViewCell { | |
@IBOutlet weak var wikiImageView: UIImageView! | |
@IBOutlet weak var titleLabel: UILabel! | |
@IBOutlet weak var descriptionLabel: UILabel! | |
NewerOlder