Git Product home page Git Product logo

customizableactionsheet's People

Contributors

basthomas avatar beryu avatar bryant1410 avatar gravitylow avatar readmecritic avatar yccheok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

customizableactionsheet's Issues

support for rotation

Open the action sheet in say, the portrait mode and rotate the device, the action sheet will not adapt to the new orientation and therefore cannot be seen on the screen (since the dimensions of the action sheet are made based on the earlier orientation).

Is there any plan to add support for rotation? Thanks.

Podspec is overwriting SWIFT_VERSION

Hi,

The CustomizableActionSheet.podspec includes the following:
s.xcconfig = { 'SWIFT_VERSION' => '3.0' }

This overwrites target projects SWIFT version (which for newer projects are 3.1) and causes this CocoaPods error:

[!] The My-Project [Debug] target overrides the SWIFT_VERSION build setting defined in `Pods/Target Support Files/Pods-My-Project/Pods-My-Project.debug.xcconfig'. This can lead to problems with the CocoaPods installation

I think best practice is not to include the SWIFT_VERSION in your pod spec - see reference here

Swift3 and Xcode8?

Thanks for the awesome library! I'm having build errors with Swift3 and Xcode8 while using either the swift3 branch or master branch.

I'm using:

pod 'CustomizableActionSheet', :git => 'https://github.com/beryu/CustomizableActionSheet', :branch => 'swift3'

And have a number of build errors. I noticed #8 is open but neither branches seem to work for my project.

Any suggestions?

Invisible

I studied the example and also use the code for tabbar controller but when the actionsheet, it is invisible.

when I comment out the items.append(sampleView), I can see a CANCEL button.

It seem that something is wrong with my sampleview xib but i can figure it out.

HELP!

Orientation issue in iPad

Im trying to used this control in iPad with Orientation. But layout is not resize im using auto layout.
simulator screen shot - ipad 5th generation - 2018-01-08 at 00 23 20
simulator screen shot - ipad 5th generation - 2018-01-08 at 00 23 24

Enabling scroll?

Is it possible to enable scroll? When I add too many actions some of them go offscreen.

Bug: Action sheet cuts off if used in a ScrollView

The action sheet would cut off from the bottom if it is used in a scrollview and if the scrollable content goes beyond the UIScreen.

This is due to this line in the code in the showInView method-

public func showInView(_ targetView: UIView, items: [CustomizableActionSheetItem], closeBlock: (() -> Void)? = nil) {
   // Save instance to reaction until closing this sheet
   CustomizableActionSheet.actionSheets.append(self)

let screenBounds = UIScreen.main.bounds
.....

The screenBounds should take targetView.bounds instead of UIScreen.main.bounds which resolves the issue.

  public func showInView(_ targetView: UIView, items: [CustomizableActionSheetItem], closeBlock: (() -> Void)? = nil) {
    // Save instance to reaction until closing this sheet
    CustomizableActionSheet.actionSheets.append(self)

    let screenBounds = targetView.bounds

Support iPhoneX

iPhoneX has the home button inside the screen.
ActionSheet should be shown in a safe area.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.