Skip to content

Commit

Permalink
Merge pull request #196 from DominatorVbN/master
Browse files Browse the repository at this point in the history
Added additional required switch cases for Mac
  • Loading branch information
Coeur authored Oct 10, 2020
2 parents aec54fc + 93f3962 commit 2c6e9fc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
os: osx
osx_image: xcode10.3
osx_image: xcode12
sudo: false
language: swift
xcode_project: Toaster.xcodeproj
Expand Down
3 changes: 3 additions & 0 deletions Sources/ToastView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ open class ToastView: UIView {
case .pad: return 60
case .tv: return 90
case .carPlay: return 30
case .mac: return 60
// default values
case .unspecified: fallthrough
@unknown default: return 30
Expand All @@ -66,6 +67,7 @@ open class ToastView: UIView {
case .pad: return 40
case .tv: return 60
case .carPlay: return 20
case .mac: return 40
// default values
case .unspecified: fallthrough
@unknown default: return 20
Expand Down Expand Up @@ -132,6 +134,7 @@ open class ToastView: UIView {
case .pad: return .systemFont(ofSize: 16)
case .tv: return .systemFont(ofSize: 20)
case .carPlay: return .systemFont(ofSize: 12)
case .mac: return .systemFont(ofSize: 16)
// default values
case .unspecified: fallthrough
@unknown default: return .systemFont(ofSize: 12)
Expand Down
2 changes: 1 addition & 1 deletion Toaster.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |s|
s.author = { 'devxoul' => 'devxoul@gmail.com' }
s.source = { :git => 'https://github.com/devxoul/Toaster.git',
:tag => "#{s.version}" }
s.platform = :ios, '8.0'
s.platform = :ios, '9.0'
s.source_files = 'Sources/*.{swift,h}'
s.frameworks = 'UIKit', 'Foundation', 'QuartzCore'
s.swift_version = '5.0'
Expand Down
4 changes: 2 additions & 2 deletions Toaster.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = kr.xoul.Toaster;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -627,7 +627,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = kr.xoul.Toaster;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down

0 comments on commit 2c6e9fc

Please sign in to comment.