This file contains 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
// | |
// ViewController.swift | |
// NSImageColoring | |
// | |
// Created by ing.conti on 21/03/2019. | |
// Copyright © 2019 ing.conti. All rights reserved. | |
// | |
import Cocoa |
This file contains 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
// | |
// QRImage.swift | |
// QRCodeSample | |
// | |
// Created by ing.conti on 08/06/2019. | |
// Copyright © 2019 ing.conti. All rights reserved. | |
// | |
This file contains 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 CoreGraphics | |
// Apple does implement Codable, but is NOT really JSON and fails with arrys of CGRects. | |
extension CGRect { | |
func toDict()->Dict{ | |
let d : Dict = [ | |
"origin" : ["x" : self.origin.x, "y" : self.origin.y], |
This file contains 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
// | |
// ViewController.swift | |
// SampleColoredLabel | |
// | |
// Created by ing.conti on 17/09/2019. | |
// Copyright © 2019 ing.conti. All rights reserved. | |
// | |
import UIKit |
This file contains 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
// | |
// ContentView.swift | |
// aaaa | |
// | |
// Created by ing.conti on 08/08/23. | |
// | |
// | |
// ContentView.swift | |
// ListdemoWithSelection |
This file contains 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
// ContentView.swift | |
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
Image(systemName: "paperplane") | |
.renderingMode(.template) |
This file contains 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
// | |
// AllowChangeContentView.swift | |
// simpleSample | |
// | |
// Created by ing.conti on 26/04/23. | |
// | |
/* You got: Cannot assign to property: 'self' is immutable | |
if You write; |
This file contains 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
// | |
// ContentView.swift | |
// CustomToolBar | |
// | |
// Created by ing.conti on 05/08/23. | |
// | |
// some stuff from nice exmple: | |
// https://stackoverflow.com/questions/66134755/swiftui-extract-toolbarcontent-to-its-own-var | |
// with some buttons and call back. |