Skip to content

Commit 086575f

Browse files
authored
Merge pull request #34 from cemolcay/fix/cemolcay-remove-pod
FIx cocoapods
2 parents 37377bc + 8562694 commit 086575f

69 files changed

Lines changed: 2269 additions & 2866 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Keyboard/KeyboardLayoutEngine/KeyboardButton.swift

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//
88

99
import UIKit
10-
import ManualLayout
1110

1211
// MARK: - KeyboardButtonType
1312
public enum KeyboardButtonType {
@@ -229,9 +228,9 @@ public class KeyboardButton: UIView {
229228
var contentRoundCorners = UIRectCorner.AllCorners
230229
switch style.keyPopType! {
231230
case .Default:
232-
contentX = (contentWidth - width) / -2.0
231+
contentX = (contentWidth - frame.size.width) / -2.0
233232
case .Right:
234-
contentX = width - contentWidth
233+
contentX = frame.size.width - contentWidth
235234
contentRoundCorners = [.TopLeft, .TopRight, .BottomLeft]
236235
case .Left:
237236
contentX = 0
@@ -243,13 +242,13 @@ public class KeyboardButton: UIView {
243242
y: 0,
244243
width: contentWidth,
245244
height: frame.size.height * content.style.heightMultiplier)
246-
content.bottom = -padding
245+
content.frame.origin.y = -(content.frame.size.height + padding)
247246

248247
let bottomRect = CGRect(
249248
x: 0,
250249
y: -padding - 1, // a little hack for filling the gap
251-
width: width,
252-
height: height + padding)
250+
width: frame.size.width,
251+
height: frame.size.height + padding)
253252

254253
let path = UIBezierPath(
255254
roundedRect: content.frame,
@@ -272,8 +271,8 @@ public class KeyboardButton: UIView {
272271
frame: CGRect(
273272
x: 0,
274273
y: 0,
275-
width: content.width,
276-
height: content.height + padding + frame.size.height))
274+
width: content.frame.size.width,
275+
height: content.frame.size.height + padding + frame.size.height))
277276
popup.addSubview(content)
278277
popup.layer.applyShadow(shadow: popStyle.shadow)
279278
popup.layer.insertSublayer(mask, atIndex: 0)
@@ -304,15 +303,15 @@ public class KeyboardButton: UIView {
304303
private func createKeyMenu() -> UIView {
305304
guard let content = keyMenu else { return UIView() }
306305
let padding = CGFloat(5)
307-
content.bottom = -padding
306+
content.frame.origin.y = -(content.frame.size.height + padding)
308307
content.layer.cornerRadius = style.cornerRadius * style.keyPopWidthMultiplier
309308
content.clipsToBounds = true
310309

311310
let bottomRect = CGRect(
312311
x: 0,
313312
y: -padding - 1, // a little hack for filling the gap
314-
width: width,
315-
height: height + padding)
313+
width: frame.size.width,
314+
height: frame.size.height + padding)
316315

317316
let path = UIBezierPath(
318317
roundedRect: content.frame,
@@ -336,8 +335,8 @@ public class KeyboardButton: UIView {
336335
frame: CGRect(
337336
x: 0,
338337
y: 0,
339-
width: content.width,
340-
height: content.height + padding + frame.size.height))
338+
width: content.frame.size.width,
339+
height: content.frame.size.height + padding + frame.size.height))
341340
popup.addSubview(content)
342341
popup.layer.insertSublayer(mask, atIndex: 0)
343342
return popup

Keyboard/KeyboardViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class KeyboardViewController: UIInputViewController, CustomKeyboardDelegate {
3232
// This is how you add extra buttons to layouts for customising CustomKeyboard without even subclass it!
3333
let customButton = KeyboardButton(
3434
type: .Text("🕶"),
35-
style: customKeyboard.keyboardStyle.keyButtonStyle,
35+
style: CustomKeyboardKeyButtonStyle,
3636
width: .Static(width: 40),
3737
identifier: "customButton")
3838
customKeyboard.keyboardLayout.symbols.addKeyboardButton(

KeyboardLayoutEngine.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "KeyboardLayoutEngine"
19-
s.version = "0.8.9
19+
s.version = "0.9"
2020
s.summary = "⌨️ Simplest custom keyboard generator for iOS ever!"
2121

2222
# This description is used to generate tags and improve search results.
@@ -336,7 +336,7 @@ optional func defaultKeyboardDidPressReturnButton(defaultKeyboard: DefaultKeyboa
336336
# Supports git, hg, bzr, svn and HTTP.
337337
#
338338

339-
s.source = { :git => "https://github.com/cemolcay/KeyboardLayoutEngine.git", :tag => "0.8.9" }
339+
s.source = { :git => "https://github.com/cemolcay/KeyboardLayoutEngine.git", :tag => "0.9" }
340340

341341

342342
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

KeyboardLayoutEngine.xcodeproj/project.pbxproj

Lines changed: 187 additions & 29 deletions
Large diffs are not rendered by default.

Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ end
1717

1818
target 'Keyboard' do
1919
pod 'Shadow'
20-
pod 'ManualLayout'
2120
end

Podfile.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
PODS:
2-
- ManualLayout (1.2.1)
32
- Shadow (0.1)
43

54
DEPENDENCIES:
6-
- ManualLayout
75
- Shadow
86

97
SPEC CHECKSUMS:
10-
ManualLayout: 7326e29d60370c9fdfa41338f87f0b0ae350bf54
118
Shadow: 1c2e0d6996cea95de76ad7df440b25d9b85183ca
129

13-
COCOAPODS: 0.39.0
10+
PODFILE CHECKSUM: df543bce1ee7f6451a25cf49c2b49af81bcb189e
11+
12+
COCOAPODS: 1.0.1

Pods/Headers/Private/ManualLayout/ManualLayout.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

Pods/Manifest.lock

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/ManualLayout/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

Pods/ManualLayout/ManualLayout/CALayer+ManualLayout.swift

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)