SKStoreProductViewController Animation and UI - ios

Is it possible to change the way SKStoreProductViewController comes out and looks like?
like in full screen instead of half sheet, coming out from left to right instead of popping up?

Unfortunately, you can't. SKStoreProductViewController ignores changes to modalPresentationStyle, according to the Apple's developer documentation.
checkout this apple developer documentation.
This class ignores modalPresentationStyle settings, and those settings
have no impact on the sheet's presentation.

Related

How to add buttons to NowPlayingView of Apple Watch using SwiftUI

The NowPlayingView is a structure. We can use it like:
NowPlayingView()
According to Apple's documentation
Don’t add any other elements to the view.
We, developer can not add anything to the view.
But the Apple Music and Podcast's NowPlayingView are different.
Apple Music NowPlayingView:
Podcast NowPlayingView:
So I want to know if there any chance we can customize the NowPlayingView.
According to Apple's Engineer, developers can not change anything on NowPlayingView.
Additionally, the bottom-right menu button is neither not available to developers.
Reference:
Can not modify NowPlayingView. Can not use menu button

Smooch- Customize chat interface window

So this time i want to integrate the Smooch api to make ios chat application.
I have integrated the smooch SDK successfully and with [smooch show] method, it opens the chat window.
Does anyone one know how to customize this window? The methods in documentation to customize user interface is limited to change navigation color and text of button. Let's say i want a background image in my chat window. So how can we customize this whole window?
Unfortunately the docs are correct, only limited customization is possible at this time (source: I work at Smooch). There are plans to allow greater customizability in the future.
If all you wanted was to change the background color / background image though, you might be able to walk the view hierarchy of the conversation view controller and find a good place to put your view. I haven't tested this code, so it may not work, but this is the general idea:
UIViewController* conversationVC = [Smooch newConversationViewController];
[conversationVC.view addSubview:myBackground];
[conversationVC.view sendSubviewToBack:myBackground];

UIKit - Place own statusbar above UINavigationController

My app is in landscape and uses a UINavigationController as its RootViewController. My goal with it is:
Disable the normal iOS StatusBar ( I know how to do that and already did it )
Have a semi-transparent StatusBar (a view) above the UINavigationBar, so that I can show custom information on it
Parts of the content of my main view must be visible underneath my custom StatusBar (exactly like it works with the normal UIStatusBar, just that I don't want the clock and battery and want to show my own information on it)
How can I best achieve this?
A quick search on GitHub gave me multiple libraries that offer the exact functionality you are looking for.
MTStatusBarOverlay
KGStatusBar
CWStatusBarNotification
FDStatusBarNotifierView
BWStatusBarOverlay
WTStatusBar
TWStatus
Try them out, test them and see which one is best for you.
If none of them are good enough, you should get an idea on how to achieve this functionality using the source code those libraries provide.
iOS 7 Human Interface Design, page 143 says:
Don’t create a custom status bar. Users depend on the consistency of
the system-provided status bar. Although you might hide the status bar
in your app, it’s not appropriate to create custom UI that takes its
place.
iOS Human Interface Guidelines

Change font, font size of toast in iOS

I'm have used Toast before in Android. Is there a way to customize the font or font size of Toast on an UIView in iOS?
I am aware of the makeToast function, which seems to only have optional parameters for duration, position, image, and title. Or is there another messaging/notification system I should be using instead?
I already found this answer for Android.
Turns out toast is not native to obj-C like I originally thought? Growl/toast style notifications library for iOS
It looks like the github project was already included in some of the legacy code I've been going through... but adding such custom features would not be an iOS issue like I thought, it'd be working on the github project.
Also, turns out that there's a native iOS library message system: UIAlertView
There is no Toast-like in iOS, but you can use something similar called popover.
Popovers are from the documentations:
is used to manage the presentation of content in a popover. You use
popovers to present information temporarily. The popover content is
layered on top of your existing content and the background is dimmed
automatically. The popover remains visible until the user taps outside
of the popover window or you explicitly dismiss it. Popover
controllers are for use exclusively on iPad devices. Attempting to
create one on other devices results in an exception. However popovers
only available in iPads.
I would recommend the following control for you to use on iPhone and iPad, very easy to use and implement.
https://github.com/50pixels/FPPopover

Placement of a badge in iphone app

I have a special case in my iphone app where I have to display a badge on a tappable UI element and not in the tab bar ... is that acceptable ? I read the iOS guidelines and it says that a tab bar can display a badge (red oval) but they didn't mention any point stating that it should be placed specifically there (tab bar)
And if that is a bad UX practice, should I design a custom icon that looks like the badge and use it in my specific case ?
Thanks in advance.
Best Regards,
If they say a badge can be shown in the tabBar this does not mean that it can't be shown somewhere else.
This is not uncommon and definitely not a bad practice. Badges are not used only for navitagation events (in tabbar).
If something is not forbidden by the guidelines, then it's permitted.
However, be sure the application still follows basic iOS design and you don't implement it in some non-standard way if stardard solution would be also possible.
For example, look at the iOS Mail application. It's a split view where every mail box in the main controller has a number with unread messages. Well, that's basically a badge.
You can't do that, I recommend you to use this customBadges: http://www.spaulus.com/2011/04/custombadge-2-0-retina-ready-scalable-light-reflex/?lang=en

Resources