git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import Foundation | |
import AVFoundation | |
extension AVPlayer { | |
var isPlaying: Bool { | |
if (self.rate != 0 && self.error == nil) { | |
return true | |
} else { | |
return false |
class ViewController: UIViewController { | |
@IBOutlet weak var tableView: UITableView! | |
@IBOutlet weak var heightTableView: NSLayoutConstraint! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
tableView.addObserver(self, forKeyPath: "contentSize", options: .new, context: nil) | |
} | |
override func viewWillDisappear(_ animated: Bool) { | |
super.viewWillDisappear(animated) |
WKWebView
was first introduced on iOS 8. With Apple finally release a deadline for all apps to migrate away from UIWebView
, this series and this post is here to help you explore the features of WKWebView
. In this blog post you will create a simple web browser with some basic features such as displaying content, back and forward.
One of the most interesting things coming out with Xcode 11 is SwiftUI
's PreviewProvider
, which provides a way to preview the UI during development instantly on multiple devices, multiple settings at the same time.
To preview UIViewController
and UIView
, you need to download previewing code from NSHipster
Since we are making this browser with a navigation bar, our main UIViewController
needs to be embedded inside a UINavigationController
. Therefore the previewing code would be like this:
Debug SHA1 (root of project) | |
keytool -J-Duser.language=en -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android | |
Release SHA1 (/android/app/) | |
keytool -J-Duser.language=en -list -v -keystore mystore.keystore |
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) | |
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) |