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
<?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"> | |
<array/> | |
</plist> |
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
// ImageSaver.swift | |
// | |
// Created by Brent Michalski on 11/30/19. | |
// Copyright © 2019 Brent Michalski. All rights reserved. | |
// | |
import UIKit | |
class ImageSaver: NSObject { | |
var successHandler: (() -> Void)? |
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
// | |
// KeyboardAvoiding+ViewModifier.swift | |
// | |
// Created by Michalski (US), James B on 11/27/19. | |
// Copyright © 2019 Brent Michalski. All rights reserved. | |
// | |
import SwiftUI | |
import Combine |
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
// | |
// DismissingKeyboard+ViewModifier.swift | |
// | |
// Created by Michalski (US), James B on 11/27/19. | |
// Copyright © 2019 Brent Michalski. All rights reserved. | |
// | |
import SwiftUI | |
struct DismissingKeyboard: ViewModifier { |
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
// | |
// ImagePicker.swift | |
// | |
// Created by Brent Michalski on 11/25/19. | |
// Copyright © 2019 Perlguy, Inc. All rights reserved. | |
// | |
import SwiftUI | |
struct ImagePicker: UIViewControllerRepresentable { |
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## User settings
xcuserdata/
- Type erasure is the process of hiding the underlying type of some data.
- This is used often in Swift: we have type erasing wrappers such as
AnyHashable
andAnySequence
, and all they do is act as shells that forward on their operations to whatever they contain, without revealing what the contents are to anything externally.
- This is used often in Swift: we have type erasing wrappers such as
From 100 Days of SwiftUI
- A one to one relationship means that one object in an entity links to exactly one object in another entity. In our example, this would mean that each type of candy has one country of origin, and each country could make only one type of candy.
- A one to many relationship means that one object in an entity links to many objects in another entity. In our example, this would mean that one type of candy could have been introduced simultaneously in many countries, but that each country still could only make one type of candy.
- A many to one relationship means that many objects in an entity link to one object in another entity. In our example, this would mean that each type of candy has one country of origin, and