Steps:
- Add the view controller that you want to be able to dismiss.
- From the calling view controller, add an action to present it modally.
- On the segue, change
Presentation
value toOver Current Context
. - See code below.
git init
git remote add origin [email protected]:GoranLilja/ParticleNoiseFieldProcessing.git
git checkout -b master
git pull origin master
git branch --set-upstream-to=origin/master master
file="$HOME/.id" | |
if [ ! -f $file ] | |
then | |
uuidgen >> $file | |
fi | |
cat $file |
In order ro take a screenshot using the macOS system, you have to press a lot or keys, but you also have a few different options.
Grab.app
.The quickest way of opening an app is searching for it using Spotlight.
import UIKit | |
import CoreLocation | |
class ViewController: UIViewController { | |
let locationManager = CLLocationManager() | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
locationManager.delegate = self | |
locationManager.requestWhenInUseAuthorization() |
import UIKit | |
func create<T>(_ input: T? = nil, _ setup: ((T) -> Void)) -> T where T: NSObject { | |
let obj = input ?? T() | |
setup(obj) | |
return obj | |
} | |
func create<T>(_ input: T? = nil, _ setup: ((T) -> Void)) -> T where T: UIView { | |
let obj = input ?? T() |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func applicationWillResignActive(_ application: UIApplication) { | |
addBlurViews() | |
} | |
func applicationDidBecomeActive(_ application: UIApplication) { | |
removeBlurViews() | |
} |