Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemilla committed Apr 30, 2024
1 parent c7ccb14 commit abbd685
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Courier_iOS.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'Courier_iOS'
s.version = '3.3.1'
s.version = '3.3.2'
s.summary = 'Courier makes it easy to add notifications to your app'

s.homepage = 'https://github.com/trycourier/courier-ios'
Expand Down
4 changes: 2 additions & 2 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 21;
CURRENT_PROJECT_VERSION = 22;
DEVELOPMENT_TEAM = 83BJVWGX4Q;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = Example/Info.plist;
Expand Down Expand Up @@ -537,7 +537,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 21;
CURRENT_PROJECT_VERSION = 22;
DEVELOPMENT_TEAM = 83BJVWGX4Q;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = Example/Info.plist;
Expand Down
2 changes: 1 addition & 1 deletion Sources/Courier_iOS/Courier_iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import UIKit
/**
* Versioning
*/
internal static let version = "3.3.1"
internal static let version = "3.3.2"
public static var agent = CourierAgent.native_ios

/**
Expand Down
10 changes: 10 additions & 0 deletions Sources/Courier_iOS/UI/Preferences/CourierPreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ import UIKit
var topics: [CourierUserPreferencesTopic]
}

// MARK: Interaction

@objc public var didScrollPreferences: ((UIScrollView) -> Void)? = nil

// MARK: Authentication

private var authListener: CourierAuthenticationListener? = nil
Expand Down Expand Up @@ -133,11 +137,13 @@ import UIKit
mode: CourierPreferences.Mode = .channels(CourierUserPreferencesChannel.allCases),
lightTheme: CourierPreferencesTheme = .defaultLight,
darkTheme: CourierPreferencesTheme = .defaultDark,
didScrollPreferences: ((UIScrollView) -> Void)? = nil,
onError: ((CourierError) -> Void)? = nil
) {
self.mode = mode
self.lightTheme = lightTheme
self.darkTheme = darkTheme
self.didScrollPreferences = didScrollPreferences
self.onError = onError
super.init(frame: .zero)
setup()
Expand Down Expand Up @@ -386,6 +392,10 @@ import UIKit
refresh()
}

public func scrollViewDidScroll(_ scrollView: UIScrollView) {
self.didScrollPreferences?(scrollView)
}

public func numberOfSections(in tableView: UITableView) -> Int {
return preferences.count
}
Expand Down

0 comments on commit abbd685

Please sign in to comment.