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
| enum Books: String, CaseIterable { | |
| case atomicHabits | |
| case hardThings | |
| case leanStartup | |
| } |
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
| // | |
| // ViewController.swift | |
| // TutorialApp | |
| // | |
| import UIKit | |
| import ToDoPackage | |
| class ViewController: UIViewController { | |
| override func viewDidAppear(_ animated: Bool) { |
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 ToDoSDK | |
| public class TodoPackage { | |
| public static func getLoginViewController() -> ToDoSDK.LoginViewController { | |
| let bundle = Bundle(identifier: "com.yourname.ToDoSDK") | |
| return LoginViewController(nibName: "LoginViewController", bundle: bundle) | |
| } | |
| } |
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 ToDoSDK.Swift | |
| import UIKit | |
| import _Concurrency | |
| // | |
| // ToDoSDK.h | |
| // ToDoSDK | |
| //! Project version number for ToDoSDK. |
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
| // swift-tools-version: 5.6 | |
| // The swift-tools-version declares the minimum version of Swift required to build this package. | |
| import PackageDescription | |
| let package = Package( | |
| name: "ToDoPackage", | |
| platforms: [.iOS(.v13)], | |
| products: [ | |
| // Products define the executables and libraries a package produces, and make them visible to other packages. |
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
| xcodebuild -create-xcframework \ | |
| -framework ~/Desktop/ToDoSDK-iphonesimulator.xcarchive/Products/Library/Frameworks/ToDoSDK.framework \ | |
| -framework ~/Desktop/ToDoSDK-iphoneos.xcarchive/Products/Library/Frameworks/ToDoSDK.framework \ | |
| -output ~/Desktop/ToDoSDK.xcframework |
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
| xcodebuild archive \ | |
| -scheme ToDoSDK \ | |
| -archivePath ~/Desktop/ToDoSDK-iphoneos.xcarchive \ | |
| -sdk iphoneos \ | |
| SKIP_INSTALL=NO |
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
| xcodebuild archive \ | |
| -scheme ToDoSDK \ | |
| -archivePath ~/Desktop/ToDoSDK-iphoneos.xcarchive \ | |
| -sdk iphoneos \ | |
| SKIP_INSTALL=NO |
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
| xcodebuild archive \ | |
| -scheme ToDoSDK \ | |
| -archivePath ~/Desktop/ToDoSDK-iphonesimulator.xcarchive \ | |
| -sdk iphonesimulator \ | |
| SKIP_INSTALL=NO |
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
| xcodebuild archive \ | |
| -scheme ToDoSDK \ | |
| -archivePath ~/Desktop/ToDoSDK-iphonesimulator.xcarchive \ | |
| -sdk iphonesimulator \ | |
| SKIP_INSTALL=NO |