Skip to content

Commit

Permalink
Merge pull request #6 from futuredapp/housekeep/company-name
Browse files Browse the repository at this point in the history
Housekeep: Company name
  • Loading branch information
mkj-is authored Jan 20, 2020
2 parents 72be24c + fdb9da9 commit 19751d6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 37 deletions.
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- TFBubbleItUp (1.5.1)
- TFBubbleItUp (2.1.0)

DEPENDENCIES:
- TFBubbleItUp (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
TFBubbleItUp: 0c8e5a529b99d4be10b78ef760c87bb6956b4b7f
TFBubbleItUp: 0b4cb592e9fdb21551ba769eadf8a935c62a3327

PODFILE CHECKSUM: ec09662bf6a10af1d96455895e3005dd08d9fa55

COCOAPODS: 1.6.0.beta.2
COCOAPODS: 1.8.4
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 Ales Kocur <[email protected]>
Copyright (c) 2020 Futured apps s.r.o.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Empty file removed Pod/Assets/.gitkeep
Empty file.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
[![License](https://img.shields.io/cocoapods/l/TFBubbleItUp.svg?style=flat)](http://cocoapods.org/pods/TFBubbleItUp)
[![Platform](https://img.shields.io/cocoapods/p/TFBubbleItUp.svg?style=flat)](http://cocoapods.org/pods/TFBubbleItUp)

![preview](https://raw.githubusercontent.com/thefuntasty/TFBubbleItUp/master/preview.gif)
![preview](https://raw.githubusercontent.com/futuredapp/TFBubbleItUp/master/preview.gif)

## Usage

Just place UIView in your controller wherever you want and make it as TFBubbleItUpView subclass. It is configured as IBDesignable, so it will show up. The content size is calculated by the view itself, no need to use height constraint. Just set in the Interface builder Intrinsic size to placeholder - width check None and for height choose what suits you best.

![Intrinsic size](https://github.com/thefuntasty/TFBubbleItUp/blob/master/intrinsic-size.png)
![Intrinsic size](https://github.com/futuredapp/TFBubbleItUp/blob/master/intrinsic-size.png)

There is also a delegate available (named bubbleItUpDelegate, because TFBubbleItUpView is in fact a subclass of UICollectionView) with currently one method **func bubbleItUpViewDidFinishEditingBubble(view: TFBubbleItUpView, text: String)**.
There is also a delegate available (named bubbleItUpDelegate, because TFBubbleItUpView is in fact a subclass of UICollectionView) with currently one method **func bubbleItUpViewDidFinishEditingBubble(view: TFBubbleItUpView, text: String)**.

You can preset values with **setItem([TFBubbleItem])** where TFBubbleItem is a struct whose initializer takes string (*TFBubbleItem(text: "Hullo!")*).

Expand All @@ -36,7 +36,7 @@ func testSomething() -> Validation {
}
```

This allows us to easily combine validation by function TFBubbleItUpValidation.combine(v1: Validation, v2: Validation) or even better with provided operator **|>>**
This allows us to easily combine validation by function TFBubbleItUpValidation.combine(v1: Validation, v2: Validation) or even better with provided operator **|>>**

```swift
let validation = TFBubbleItUpValidation.testEmptiness() |>> TFBubbleItUpValidation.testEmailAddress()
Expand All @@ -58,7 +58,7 @@ TFBubbleItUpViewConfiguration.numberOfItems = .Quantity(5) // default .Unlimited

BubbleItUp is highly configurable. There is configuration file called *TFBubbleItUpViewConfiguration* with class variables for configuration.

It is a mix of appearance and functional stuff. I would like to point out **skipOnWhitespace** and **skipOnReturnKey** properties, by them you can change the behaviour of bubble creation around text (see documentation comments bellow).
It is a mix of appearance and functional stuff. I would like to point out **skipOnWhitespace** and **skipOnReturnKey** properties, by them you can change the behaviour of bubble creation around text (see documentation comments bellow).

```swift
/// Background color for cell in normal state
Expand Down Expand Up @@ -134,10 +134,6 @@ public static var numberOfItems: NumberOfItems = .Unlimited
public static var itemValidation: Validation? = nil
```

## TO-DO

- ~~Create a validation mechanism~~

## Requirements

TFBubbleItUp uses Swift 5.0. Target deployment iOS 10.0 and higher.
Expand All @@ -153,8 +149,8 @@ pod "TFBubbleItUp"

## Author

Ales Kocur, ales@thefuntasty.com
Ales Kocur, aleskocur@icloud.com

## License

TFBubbleItUp is available under the MIT license. See the LICENSE file for more info.
TFBubbleItUp is available under the MIT license. See the [LICENSE](LICENSE) file for more info.
28 changes: 6 additions & 22 deletions TFBubbleItUp.podspec
Original file line number Diff line number Diff line change
@@ -1,42 +1,26 @@
#
# Be sure to run `pod lib lint TFBubbleItUp.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name = "TFBubbleItUp"
s.version = "2.0.0"
s.version = "2.1.0"
s.summary = "Text field with bubbles and ability of validation"

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
Custom view for writing tags, contacts and etc. with validation.
DESC

s.homepage = "https://github.com/thefuntasty/TFBubbleItUp"
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
s.homepage = "https://github.com/futuredapp/TFBubbleItUp"
s.screenshots = "https://raw.githubusercontent.com/futuredapp/TFBubbleItUp/master/preview.gif"
s.license = 'MIT'
s.author = { "Ales Kocur" => "ales@thefuntasty.com" }
s.source = { :git => "https://github.com/thefuntasty/TFBubbleItUp.git", :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.author = { "Ales Kocur" => "aleskocur@icloud.com" }
s.source = { :git => "https://github.com/futuredapp/TFBubbleItUp.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/Futuredapps'

s.platform = :ios, '10.0'
s.requires_arc = true
s.swift_version = '5.0'

s.source_files = 'Pod/Classes/**/*'
s.resource_bundles = {
'TFBubbleItUp' => ['Pod/Assets/*.png']
}

# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end

0 comments on commit 19751d6

Please sign in to comment.