Skip to content
#

swift4

swift logo

Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns. Inspired by many other modern programming languages, Swift is intended to be more resilient and expressive than Objective-C, its predecessor.

Here are 2,605 public repositories matching this topic...

winstondu
winstondu commented Aug 28, 2019

CSS has the ability to allow proportional margin and padding:
https://webplatform.github.io/docs/guides/the_css_layout_model/#Proportional-margins-and-padding-in-the-W3C-box-model

I was wondering if it is possible to implement a similar concept with edges. For example, if I wanted my top margin of a subview to its superview to be 20% of the superview height (i.e. subview.top = superview.top +

MartinP7r
MartinP7r commented Sep 16, 2018

When I set a navigation bar like below, the icon gets cut off.

let settingsBarButton = UIBarButtonItem()
settingsBarButton.setIcon(icon: .emoji(.gear), iconSize: 30)
navigationItem.rightBarButtonItems = [settingsBarButton]

image

Not sure what's wrong since the example in

Created by Apple

Released June 2, 2014

Latest release 3 days ago

Repository
apple/swift
Website
swift.org
Wikipedia
Wikipedia

Related Topics

language objective-c
You can’t perform that action at this time.