Skip to content

Releases: LowKostKustomz/StatusAlert

v1.1.1

28 Apr 11:25
Compare
Choose a tag to compare

Updated to Swift 5.0.

v1.1.0

15 Dec 14:55
Compare
Choose a tag to compare

Source-breaking changes

Old

@objc public var defaultInitialScale: CGFloat
@objc public var defaultCornerRadius: CGFloat

@objc public var defaultTopOffset: CGFloat
@objc public var defaultBottomOffset: CGFloat

@objc public var defaultImageWidth: CGFloat
@objc public var defaultAlertWidth: CGFloat

@objc public var defaultImageBottomSpace: CGFloat
@objc public var defaultTitleBottomSpace: CGFloat
@objc public var defaultImageToMessageSpace: CGFloat

New

@objc public var initialScale: CGFloat
@objc public var cornerRadius: CGFloat

@objc public var topOffset: CGFloat
@objc public var bottomOffset: CGFloat

@objc public var imageWidth: CGFloat
@objc public var alertWidth: CGFloat

@objc public var imageBottomSpace: CGFloat
@objc public var titleBottomSpace: CGFloat
@objc public var imageToMessageSpace: CGFloat

Fixed

  • Issue #7

What's new

  • Added blurStyle property to appearance

v1.0.0

17 Nov 19:14
Compare
Choose a tag to compare
Updated version to 1.0.0

v0.12.2

25 Oct 18:36
Compare
Choose a tag to compare

Updated to Swift 4.2.

v0.12.1

15 Jul 11:03
Compare
Choose a tag to compare

Fixed

  • issue #4

v0.12.0

07 Jul 07:31
Compare
Choose a tag to compare

Source-breaking changes

Old

let statusAlert = StatusAlert.instantiate(
    withImage: image,
    title: title,
    message: message,
    canBePickedOrDismissed: isPickable
)

New

let statusAlert = StatusAlert()
statusAlert.image = image
statusAlert.title = title
statusAlert.message = message
statusAlert.canBePickedOrDismissed = isPickable

Fixed

  • multiplePresentationsBehavior default value is .ignoreIfAlreadyPresenting now

What's new

  • Added reusing some UI elements, such as UIImageViews, UILabels and space UIViews

v0.11.0

26 May 21:31
Compare
Choose a tag to compare

Source-breaking changes

shouldShowMultipleAlertsSimultaneously is now deprecated, use multiplePresentationsBehavior instead.

Old

StatusAlert.shouldShowMultipleAlertsSimultaneously = true

New

StatusAlert.multiplePresentationsBehavior = .showMultiple

Fixed

  • Memory leak (lost a weak reference to self)

v0.10.1

12 Feb 01:08
Compare
Choose a tag to compare
  • Fixed bug with appearance setup
  • Added VoiceOver to demo apps

v0.10.0

08 Jan 00:36
Compare
Choose a tag to compare

Source-breaking changes

StatusAlert.Appearance structure

now has common property, used by default by all alerts.

Old

StatusAlert.Appearance.contentColor = UIColor.black

New

// contentColor was renamed to tintColor
StatusAlert.Appearance.common.tintColor = UIColor.black

StatusAlert's appearance

now can be set up with appearance property of type StatusAlert.Appearance. By default will be user StatusAlert.Appearance.common.

Old

statusAlert.contentColor = UIColor.black

New

statusAlert.appearance.tintColor = UIColor.black

Vertical position offset

no longer can be passed as associated value to enum case. Instead, offset can be passed as parameter to show method.

Old

statusAlert.show(withVerticalPosition: .center(offset: 8)

New

statusAlert.show(withVerticalPosition: .center, offset: 8)

What's new

  • Added Objective-C support
  • Added Swift 3.2 support
  • Added VoiceOver support

v0.9.4

31 Dec 23:48
Compare
Choose a tag to compare

Added Swift Package Manager support.