- Go to Apple Dev certs here
- Identifiers -> Find identifier in question
- Find the correct identifier (prod or stage)
- Push Notification capabiity
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 SwiftUI | |
extension Color { | |
var hexString: String { | |
let cg = UIColor(self).cgColor | |
let components = cg.components | |
let r: CGFloat = components?[0] ?? 0.0 | |
let g: CGFloat = components?[1] ?? 0.0 | |
let b: CGFloat = components?[2] ?? 0.0 |
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 Vision | |
import VisionKit | |
@available(iOS 13.0, *) | |
class TextRecognitionEngine { | |
private var requests = [VNRequest]() | |
private let textRecognitionWorkQueue = DispatchQueue(label: "TextRecognitionQueue", qos: .userInitiated, attributes: [], autoreleaseFrequency: .workItem) | |
private var resultingText = "" |
- To add Settings.bundle in Xcode. Command N and in Resource, choose Settings Bundle .
- Open
Root.plist
in source code, paste the code below to replace it,
<?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>PreferenceSpecifiers</key>
- Start a blank, single view application
- Add a UIStackView to the main view controller with 4 UIView subviews.
- Set the stack views properties as follows:
- Axis: Horizontal
- Alignment: Fill
- Distribution: FillEqually
- Spacing: Whatever u want (But don't go crazy)
- Set the stack views properties as follows:
- Set different background colors for each UIView
##iOS interview questions ###UIKit
- Walk me through setting up a table view.
- What is the difference between a UITableViewController and a UIViewController with a table view? When would you use one over the other?
- Briefly explain the view controller lifecycle.
- What does an application's AppDelegate subclass? By default, what protocol does it implement? Name some of those delegate functions?
- What is your favorite UIKit API?
- What type of UICollectionView layouts have you used?
- Have you ever written your own custom control? What was it? Why did you need to use that instead of a standard one?
- Name something you could present in a UIViewController that is not a subclass of UIView.