swift code snippets in swift

2's complement subtraction in swift
3-color view that matches netherlands flag in swift
3-color view with the colors of the netherlands flag in swift
a brainfuck parser in swift
a for loop of strings in swift
a function that creates an alert message with custom buttons and text. in swift
a protocol that implements a enum variable in swift
a protocol that implements a generic enum in swift
a protocol that implements a generic enum variable in swift
a protocol that implements an enum in swift
a protocol with an enum in swift
a struct called book with the relevant properties in swift
a swiftui map in swift
a tic tac toe game in swift
a trail is an array of coordinates. determine the shortest path along some trails to a goal in swift
a view that iterates a list with images and animations in swift
a* implementation in swift
a* pathfinding implementation in swift
aaa in swift
access main bundle from app extension in swift
add a button that submits in swift
add a dependency to a binarytarget in a package.swift file in swift
add a getter to a class in swift
add a getter to a subclass in swift
add a key-value pair to a map in swift
add a method inside a method in a class that is subclassed in swift
add a method to a class in swift
add a method to a subclass in swift
add a node to the beginning of a linked list in swift
add a node to the end of a linked list in swift
add a private method to a class in swift
add a private property to a class in swift
add a private static method to a class in swift
add a private static property to a class in swift
add a property to a class in swift
add a protected method to a class in swift
add a protected property to a class in swift
add a protected static method to a class in swift
add a protected static property to a class in swift
add a public method to a class in swift
add a public property to a class in swift
add a public static method to a class in swift
add a public static property to a class in swift
add a setter to a class in swift
add a setter to a subclass in swift
add a static method to a class in swift
add a static property to a class in swift
add an element to the beginning of an array in swift
add an element to the end of an array in swift
add new constraints in swift
add shimmer to uiview in swift
add two numbers in swift
adjust the textview when the keyboard will show in swift
aho corasick in swift
aho-corasick algorithm in swift
allocate some memory in swift
alman williams algorithm in swift
an email validation field in swift
an extension that creates a custom dialog with custom interface and button. in swift
an extension that creates and shows a custom dialog in swift
angular rainbow view in swiftui in swift
api call in swift
app extension can access the containing app images/assets/resource data in swift
app profiling in swift
append a string in swift
append a string to the end of another string in swift
append array in swift
append to a csv file in swift
append to a file in swift
append to a json file in swift
appkit toolbar in swift
apply regex in swift
array to not array in swift
array to string in swift
ask a user their name, age, favorite color, and if they like dogs in swift
autolayout constraints are not updated in swift
avatar view in swift
backbutton swiftui in swift
background thread in swift
best practice for complex layout view spacing in swift
bubble sort in swift in swift
build a 9 by 9 grid in swift
button in swiftui in swift
cache images to temporary storage in swift
calculate if a coordinate is in certain boudns in swift
calculate prime numbers between 1 and 100 in swift
calculate the derivative in swift
calculate the inverse of the factorial of a number in swift
call a getter on an instance of a class in swift
call a method on an instance of a class in swift
call a private method on an instance of a class in swift
call a private property on an instance of a class in swift
call a private static method on an instance of a class in swift
call a private static property on an instance of a class in swift
call a protected property on an instance of a class in swift
call a protected static method on an instance of a class in swift
call a protected static property on an instance of a class in swift
call a public method on an instance of a class in swift
call a public property on an instance of a class in swift
call a public static method on an instance of a class in swift
call a public static property on an instance of a class in swift
call a setter on an instance of a class in swift
call a shell script in swift
call a static property on an instance of a class in swift
camera preview later in macos in swift
capitalise the first letter of a string in swift
capitalise the last letter of a string in swift
capture image in swift in swift
cast an integer array to swift array in swift
ceate a spring effect in swift
change the labelstyle of a button in swift
check iban in swift
check iban and bic in swift
check if a coordinate in mapkit is contained in specific boudns in swift
check if a number is prime in swift
check if a number is prime, if it is composite print a list of factors in swift
check if character is a letter in swift
circle progress in swift
combine two maps in swift
compose function in swift
conditionally flatten nested arrays in swift
connect to a strapi server in swift
connect to a strapi server with a token in swift
convert a date to a string in swift
convert a date to a unix timestamp in swift
convert a number from base 10 to base 16 in swift
convert a number from base 10 to base 2 in swift
convert a number from base 10 to base 8 in swift
convert a number from base 2 to base 10 in swift
convert a number from base 2 to base 16 in swift
convert a number from base 2 to base 8 in swift
convert a string to a date in swift
convert a uiimage to bitmap in swift
convert a unix timestamp to a date in swift
convert alaska time to gmt in swift
convert array to json in swift
convert australian central daylight time to gmt in swift
convert australian central standard time to gmt in swift
convert australian central time to gmt in swift
convert australian eastern daylight time to gmt in swift
convert australian eastern time to gmt in swift
convert australian western daylight time to gmt in swift
convert central time to gmt in swift
convert chatham time to gmt in swift
convert date to iso8601 in swift
convert eastern time to gmt in swift
convert eastern time to pacific time in swift
convert gmt to alaska time in swift
convert gmt to australian central daylight time in swift
convert gmt to australian central standard time in swift
convert gmt to australian central time in swift
convert gmt to australian eastern daylight time in swift
convert gmt to australian eastern standard time in swift
convert gmt to australian eastern time in swift
convert gmt to australian western daylight time in swift
convert gmt to australian western time in swift
convert gmt to central time in swift
convert gmt to chatham time in swift
convert gmt to eastern time in swift
convert gmt to hawaii time in swift
convert gmt to mountain time in swift
convert gmt to new zealand time in swift
convert gmt to pacific time in swift
convert gmt to samoa time in swift
convert hawaii time to gmt in swift
convert list of list to list in swift
convert mountain time to gmt in swift
convert new zealand time to gmt in swift
convert nsstring to string in swift
convert pacific time to gmt in swift
convert samoa time to gmt in swift
copy a csv file in swift
copy a directory in swift
copy a file in swift
copy a json file in swift
copy string to clipboard in swift
core data crud in swift
count a strings length in swift
count unique characters in a string in swift
crash app in swift
create 10 red views in swift
create 2 labels with one expan in swift
create 5 boxes of rainbow colors in swift
create a binary search tree and insert 1,2,3,4 in it in swift
create a bitset in swift
create a bitset using managedbuffer in swift
create a bluetooth connection in swift
create a box that if tapped it plays a sound, double press it to display a volume slider to change its volume, use swiftui in swift
create a box that if tapped it plays a sound, long press it to display a volume slider to change its volume, use swiftui in swift in swift
create a bubbly relaxing interactive fluid to play with on swiftui in swift in swift
create a bug in swift
create a class in swift
create a class in swift to get the user location with cllocation in swift
create a class with a constructor in swift
create a collection view in swift
create a collection view with pages in swift
create a csv file in swift
create a custom dialog with a cancel button in swift
create a custom uicollectionview cell with an uiimageview and a uibutton in swift
create a custom vector struct with manual memory management in swift
create a custom view dialog with one cancel button in swift
create a data race in swift
create a date to iso string in swift
create a directory in swift
create a disjoint set in swift
create a dispatchgroup in swift
create a file in swift
create a finite state machine in swift
create a firebase signup process using authentication in swift
create a for loop in swift
create a form in swift in swift
create a form using a tableview in swift
create a function in swift
create a function that calculates the sha256 checksum of raw data in swift
create a function that implements bubble sort in swift
create a function that inverts a binary tree in swift
create a function that inverts rgb color to uicolor in swift
create a function that takes a string as a parameter that returns a seeded random number between 1 and 10 and will always be the same for the seed in swift
create a function to split string in half in swift
create a function to subtract 10 minutes to current time and print it in swift
create a generic function in swift
create a generic method in swift
create a generic method to return result type in swift
create a generic struct in swift
create a generic wrapper in swift
create a gradient in swift
create a green button that says “click me!” in swift
create a grey button with the text "press here" which jumps when you press it in swift
create a grey button, if you press the button show fireworks in swift
create a hash map in swift in swift
create a json file in swift
create a label and add it to the viewcontroller in swift
create a linked list in swift
create a linked list in swift in swift
create a list of strings in swiftui in swift
create a login with facebook service layer in swift
create a loop in swift
create a loop from 1 to 100 in swift
create a loop of strings ending at 10 in swift
create a map search function in swift
create a match in gamekit in swift
create a match in gamekit and convert it to swiftui in swift
create a method that outputs code described by the input in swift
create a method that takes string as name parameter and returns a number of it in swift
create a model in swift
create a network in swift
create a new array with the name and surname of a list of users in swift
create a new message view in swift
create a notification in swift
create a paged collection view in swift
create a password in swift
create a password with a custom length in swift
create a password with a custom length and numbers in swift
create a password with a custom length and symbols in swift
create a password with a custom length and uppercase letters in swift
create a password with a custom length, uppercase letters and lowercase letters in swift
create a password with at least one lowercase letter in swift
create a password with at least one number in swift
create a password with at least one symbol in swift
create a password with at least one uppercase letter in swift
create a password with lowercase letters in swift
create a password with numbers in swift
create a password with symbols in swift
create a password with uppercase letters in swift
create a password with uppercase letters and lowercase letters in swift
create a password with uppercase, lowercase letters and numbers in swift
create a password with uppercase, lowercase letters, numbers and symbols in swift
create a picker that saves the selection to a new variable in swift
create a property wrapper in swift
create a protocol in swift
create a protocol and use him in swift
create a regular expression that validates an email address in swift
create a saml contract in swift
create a searchviewcontroller in swift
create a seeded random number generator in swift
create a simple stopwatch using swiftui in swift
create a singleton class in swift
create a sphere on top of a cube in swift
create a stack view with a label on top and an image view on the bottom in swift
create a stackview with two labels in swift
create a state machine in swift
create a subclass in swift
create a sum function that has a bug in it in swift
create a swiftui app using nsapplication in swift
create a switch in swift
create a table in swiftui in swift
create a table view with a header in swift
create a table view with custom cells in swift
create a tableview displaying the flags of countries in eu as emojis in swift
create a tableview with 10 items in swift
create a tcp client in swift
create a tcp client on a specific port in swift
create a tcp server in swift
create a tcp server on a specific port in swift
create a template string in swift
create a textfield which only take number in it in swift
create a textview inside scrollview in swift
create a todo list using snapkit in swift
create a tri-colour view with the colours of the french flag in swift
create a tuple with the mapped name and surname of an array of user in swift
create a two-colour view with the colours of the turkish flag in swift
create a udp client in swift
create a udp client on a specific port in swift
create a udp server in swift
create a udp server on a specific port in swift
create a vapor http server in swift
create a vapor route in swift
create a view in swift
create a view and constraints programatically in swift
create a view and make its background colour red in swift
create a view controller with a full screen scroll view and a stack view filling the scroll view in swift
create a view model for a cookie app in swiftui in swift
create a view model for signing up a user to firebase in a social media application in swift
create a view which contains a view that fill the entire view in swift
create a view which is 50 by 50 in size with a green background in swift
create a view with a flower to breath in and out like the apple watch does in swift
create a view with a gauge that changes background colour from light blue to dark blue in swift
create a view with a red background of size 100 by 100 in swift
create a while loop in swift
create a white background which gradients to light blue in one corner and to light purple in another corner in swift
create a wrapper for cblas_sgemm in swift
create a wrapper for cblas_sgemm that can transpose the input matrices in swift
create a wrapper for cblas_sgemm that handles transposing the input matrices in swift
create a wrapper for cblas_sgemm that takes in two matrices and has the declaration: func sgemm(a: matrix, b: matrix, transposea: bool, transposeb: bool, alpha: float, beta: float) -> matrix in swift
create an app to retrieve a list of locations and display on a map in swift
create an auto complete textfield in swift
create an enum in swift
create an input field in swift in swift
create an instance of a class with a constructor in swift
create an nstextfield with text based nstextattachments in swift
create codeable struct in swift
create custom collection view layout in swift
create custom collectionview cell in swift
create custom label with two lines and truncating tail in swift
create firebase auth signin request in swift
create foreach in swift
create game logic using kickball rules in swift
create horizontal swipe gesture in swift
create http get request in swift
create jwt token in swift
create label in swift
create loop in swift
create million dollar app in swift
create tag label in swift in swift
create two labels side by side with adjustable width in swift
create uilabel in swift
create uipresentation contoller in swift
create uitableview in swift
create view with a red background of size 100 for width and height in swift
create wkwebview in swift
custom font property wrapper in swiftui in swift
decode date in swift
decode rsa in swift
define a class with a first name, last name and email properties in swift
define a collection struct in swift
define a function called what that gives the nth fibonacci number in swift
define a function that uses an unsafepointer in swift
define a function that uses pointers in swift
define a struct depicting a car, with a brand, model and year properties, as well as a beep function that prints “beep” into the console in swift
define a struct that conforms to collection in swift
define a uiview and set its size and position as well as its background colour to red in swift
define a uiview and set its size and position as well as its background colour to red in swift in swift
define a view of a circular shape with no fill and a 30 pixel stroke in swift
define an anonymous closure in swift
define graph in swift
delete a csv file in swift
delete a directory in swift
delete a file in swift
delete a json file in swift
dependency injection in swift
depth first search in swift
determine if a coordinate is contained between an upper left and lower right bounds in swift
determine if a number is prime in swift
determine if two numbers are coprime in swift
determine if x is the factorial of another number in swift
did finish processing photo in swift
difficult way to calculate edu in swift
dismiss a navigation controller in swift
display a list of tour items retrieved from a url in swift
divide a text by words and then group those words by groups of three characters. in swift
divide two numbers in swift
download an image in swift
download an image using combine in swift
draw line in swift
dynamic island animation in swift
encrypt data using aes in swift
errir in swift
error in llvm in swift
error value in llvm in swift
execute code with 5 second delay in swift