<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>#UI Archives - anteelo</title>
	<atom:link href="https://anteelo.com/tag/ui/feed/" rel="self" type="application/rss+xml" />
	<link>https://anteelo.com/tag/ui/</link>
	<description>Leading Digital Solution Firm</description>
	<lastBuildDate>Fri, 18 Jun 2021 06:52:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://anteelo.com/wp-content/uploads/2020/01/cantlogo.png</url>
	<title>#UI Archives - anteelo</title>
	<link>https://anteelo.com/tag/ui/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Mobile Apps UI Design Trends for 2018-Top 15</title>
		<link>https://anteelo.com/mobile-apps-ui-design-trends-for-2018-top-15/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mobile-apps-ui-design-trends-for-2018-top-15</link>
		
		<dc:creator><![CDATA[Tushar]]></dc:creator>
		<pubDate>Thu, 12 Mar 2020 06:06:05 +0000</pubDate>
				<category><![CDATA[UI/UX Design]]></category>
		<category><![CDATA[#anteelo]]></category>
		<category><![CDATA[#AppDevelopment]]></category>
		<category><![CDATA[#UI]]></category>
		<category><![CDATA[#UIdesign]]></category>
		<category><![CDATA[#UITips]]></category>
		<category><![CDATA[#UserInterfaceGuide]]></category>
		<guid isPermaLink="false">https://anteelo.com/?p=6798</guid>

					<description><![CDATA[<p>Mobile Apps Designs continue to change with the changing demand of the industry’s million users. In the race of catching and keeping the attention of the crowd of impatient users, the UI design market keeps coming with new ideas and keeps revolutionizing the old ways to make the experience innovative and value offering. 2017 bid [&#8230;]</p>
<p>The post <a href="https://anteelo.com/mobile-apps-ui-design-trends-for-2018-top-15/">Mobile Apps UI Design Trends for 2018-Top 15</a> appeared first on <a href="https://anteelo.com">anteelo</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div align="justify">
<p><img decoding="async" class="aligncenter" src="https://cdn.dribbble.com/users/1615584/screenshots/14282211/media/715273fd7f22b5834da83dac3fd2a346.jpg?compress=1&amp;resize=400x300" alt="App designs, themes, templates and downloadable graphic elements on Dribbble" /></p>
<p>Mobile Apps Designs continue to change with the changing demand of the industry’s million users. In the race of catching and keeping the attention of the crowd of impatient users, the UI design market keeps coming with new ideas and keeps revolutionizing the old ways to make the experience innovative and value offering.</p>
<p>2017 bid adieu to a number of UI elements that were making the product design old and boring – hamburger menu, content with less to no images, safe colors. While 2018 will be all about on the face, no nonsense designs.</p>
<p>There has been a new found demand for <a href="https://anteelo.com/contact">mobile app design agencies</a> that can understand and help keep the brands in trend, when it comes to offering uniquely innovative experience to the users.</p>
<p>There are a number of UI elements that have together made a list of Mobile App Design Trends 2018.</p>
<p>Let’s get on them to keep you on trend this year.</p>
<h2 class="num-head"><span class="num">1.</span>Vibrant Colors</h2>
<p><img fetchpriority="high" decoding="async" class="aligncenter" src="https://miro.medium.com/max/1600/0*Kg4DJ0rxmc4tRTYl.png" alt="Bright Colors in UI Design: Benefits and Drawbacks | by tubik | UX Planet" width="443" height="332" /></p>
<p>In 2016, <a href="https://anteelo.com/our-team">UI designers</a> reinvented flat designs in mobile apps and shifted their focus to offering greater personalization with their design elements.</p>
<p>Instagram was one of the first apps to modify their logo, move on from the flat, dull-muted tones to multi-colors. The trend was then trailed by a range of famous companies. Moving in the same direction, 2018 is going to be the time of vibrant colors, shooting up warmth, energy, and subtleties to your home screen.</p>
<p>It’s time for designers to be valiant and try out newer colors, but select and apply them wisely. Make sure the colors allow you to create unique, powerful, and eye-friendly experience.</p>
<h2 class="num-head"><span class="num">2.</span>Borderless Display</h2>
<p><img decoding="async" class="aligncenter" src="https://www.cleveroad.com/images/article-previews/mobile-ux-on-borderless-display.png" alt="Future of UX Design: Trends That Really Deserve Your Attention" width="644" height="403" /></p>
<p>When Apple declared the launch of <a href="https://anteelo.com/ios-developer/">iPhone</a> X with a borderless display, the major buzz was made around the effect of the design on UI design. They introduced the trend of transforming the usage of strict flat design ideas in mobile apps, boosting fluent storytelling. While it was still a lot restricted in 2017, Borderless Display specific designs have found themselves in the list of UI Design Trends of 2018. We will soon start seeing designs that cover the whole mobile from edge to edge.</p>
<h2 class="num-head"><span class="num">3.</span>Videos</h2>
<p><img decoding="async" class="aligncenter" src="https://bashooka.com/wp-content/uploads/2018/11/music-video-player-ui-27.jpg" alt="50 Awesome Music &amp;amp; Video Player UI Designs – Bashooka" width="436" height="327" /></p>
<p>2017 witnessed a rise in the fame of video content format. Hubspot stated that 78% of people watch online videos per week, and over 55% see online videos every single day.</p>
<p>In the context of the mobile apps, <a href="https://www.instagram.com/anteelodesign/">designers</a> will be adapting the video formats in their apps in 2018.</p>
<p>The human attention period has reduced from 12 to eight seconds. Video-based UI is a result of this change in span.</p>
<p>2018 will see more of video-based content and more platforms coming up with live video options to convey information and feelings.</p>
<h2 class="num-head"><span class="num">4.</span>Cards</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://assets.justinmind.com/wp-content/uploads/2019/09/card-ui-design-sizes-shapes-colors.png" alt="Card UI design: fundamentals and examples - Justinmind" width="398" height="292" /></p>
<p>It was in 2015 that mobile devices overtook PCs as most used tools for surfing the web and doing the regular online activities. To cover the gap between desktop and mobile app usage, there had to be an element that would work well on both.</p>
<p>One of them is cards.</p>
<p>Although not an innovative addition in Mobile App UI Trends 2018, they play a crucial role in curating an effective UI design. Having all – video, photo, text, and link to a specific subject, cards are one of the most brilliant ways to display and organize large amounts of content on screen. Above all, they are aesthetic, easy to digestible, and properly-optimized for clicks and taps. This is why they have found themselves as the prime UI design mode on Pinterest, Netflix, and Newsfeed.</p>
<h2 class="num-head"><span class="num">5. </span>Sounds</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://i.pinimg.com/originals/cf/79/19/cf79191f7e0e17128d8e0dacd48ea04e.png" alt="PureMind | Sounds | Interactive design, App design, Sound" width="495" height="371" /></p>
<p>The newest element in 2018 UI Design Trends is sound layers. This trend are with respect to the sounds which users listen when they open a website, send comments, select emojis, etc. The sound element of UI design adds features like enjoyment and pleasure in user experience. 2018 has come with an expansion to this trend and is set to take user experience to new levels.</p>
<h2 class="num-head"><span class="num">6.</span>Big Typography</h2>
<p><img decoding="async" class="aligncenter" src="https://cdn.dribbble.com/users/47927/screenshots/6857413/betraydan-carhartt_4x.png?compress=1&amp;resize=400x300" alt="Big Typography designs, themes, templates and downloadable graphic elements on Dribbble" /></p>
<p>Typography is another feature for the UI designers to experiment when designing uber personalized app designs. When added with images, colors, video, animations, and innovative layouts, the element brings about exceptional user experience.</p>
<p>Solely because of the reason, Typography has become crucial piece of UI design world in 2018, helping designers transform from the traditional font styles to a more experimental, creative space. What you should expect this year, is fancy and bold fonts in place of done till death system fonts, which have been applied since forever.</p>
<h2 class="num-head"><span class="num">7.</span>Overlapping</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://proximityschool.com/wp-content/uploads/pattern10_looi.co_.png" alt="Pattern 10: Create Overlapping &amp;amp; Collaged Elements - UI &amp;amp; Visual Design Patterns - Proximity School of Design" width="563" height="337" /></p>
<p>Overlapping of graphics, fonts, and colors not only makes UI design distinctive and eye-catching, but also add a false sense of white space. Creating an illusion of open space in the crowded real estate of a device, is the number one reason why designers are adding overlapping feature in their mobile apps.</p>
<p>Furthermore, in most cases, the overlapping of the same elements, combined with shadows, makes the mobile app interface designs impressive and fantasy like. All these reasons combined, make overlapping an important part of Mobile <a href="https://www.linkedin.com/company/anteelo/about/">Application</a> User Interface Design Trends 2018.</p>
<h2 class="num-head"><span class="num">8.</span>Gradients</h2>
<p><img decoding="async" class="aligncenter" src="https://cdn.dribbble.com/users/427857/screenshots/14413591/media/35a6003d265d6f42a7f7a3c3663fc0fb.png?compress=1&amp;resize=400x300" alt="Gradient designs, themes, templates and downloadable graphic elements on Dribbble" /></p>
<p>In 2018, one can expect to see bright vivid colors and much greater use of the gradients.</p>
<p>In the last some years, we have been seeing a rise in the number of app designers who are adopting color gradients in design when designing buttons, logos, and backgrounds.</p>
<p>The reason behind this adoption is when you chose a specific color, you can show a hierarchy while drawing a picture and combining it with different graphics and color gradients.</p>
<p>This sense of hierarchy will continue to make Gradients famous in 2018 as they did in 2017.</p>
<h2 class="num-head"><span class="num">9.</span>Opacity</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://bashooka.com/wp-content/uploads/2015/08/transparent-ui-designs-14.jpg" alt="30 Clearly Cool Transparent UI Designs – Bashooka" width="455" height="341" /></p>
<p>Same components tend to have diverse effects once you adjust or play around with their transparency level. When designing mobile app interfaces, adding opacity in components can be an excellent design work. Furthermore, the opacity settings for various graphics or colors can also help create colorful glass like texture to the app elements.</p>
<p>Overall, irrespective of how you add opacity to your<a href="https://anteelo.com/ui-ux-designer-sr-ui-ux-designer/"> UI design</a> in mobile apps, they will see a concrete rise in demand in 2018.</p>
<h2 class="num-head"><span class="num">10.</span>Animation</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://s3.amazonaws.com/www-inside-design/uploads/2019/01/piechart.gif" alt="5 phenomenal examples of motion design in UI | Inside Design Blog" width="492" height="369" /></p>
<p>Introducing motion design or animations in fonts, icons, buttons, and photos always have an optimistic impact on app users giving them more enjoyable experiences. The trend will continue in 2018.</p>
<h2 class="num-head"><span class="num">11.</span>Responsive Logos</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://lh3.googleusercontent.com/proxy/QVliwJ-W88QMlwU_KdBZ6fCoys0QoG5qo1_rxwDiRnLvcz8h7nbd4EzdKin8Bp8FNtIxWkdNQqn-zEIP8Pm3WJ6cE4Ud4g-Lt_Jj5M_EvkfZbEXotOSbW408jQ0kSg3bgw4rMUJMI_ZO1w" alt="Joe Harrison - Design &amp;amp; Interaction" width="651" height="399" /></p>
<p>The idea of modifying logos to fit in with the n number of devices, has been a very recent doing of the app design world. Brands have now started refreshing the logos in simplified, modern versions since last some years and making them responsive is the only logical next phase when it comes to meeting the today’s demands.</p>
<h2 class="num-head"><span class="num">12.</span>Real Life Photography</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://bashooka.com/wp-content/uploads/2018/12/photography-web-ui-2019-23.jpg" alt="40 Best Photography Web UI Design Examples 2019 – Bashooka" width="539" height="405" /></p>
<p>It’s very energizing to see authentic, real-life images return to the mainstream again.</p>
<p>The demand for real photos rose greatly in 2017 and is set to grow massively in 2018, with brands seeking to bond with users, and designers looking to get rid of tawdry stock photos.</p>
<h2 class="num-head"><span class="num">13.</span>Highly-Detailed Vintage</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://i.pinimg.com/originals/2e/82/93/2e8293540ecd71c918db18194f7f44f9.png" alt="Pin on APP UI" width="570" height="428" /></p>
<p>Vintage is nothing new, but its usage will grow stronger in 2018. Although it contradicts the mainstream need for minimalism, finely crafted images are timeless. This year, brands will be looking to attain top-shelf expression that shouts sophistication and distinction.</p>
<p>While not everyone’s cup of tea, food and beverage domain—specifically those involved with organic food and wine—will be leveraging the style in 2018.</p>
<h2 class="num-head"><span class="num">14.</span>Voice Enabled</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://mk0appinventiv4394ey.kinstacdn.com/wp-content/uploads/sites/1/2020/02/Voice-User-Interface-Design-1.gif" alt="How to Design Voice User Interface? (VUI Design Guide)" width="608" height="345" /></p>
<p>Voice-activated elements of <a href="https://www.instagram.com/anteelodesign/">apps</a> helps simplify users’ operations. In 2017, apps with voice dependent <a href="https://anteelo.com/services/">services</a> finally found their fair share of demand from the industry. The popularity of voice-activated mobile apps will only grow in 2018.Other than the voice-activated elements, fingerprint-activated ones will also play a very crucial part in defining mobile app interface designs for 2018.</p>
<h2 class="num-head"><span class="num">15.</span>Emoticons</h2>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://cdn.dribbble.com/users/1966720/screenshots/5344822/daily-ui-16.gif" alt="Popup design - Daily Ui 16 by Ashley Saleem-West on Dribbble" width="564" height="423" /></p>
<p>In 2018 we can expect to see emotional intelligence getting integrated in mobile experience to a much greater level. It is no more about animated effects that are shown when users complete any specific action. EI has now become a mainstream way to make users experience delightful and engaging.</p>
<p>In the year of mobile apps, we will see more emoticons in the list. They will see an integration with Face recognition elements that will be used for providing an array of reactions. One such technology that have been doing this perfectly is Animoji — the animated emoji that responds to iPhone X camera’s facial expressions.</p>
</div>
<p>The post <a href="https://anteelo.com/mobile-apps-ui-design-trends-for-2018-top-15/">Mobile Apps UI Design Trends for 2018-Top 15</a> appeared first on <a href="https://anteelo.com">anteelo</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Creating Widgets in iOS 10</title>
		<link>https://anteelo.com/creating-widgets-in-ios-10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-widgets-in-ios-10</link>
		
		<dc:creator><![CDATA[Anteelo Master]]></dc:creator>
		<pubDate>Wed, 01 Jan 2020 06:47:45 +0000</pubDate>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[#app]]></category>
		<category><![CDATA[#Application]]></category>
		<category><![CDATA[#iOS]]></category>
		<category><![CDATA[#iOS 10]]></category>
		<category><![CDATA[#iPhone]]></category>
		<category><![CDATA[#UI]]></category>
		<category><![CDATA[#Widgets]]></category>
		<guid isPermaLink="false">https://anteelo.com/?p=3522</guid>

					<description><![CDATA[<p>Widgets are something that every trending iOS application is looking forward to. Widgets help users to get some quick and relevant information without even opening the app. They are best suited for applications like Weather apps, To-Do list apps, Calendar apps which might show a day’s schedule. The widget should provide the immediate and relevant information [&#8230;]</p>
<p>The post <a href="https://anteelo.com/creating-widgets-in-ios-10/">Creating Widgets in iOS 10</a> appeared first on <a href="https://anteelo.com">anteelo</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div align="justify">Widgets are something that every trending iOS application is looking forward to. Widgets help users to get some quick and relevant information without even opening the app. They are best suited for applications like Weather apps, To-Do list apps, Calendar apps which might show a day’s schedule. The widget should provide the immediate and relevant information that user must be interested in. The amount and type of information that widget carries, varies according to the requirement of the containing App of the widget.We will learn through this blog what are widgets and how to make widgets for our iOS app. We have already made an <a href="https://www.instagram.com/anteelodesign/">application</a> called RemindME which is a small To-Do list application.<img decoding="async" class="aligncenter" src="https://lh3.googleusercontent.com/proxy/fmomFEcvwIx0eNuktn9pNIus6Rb1GE9DwhwKO9IwWlNpdZLVRi9GIienXYVIBqMTYvHBcegUhkhh8x1Vomy_ekpFNo1VdTkOyiHgk25x7G60p4lOK_n--xNDraQVWJ5zwfTCGu1vghVfEeQmZBaW" alt="How to create widgets in iOS 10 | Humble Bits" /></p>
<h3>What we are going to cover<strong> </strong></h3>
<ul>
<li>iOS 10 Widget UI</li>
<li>Sharing UserDefaults and Files with Widget</li>
<li>Updating the content</li>
<li>Adjusting Widget’s Height</li>
<li>How to open App from Widget</li>
<li>When my Widget should Appear?</li>
<li>Home Screen Widget</li>
</ul>
<h3>Start-Up Project</h3>
<p>We have already created an application that allows user to add some To-Do items with title and description and shows its status as done or not done. This will be containing app for our widget.</p>
<h3>Getting Started</h3>
<p>So, enough saying now and let’s get started with the real code. Widgets are nothing but a type of App extensions called <em>Today Extension</em>. So if anybody needs to know about app extensions, you can see this apple documentation. Now, add target by selecting <strong>File/New/Target</strong> and then under <strong>iOS</strong> section select <strong>Today</strong> <strong>extension</strong> and press <strong>next</strong>. After that give name to your widget and select the containing app as your project.</p>
<p>Now we can see in project navigator a new group will be added with our Widget’s name. Change Schema and select target as the widget and run project. You will  see widget in the <a href="https://anteelo.com/">notification center</a> of our simulator with a message “Hello world” like this.</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://miro.medium.com/max/12750/1*kH4aYZS2ZCezt9uO5FOCjA.png" alt="10 Tips on Developing iOS 14 Widgets Swift and SwiftUI | The Startup" width="643" height="340" /></p>
<h3>iOS 10 Widget UI</h3>
<p>Let us now design how our widget is going to look like. Open the storyboard of our newly added target and remove the default label. We are going to add a <em>tableview</em> and a button and two labels in our <em>tableview</em> cell. We have added UIImage for the status of the reminder and labels for title and description of the reminder. We have added a class called <strong>WidgetTableViewCell. </strong>Select the tableview cell and in identity inspector, add class name as <strong>WidgetTableViewCell. </strong>Add constraints to the views as needed and connects the outlets in the <strong>WidgetTableViewCell </strong>using <strong>Assistant</strong> <strong>Editor</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="https://images.applypixels.com/images/originals/e5cfdff7-e1d0-42e3-8ebe-ca8de1800794.png" alt="iOS 10 UI" width="405" height="405" /></p>
<p>We will also add <strong>Visual Effect View With Blur</strong>  from the object browser in our tableview cell. This is to add vibrancy effect to our widget. This causes a blur background in our Widget’s view. This is to make it look similar to what default iOS widgets look like. Make an outlet of visual effect view in the <strong>WidgetTableViewCell</strong> and name it as “visualEffectView”.</p>
<p>This ensures that vibrancy is similar to system-defined one for Today Extensions and the UI looks like default iOS 10 widgets.</p>
<h3>Sharing UserDefaults and Files with Widget</h3>
<p>Widgets are nothing but extensions. Extensions are just like another application so our containing app and widgets cannot communicate directly. There may be situations when our containing app and widget need to share some data. We can do that by sharing UserDefaults between them.</p>
<p>To enable this, select the main App target and choose Capabilities tab and then enable App groups. We require apple developer account for this. Now, create an app group. App group name must start from “group”. We have created an app group with name “group.com.quovantis.RemindMe”</p>
<p>Similarly we will repeat the process by selecting the target for widget. But we don’t have to create a new app group, we can use the one we created before. Now when we will save or retrieve anything from UserDefaults we will use this group.</p>
<p>We have made a class that will manage writing and reading our Reminders from UserDefaults. This code can be used by both our containing app as well as our widget extension.</p>
<p>We have used <strong>UserDefaults(suiteName: “group.com.quovantis.RemindMe”)</strong> for writing and reading our Reminders. This ensures both our containing app and the Widget extension save and read the data from a shared UserDefault under a common suite.</p>
<p>Now if we have to use the same <strong>UserDefaultsManager</strong> class in our Widget target also, we will have to enable it explicitly from the <strong>File inspector</strong>. Select the file <strong>UserDefaultsManager.swift</strong> and from <strong>File</strong> <strong>inspector</strong> check <strong>RemindMeWidget</strong>. Similarly if we have to import any other file like <strong>Assets.xcassests</strong> into our widget extension we can do the same.</p>
<p>Now we have shared <strong>UserDefaults</strong> between main app and widget, we can now add content to our widget. We will read data from the <strong>UserDefaults</strong> and will show the reminders in the table view of the widget. Widget will show the title and description of the Reminder and a button checked or unchecked depending upon the status. We will fetch the reminders from the UserDefaults in the <strong>viewWillAppear</strong> and will refresh the tableView. You can look the code in the <strong>TodayViewController.swift</strong> file in the <strong>RemindMeWidget</strong> folder.</p>
<p>We can also add actions to our widget. We have added an action to the button in our widget. When it is pressed that reminder is marked as done by updating status of the reminder in UserDefaults. Code for this action is written in <strong>WidgetTableViewCell </strong>class.</p>
<p>Now when we add any reminder from our main App, it will be reflected back to our widget also.</p>
<h3>Updating the content</h3>
<p>Now we will see how to add support to our widget to update its view when it’s off-screen, by allowing the system to create a snapshot. The system periodically takes snapshot to help our widget stay up to date. That is done through <strong>widgetPerformUpdate</strong> method.</p>
<p>We need to replace the existing implementation of <strong>widgetPerformUpdate</strong></p>
<p>If we get reminders from the <strong>UserDefaults</strong> successfully, we update the interface and the function calls the system-provided completion block with the <strong><code class=" prettyprinted"><span class="pun">.</span><span class="pln">newData</span></code></strong> enumeration. This informs the system to take the fresh snapshot and replace it with the current.</p>
<p>If we fail to get reminders then we call the completion handler with <strong>.failed</strong> enumeration. This informs the system that no new data is available and the existing snapshot should be used.</p>
<h3>Adjusting Widget’s Height</h3>
<p>As we have limited space in our Today View, System provides a fixed height to all the widgets. We have to design our widget UI in accordance with that . But we can also provide the option to increase the height of the widget so as to show more information in the Today view.</p>
<p>Our <strong>TodayViewController</strong> conforms to the <strong>NCWidgetProviding</strong> that provides the method to do this. There are two modes of the Widget of type <span class="s1"><strong>NCWidgetDisplayMode</strong>, c</span>ompact and expanded.</p>
<p>This will specify that widget can be expanded and we get a default button to expand and close the widget. Now add this method to adjust the size of the widget.</p>
<p>Whenever the widget height is adjusted this method is called where we have specified the height in case of compact and expanded state. In expanded mode we set <strong>preferredContentSize</strong> to the combined height of the cells of our tableview in Widget and when it is in compact mode we set <strong>preferredContentSize</strong> as CGSize() which gives the default height to the widget.</p>
<h3>How to open App from Widget</h3>
<p>Users may also want to open the containing app from widgets so as to have a detailed look over the information shown in the widget. For that we will have to allow our widget to open our containing app.</p>
<p>For this we use URL Schemes. We can open any app that supports URL Scheme from our widget but we should do that rarely. As user may get confused regarding the container app of the widget. Generally we should link the containing app of the widget only.</p>
<p>For enabling the URL Schemes in our containing app we need to add the following rows in our info.plist</p>
<p>After that we use the <strong>extensionContext</strong> property of type <strong>NSExtensionContext</strong> in our <strong>TodayViewController</strong> class to call the openUrl function. We have written this code in <strong>didSelectRowAt Index</strong> of our tableView</p>
<div>
<h3>When my Widget should Appear?</h3>
<p>There can be situations when under certain circumstances, you want your widget to appear in Today view. For example, there is no new or noteworthy information to show and you want to hide your widget until something new information comes up.</p>
<p>You can do this by using <strong>setHasContent: forWidgetWithBundleIdentifier:</strong> method of class <strong>NCWidgetController</strong>. Set the flag as true or false to show or hide the widget respectively and specify the bundle identifier of the particular widget which we want to hide or show.</p>
<p>In our case we will hide the widget if there are no reminders in our app. And as soon as the count of the reminders is one or more we will show the widget again.</p>
<p>We can write the code to hide widget from the TodayViewController itself but we must always avoid this. Our containing app should be the one which will decide when to hide or show the widget.</p>
<p>Write this function in the <strong>ReminderListViewController-</strong></p>
<h3>Home Screen Widget</h3>
<p>We have seen applications show widget along with the quick actions when we <em>Force Touch</em> the app icon. If we have only one widget in our app, it is shown by default. But if our app offers two or more widgets then we will have to specify the bundle identifier of the widget in the <strong>info.plist</strong> that we want to show when we <em>Force touch</em> our app.</p>
<p>Add <strong>UIApplicationShortcutWidget</strong> key in the <strong>info.plist</strong> with the bundle identifier of the widget as its value.</p>
<h3>Summary</h3>
<p>So, this is all about <a href="https://anteelo.com/ios-developer/">iOS</a> 10 Widgets for <a href="https://anteelo.com/advantages-of-developing-an-iphone-app-for-your-company/">iPhone</a>. Thank you for reading this tutorial and I hope you enjoyed this. You can think some more innovative ideas to explore more possibilities from Today extensions and think about ways to update your existing applications with your own widgets.</p>
</div>
</div>
<p>The post <a href="https://anteelo.com/creating-widgets-in-ios-10/">Creating Widgets in iOS 10</a> appeared first on <a href="https://anteelo.com">anteelo</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
