flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
600 stars 40 forks source link

Implement UIAlertController for Android #167

Closed ephemer closed 6 years ago

ephemer commented 6 years ago

We want to be able to show Alerts e.g. for MIDI device connected, something isn't working as expected etc.

michaelknoch commented 6 years ago

should we implement this in an iOS or android look and feel?

ephemer commented 6 years ago

Note that we're entering the realm of Android UX expectations with this task. We should implement this to look and feel like Android, and not like iOS.

I would also explicitly implement it as an Android component, i.e.:

open class AndroidUIAlertController {
  // implementation
}

in another file (UIAlertController.swift):

// Later we can add #if os(Android) etc. here, but for now we can use the Android version everywhere
public typealias UIAlertController = AndroidUIAlertController