Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions Echo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@
2DB496B01B5D37470012D92A /* extensions */,
2DBC9BFC1B558FBD00F15967 /* Supporting Files */,
);
path = Echo;
name = Echo;
path = Sources/Echo;
sourceTree = "<group>";
};
2DBC9BFC1B558FBD00F15967 /* Supporting Files */ = {
Expand Down Expand Up @@ -264,6 +265,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -451,7 +453,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Echo/Info.plist;
INFOPLIST_FILE = Sources/Echo/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand All @@ -472,7 +474,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Echo/Info.plist;
INFOPLIST_FILE = Sources/Echo/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand Down
27 changes: 27 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Echo",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "Echo",
targets: ["Echo"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "Echo",
dependencies: [],
exclude: ["Echo.h", "Info.plist"]
),
]
)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UIKit

public protocol InputAccessoryControllerDelegate: class {
public protocol InputAccessoryControllerDelegate: AnyObject {

/// Called whenever the keyboard frame changes
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import UIKit

open class KeyboardLayoutGuide: UILayoutGuide {

lazy var heightConstraint: NSLayoutConstraint = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public struct InputAccessoryControllerBehaviours: OptionSet {
self.rawValue = rawValue
}

public static let allZeros = InputAccessoryControllerBehaviours(rawValue: 0)
public static let allZeros = InputAccessoryControllerBehaviours([])
public static let adjustContentOffset = InputAccessoryControllerBehaviours(rawValue: 0b1)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import UIKit

var DidNotResignFirstResponder = "didNotResignFirstResponder"

Expand Down
11 changes: 11 additions & 0 deletions Tests/echoTests/echoTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import XCTest
@testable import echo

final class echoTests: XCTestCase {
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(echo().text, "Hello, World!")
}
}