Skip to content

Commit

Permalink
Merge pull request #196 from SeanAsby/feature/Swift5
Browse files Browse the repository at this point in the history
Updated project with latest dependencies and Swift 5
  • Loading branch information
Daltron authored Apr 5, 2019
2 parents 5bae665 + 681745d commit 3f46e16
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# A scolling drop-in replacement for UILabel for long texts.
github "cbpowell/MarqueeLabel" ~> 3.0
github "cbpowell/MarqueeLabel" ~> 3.2.1

# A Swift Autolayout DSL for iOS & OS X
github "SnapKit/SnapKit" ~> 4.0.0
github "SnapKit/SnapKit" ~> 4.2.0
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "SnapKit/SnapKit" "4.0.1"
github "cbpowell/MarqueeLabel" "3.2.0"
github "SnapKit/SnapKit" "4.2.0"
github "cbpowell/MarqueeLabel" "3.2.1"
5 changes: 3 additions & 2 deletions NotificationBanner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = 823255811EB872AB006F95C3;
Expand Down Expand Up @@ -352,7 +353,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.dh.NotificationBanner;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -376,7 +377,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.dh.NotificationBanner;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion NotificationBanner/Classes/BaseNotificationBanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public class BaseNotificationBanner: UIView {
private(set) var bannerPosition: BannerPosition!

/// The notification banner sides edges insets from superview. If presented - spacerView color will be transparent
internal(set) var bannerEdgeInsets: UIEdgeInsets? = nil {
internal var bannerEdgeInsets: UIEdgeInsets? = nil {
didSet {
if bannerEdgeInsets != nil {
spacerView.backgroundColor = .clear
Expand Down
2 changes: 1 addition & 1 deletion NotificationBanner/Classes/NotificationBannerQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ open class NotificationBannerQueue: NSObject {
if queuePosition == .back {
banners.append(banner)

if banners.index(of: banner) == 0 {
if banners.firstIndex(of: banner) == 0 {
banner.show(placeOnQueue: false, bannerPosition: banner.bannerPosition)
}

Expand Down
6 changes: 3 additions & 3 deletions NotificationBannerSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ NotificationBanner is an extremely customizable and lightweight library that mak
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Daltron' => 'daltonhint4@gmail.com' }
s.source = { :git => 'https://github.com/Daltron/NotificationBanner.git', :tag => s.version.to_s }

s.ios.deployment_target = '9.0'
s.swift_version = '4.2'
s.swift_version = '5.0'
s.source_files = 'NotificationBanner/Classes/**/*'

s.dependency 'SnapKit', '~> 4.2.0'
s.dependency 'MarqueeLabel/Swift', '~> 3.2.0'
s.dependency 'MarqueeLabel/Swift', '~> 3.2.1'

end

0 comments on commit 3f46e16

Please sign in to comment.