Questions tagged [ios10-today-widget]
49 questions
2
votes
1 answer
When saving to CoreData from Today Extension, Data only accesable from Widget - NOT from Main Application
I'm writing an Application for iOS with Swift 3.
In my Main iOS App I'm using an NSFetchedResultsController to show saved items as an TableView.
It's (of course) possible to add new items from another ViewController.
-> Thats all working really…

lks
- 63
- 5
2
votes
1 answer
Swift - iOS10 - CoreData - FetchRequest in Today Widget always return 0 elements
I try to use CoreData in my Main Application and I want to access it via an Today Extension and later in my WatchApp.
I added a new target for my Today Widget - than activated AppGroups for both targets. Of course the same appGroup.
Then I builded…

lks
- 63
- 5
2
votes
0 answers
Is there a way to know if widgets are shown on lock screen in iOS 10 using swift
In iOS10, today widgets can be shown on lock screen. Is there a way to know whether it has been called on lock screen or not programatically using swift?

chitranjan deo
- 174
- 11
2
votes
3 answers
iOS10 widget "Show more" "Show less" bug
I have implemented the new widget for iOS 10 and I have used the following code to set the height for it:
@available(iOSApplicationExtension 10.0, *)
func widgetActiveDisplayModeDidChange(activeDisplayMode: NCWidgetDisplayMode, withMaximumSize…

user6876645
- 21
- 1
- 2
2
votes
1 answer
Swift 3 / iOS 10 Today View Widget
How to show "Show More" button in today widget (similar to news app as attached here)?
I found this on Apple but there are some changes in swift 3 / iOS 10. This seems to be like something new in iOS 10.

user1140780
- 988
- 2
- 13
- 29
1
vote
1 answer
Swift: Today Widget with animation
I'd like to write a Today Widget Extension with an UIImageView which display an animation.
Here are my code.
override func viewDidLoad() {
super.viewDidLoad()
layoutComponents()
imageView.startAnimating()
}
func…

user6539552
- 1,331
- 2
- 19
- 39
1
vote
0 answers
Continue Countdown Timer in Today Extension - Swift 3
How can I continue a timer in Today extension when the user swipes back up and closes the view? Every time I close my view, my label resets back to five minutes. The timer doesn't necessarily have to animate while the view is disappeared, but when…

Tiptech
- 177
- 1
- 17
1
vote
1 answer
Getting the height of the Compact Height of the Widget when it's in Expanded Mode
How can I get the Compact Height when the widget is displayed in Expanded Mode? I would set the size of the Expanded mode of the widget double the size of the Compact Mode. Compact Size is Fixed for iPad and iPhones but it's different when it comes…

Manoj
- 1,482
- 2
- 20
- 53
1
vote
2 answers
How to get the width of a today-extension in iOS 8 / 9
I'm currently trying to create a today extension that is compatible with the old-style today extension as well as the new style widget in iOS 10.
I am not using storyboards, and so I need to create and set the height and width of the widget's view…

Rachel Unthank
- 302
- 2
- 7
1
vote
1 answer
Disabling today widget on IOS10 devices
I have an existing app and i want to release a version to support IOS10 devices.
The problem is that my app today widget not is supporting the new today view in IOS10 and i want to disable the today widget to all IOS10 users.
It it possible? I…

alonraiz
- 108
- 1
- 6
1
vote
2 answers
How to not to add today widget after app install
I have developed a "Today Widget" for iOS 10 within my app. After a user downloads my app, this widget is automatically added on display. Is there a way to not to add it to the display. So, if only user wants, he can add by himself.

birdcage
- 2,638
- 4
- 35
- 58
1
vote
0 answers
iOS 10 Widget NCWidgetDisplayMode Expanded
I'm building an iOS 10 widget and I noticed that by default, they're all one standard size calculated by the system.
As a developer, you can use the NCWidgetDisplayMode and choose the expanded option to provide more information inside your widget as…

Mario A Guzman
- 3,483
- 4
- 27
- 36
1
vote
0 answers
iOS Today Widget control background music app
I have a music streaming app for iOS and I am writing a Today Widget for it to offer similar functionality to the Apple Music app's Today Widget.
I have written the widget and am able to interact with it's UI to launch my app via a URL scheme and…

Rich
- 111
- 7
1
vote
1 answer
iOS 10 Today Extension animate height on display mode change
I am struggling to set the height animated for the Today Extension when a display mode is changed. I have the following code:
- (void)widgetActiveDisplayModeDidChange:(NCWidgetDisplayMode)activeDisplayMode
…

Balázs Vincze
- 3,550
- 5
- 29
- 60
1
vote
0 answers
Is there a way to find the iOS device lock status using Swift?
I am working on newly enabled iOS 10 today-widgets on lock screen where I have show to user's information there. I want to hide it when the device is locked.
Is there any way to check the lock status programatically using Swift?

chitranjan deo
- 174
- 11