if #available(iOS 10.0, *) {
    let r = UIGraphicsImageRenderer(size:CGSize(width:10,height:10))
} else {
    // Rozwiązanie awaryjne dla wcześniejszych wersji systemu iOS.
}



#if swift(>=4.1)
print("Witaj")
#else
Hej! Ba-ba-re-bop
#endif



let alert = UIAlertController(
    title: <#T##String?#>,
    message: <#T##String?#>,
    preferredStyle: <#T##UIAlertController.Style#>)



func application(_ application: UIApplication,
    didFinishLaunchingWithOptions
    launchOptions: [UIApplication.LaunchOptionsKey : Any]?) -> Bool {
        <#code#>
}



// MARK: — cykl życiowy widoku.
override func viewDidLoad() {
    super.viewDidLoad()
}



<UIView: 0x79121d40;
  frame = (0 0; 320 480);
  autoresize = RM+BM;
  layer = <CALayer: 0x79121eb0>>



* ViewController
  - super: UIViewController
    - super: UIResponder
      - super: NSObject
  - didInitialSetup: true



func testDogMyCats() {
    let input = "koty"
    let output = "psy"
    XCTAssertEqual(output,
        self.viewController.dogMyCats(input),
        "Nie udało się wygenerować \(output) na podstawie \(input).")
}



@IBAction func buttonPressed(_ sender: Any) {
    let alert = UIAlertController(
        title: "Howdy!", message: "You tapped me!",
        preferredStyle: .alert)
    alert.addAction(
        UIAlertAction(title: "OK", style: .cancel))
    self.present(alert, animated: true)
}



@IBAction func buttonPressed(_ sender: Any) {
    let alert = UIAlertController(
        title: NSLocalizedString(
            "Greeting", value:"Howdy!", comment:"Przywitaj się"),
        message: NSLocalizedString(
            "Tapped", value:"You tapped me!", comment:"Użytkownik nacisnął przycisk"),
        preferredStyle: .alert)
    alert.addAction(UIAlertAction(
        title: NSLocalizedString(
            "Accept", value:"OK", comment:"Zamknij okno"),
        style: .cancel))
    self.present(alert, animated: true)
}



<trans-unit id="RoQ-mP-swT.normalTitle">
  <source>Hello</source>
  <target>Witaj</target>
  <note>Class="UIButton"; normalTitle="Hello"; ObjectID="RoQ-mP-swT";</note>
</trans-unit>

<trans-unit id="CFBundleDisplayName">
  <source>Empty Window</source>
  <target>Puste okno</target>
</trans-unit>
<trans-unit id="CFBundleName">
  <source>$(PRODUCT_NAME)</source>
  <target>$(PRODUCT_NAME)</target>
</trans-unit>

<trans-unit id="Accept">
  <source>OK</source>
  <target>OK</target>
  <note>Zamknij okno</note>
</trans-unit>
<trans-unit id="Greeting">
  <source>Howdy!</source>
  <target>Cześć!</target>
  <note>Przywitaj się</note>
</trans-unit>
<trans-unit id="Tapped">
  <source>You tapped me!</source>
  <target>Nacisnąłeś mnie!</target>
  <noteUżytkownik nacisnął przycisk</note>
</trans-unit>



/* (Bez komentarza) */
"CFBundleDisplayName" = "Puste okno";

/* (Bez komentarza) */
"CFBundleName" = "$(PRODUCT_NAME)";



/* Zamknij okno */
"Accept" = "OK";

/* Przywitaj się */
"Greeting" = "Witaj!";

/* Użytkownik nacisnął przycisk */
"Tapped" = "Nacisnąłeś mnie!";



